#856384 fortune-mod: fortune all fails to load any cookies

Package:
fortune-mod
Source:
fortune-mod
Description:
provides fortune cookies on demand
Submitter:
Jiri Palecek
Date:
2024-10-29 16:57:02 UTC
Severity:
normal
Tags:
#856384#5
Date:
2017-02-28 13:32:18 UTC
From:
To:
Dear Maintainer,

on my system, running

$ fortune all

gives an error message "No fortunes found", despite fortune database is
normally installed. I think this is a bug that should be fixed.

I have debugged this and in the attachment, you'll find a patch that
fixes this bug. It was a simple problem where failure to load fortune
cookies from the local directory overruled successful loading from the
normal directory.

Regards
  Jiri Palecek

#856384#10
Date:
2017-02-28 13:36:13 UTC
From:
To:
Oh well, I forgot to attach the patch.

   Jiri Palecek

#856384#15
Date:
2021-06-28 08:06:50 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?
        Running fortune all
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
        Running fortune all
   * What was the outcome of this action?
        Error message
   * What outcome did you expect instead?
        A fortune cookie being displayed

this bug still exists in the current Debian/testing distribution. When
executing fortune all, the program shows this output:

adrian@g6 ~ % fortune all
No fortunes found

I can execute fortune all without any issues on NetBSD and FreeBSD, where a
cookie is shown by running fortune all.

The error exists on both of my Debian/testing installations.

Thank you for your kind attention.

Adrian Kieß

#856384#20
Date:
2024-10-29 16:52:02 UTC
From:
To:
Hi Jiri,

thanks a lot for the patch I've tried it but it does not
work for me.

$ dpkg --get-selections | grep ^fortune
fortune-mod                                     install
fortunes-de                                     install

Kind regards
   Andreas.