Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 865809 - games-misc/fortune-mod-3.14.1: no longer installs cookies
Summary: games-misc/fortune-mod-3.14.1: no longer installs cookies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-19 15:06 UTC by sgrunt
Modified: 2022-08-20 02:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sgrunt 2022-08-19 15:06:11 UTC
As of the change in #857246, games-misc/fortune-mod does not install its cookie files into /usr/share/fortune as is the case with 3.14.0 and previous. It appears that by default the build process places the generated cookie files into LOCALDIR which has been changed to /usr/local/share/fortune and is therefore not picked up by the build to install.

Reproducible: Always

Steps to Reproduce:
1. emerge =games-misc/fortune-mod-3.14.1
2. fortune
Actual Results:  
"No fortunes found"

Expected Results:  
Fortunes to be found and displayed.

Portage 3.0.34 (python 3.10.6-final-0, default/linux/amd64/17.1/desktop/systemd, gcc-11.3.0, glibc-2.35-r8, 5.14.6-gentoo x86_64)
=================================================================
System uname: Linux-5.14.6-gentoo-x86_64-AMD_Ryzen_Threadripper_2950X_16-Core_Processor-with-glibc2.35
KiB Mem:    65746608 total,  30465996 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 19 Aug 2022 12:02:02 +0000
Head commit of repository gentoo: 2b5828b43be92c9db69d5f4cadbc56bedbad788e

Timestamp of repository steam-overlay: Fri, 19 Aug 2022 08:16:49 +0000
Head commit of repository steam-overlay: 17c1c646d3e3251805c11705c72277f1d6084553

Head commit of repository brother-overlay: 7bd948d1b04998c3808a84ed45a08069ad0af7d7

sh bash 5.1_p16-r1
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
ccache version 4.6.1 [enabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r1::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           3.9.13::gentoo, 3.10.6_p2::gentoo, 3.11.0_rc1::gentoo
dev-lang/rust:             1.62.1::gentoo
dev-util/ccache:           4.6.1::gentoo
dev-util/cmake:            3.24.1::gentoo
dev-util/meson:            0.63.1::gentoo
sys-apps/baselayout:       2.8-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          251.4::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.36.1-r2::gentoo, 2.37_p1-r2::gentoo, 2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           12.0.1::gentoo, 13.0.1::gentoo, 14.0.6-r1::gentoo
sys-devel/gcc:             10.3.0-r2::gentoo, 11.3.0::gentoo, 12.1.1_p20220625::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6::gentoo
sys-devel/llvm:            12.0.1::gentoo, 13.0.1::gentoo, 14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.19::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: yes

misc
    location: /var/db/repos/misc
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

brother-overlay
    location: /usr/local/portage/brother-overlay
    sync-type: git
    sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git
    masters: gentoo
    priority: 9999

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/brother/scanner/brscan4/brsanenetdevice4.cfg /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-keep-masks=y --autounmask=n --ignore-built-slot-operator-deps=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_CA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="7zip X a52 aac acl acpi alsa amd64 apng argyllcms berkdb bluetooth branding bzip2 cairo cdda cdr cgroup-hybrid cli colord corefonts crypt cups cxx dbus device-mapper djvu dri dts dvd dvdr egl encode exif ffmpeg fftw flac fluidsynth fontconfig fortran fuse gcrypt gdbm gif gles gnutls gpm gtk gtk3 gui harfbuzz http2 ibus iconv icu imlib introspection ipv6 java jpeg jpeg2k kms lcms libglvnd libnotify libtirpc lvm lzma lzo mad midi mikmod mng mod modplug mp3 mp4 mpeg multilib ncurses nfs nls nptl nss nvenc nvidia ogg opencl openexr opengl openmp opus pam pango pcre pcre16 pdf perl pipewire pkcs11 png policykit postscript ppds pulseaudio python qt5 raw raymask readline sane scanner sdl seccomp smpeg spell split-usr sqlite ssh ssl startup-notification svg systemd theora tiff timidity tk truetype udev udisks unicode upower usb usbredir v4l vala vdpau vim-syntax vorbis vpx vte vulkan wayland webp wxwidgets x264 x265 xattr xcb xen xfs xft xkb xml xv xvfb xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 avx avx2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="x86_64 i386" RUBY_TARGETS="ruby27 ruby30 ruby31" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Larry the Git Cow gentoo-dev 2022-08-20 01:49:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a024f59ae4a7c51817f6034d37f2fc02c561816

commit 6a024f59ae4a7c51817f6034d37f2fc02c561816
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-20 01:48:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-20 01:49:14 +0000

    games-misc/fortune-mod: fix fortune paths
    
    The intention of LOCALDIR seems to be to allow local cookies to be
    provided by the sysadmin in e.g. /usr/local/share/fortune,
    but if set, before this patch, even cookies distributed
    by upstream were stored there (and nothing in COOKIEDIR, e.g.
    /usr/share/fortune - https://bugs.gentoo.org/865809).
    
    Originally, we were setting LOCALDIR=COOKIEDIR=/usr/share/fortune to
    workaround the issue, but see https://bugs.gentoo.org/857246.
    
    Closes: https://bugs.gentoo.org/865809
    Closes: https://bugs.gentoo.org/857246
    Signed-off-by: Sam James <sam@gentoo.org>

 .../fortune-mod-3.14.1-fix-localdir-mixup.patch    | 28 ++++++++++++++++++++++
 ...-3.14.1.ebuild => fortune-mod-3.14.1-r1.ebuild} | 14 +++++++----
 2 files changed, 38 insertions(+), 4 deletions(-)
Comment 2 Larry the Git Cow gentoo-dev 2022-08-20 01:54:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b73f02926f4b9a3e7cc634201769fb426b1d229c

commit b73f02926f4b9a3e7cc634201769fb426b1d229c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-20 01:54:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-20 01:54:18 +0000

    games-misc/fortune-mod: add link to upstream PR
    
    Closes: https://bugs.gentoo.org/865809
    Closes: https://bugs.gentoo.org/857246
    Signed-off-by: Sam James <sam@gentoo.org>

 .../fortune-mod/files/fortune-mod-3.14.1-fix-localdir-mixup.patch       | 2 ++
 1 file changed, 2 insertions(+)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-20 02:35:13 UTC
Sorry about the hassle, I should've noticed that. Fixed upstream properly too.