Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 761250 - dev-util/radare2-4.5.1 fortunes don't display
Summary: dev-util/radare2-4.5.1 fortunes don't display
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-22 12:44 UTC by Esteve Varela Colominas
Modified: 2020-12-22 23:35 UTC (History)
2 users (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 Esteve Varela Colominas 2020-12-22 12:44:31 UTC
Fortunes are installed in /usr/share/doc/radare2-4.5.1/, but they're compressed, and the program hardcodes /usr/share/doc/radare2/ to look for them. See libr/include/r_userconf.h.acr and meson.build.
Comment 1 Jonas Stein gentoo-dev 2020-12-22 20:58:31 UTC
How can we test, if it is working? When should they be displayed exactly?
Comment 2 Larry the Git Cow gentoo-dev 2020-12-22 23:34:46 UTC
The bug has been closed via the following commit(s):

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

commit fb689df7977dc3a88f8a8fecd1cc6d0095dfbe07
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-12-22 23:06:18 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-12-22 23:34:42 +0000

    dev-util/radare2: don't compress fortunes
    
    radare2 reads and parses files as is. Compression breaks it.
    
    Reported-by: Esteve Varela Colominas
    Closes: https://bugs.gentoo.org/761250
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-util/radare2/files/radare2-4.5.1-docdir.patch | 12 ++++++++++++
 dev-util/radare2/radare2-4.5.1.ebuild             |  6 ++++++
 dev-util/radare2/radare2-9999.ebuild              | 12 ++++++++++--
 3 files changed, 28 insertions(+), 2 deletions(-)
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2020-12-22 23:35:15 UTC
Should work now:

$ r2 /bin/bash
 -- Order pizza for $12.48? [Y/n]
...