summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-08-20 02:48:58 +0100
committerSam James <sam@gentoo.org>2022-08-20 02:49:14 +0100
commit6a024f59ae4a7c51817f6034d37f2fc02c561816 (patch)
tree25b86c8993484d086b6e9632e8971c8b6e711b3d /games-misc
parentdev-perl/Email-Valid: run tests verbosely (diff)
downloadgentoo-6a024f59ae4a7c51817f6034d37f2fc02c561816.tar.gz
gentoo-6a024f59ae4a7c51817f6034d37f2fc02c561816.tar.bz2
gentoo-6a024f59ae4a7c51817f6034d37f2fc02c561816.zip
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>
Diffstat (limited to 'games-misc')
-rw-r--r--games-misc/fortune-mod/files/fortune-mod-3.14.1-fix-localdir-mixup.patch28
-rw-r--r--games-misc/fortune-mod/fortune-mod-3.14.1-r1.ebuild (renamed from games-misc/fortune-mod/fortune-mod-3.14.1.ebuild)14
2 files changed, 38 insertions, 4 deletions
diff --git a/games-misc/fortune-mod/files/fortune-mod-3.14.1-fix-localdir-mixup.patch b/games-misc/fortune-mod/files/fortune-mod-3.14.1-fix-localdir-mixup.patch
new file mode 100644
index 000000000000..d8d267ee1440
--- /dev/null
+++ b/games-misc/fortune-mod/files/fortune-mod-3.14.1-fix-localdir-mixup.patch
@@ -0,0 +1,28 @@
+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.
+--- a/datfiles/CMakeLists.txt
++++ b/datfiles/CMakeLists.txt
+@@ -68,7 +68,7 @@ ADD_CUSTOM_TARGET(
+ )
+ INSTALL(
+ FILES ${_install_unrot_cookies}
+- DESTINATION "${LOCALDIR}"
++ DESTINATION "${COOKIEDIR}"
+ )
+
+ IF (NOT NO_OFFENSIVE)
+--- a/datfiles/off/CMakeLists.txt
++++ b/datfiles/off/CMakeLists.txt
+@@ -54,5 +54,5 @@ ADD_CUSTOM_TARGET(
+ )
+ INSTALL(
+ FILES ${_install_rotated_cookies}
+- DESTINATION "${LOCALODIR}"
++ DESTINATION "${OCOOKIEDIR}"
+ )
diff --git a/games-misc/fortune-mod/fortune-mod-3.14.1.ebuild b/games-misc/fortune-mod/fortune-mod-3.14.1-r1.ebuild
index 71c733aee02a..d7c5bdcc3b1d 100644
--- a/games-misc/fortune-mod/fortune-mod-3.14.1.ebuild
+++ b/games-misc/fortune-mod/fortune-mod-3.14.1-r1.ebuild
@@ -16,19 +16,25 @@ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc64 ~riscv ~sparc ~x86"
IUSE="offensive test"
RESTRICT="!test? ( test )"
-RDEPEND="app-text/recode:=
- !games-misc/fortune-mod-tao"
+RDEPEND="
+ app-text/recode:=
+ !games-misc/fortune-mod-tao
+"
DEPEND="${DEPEND}"
-BDEPEND="app-text/App-XML-DocBook-Builder
+BDEPEND="
+ app-text/App-XML-DocBook-Builder
+ dev-lang/perl
test? (
dev-perl/File-Find-Object
dev-perl/IO-All
dev-perl/Test-Differences
dev-perl/Test-Trap
- )"
+ )
+"
PATCHES=(
"${FILESDIR}"/${PN}-3.14.0-valgrind-tests.patch
+ "${FILESDIR}"/${PN}-3.14.1-fix-localdir-mixup.patch
)
src_configure() {