Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97557 - nethack installs platform dependant data into /usr/share
Summary: nethack installs platform dependant data into /usr/share
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mira Ressel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-30 18:31 UTC by Thomas Weidner
Modified: 2015-10-26 13:27 UTC (History)
0 users

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


Attachments
nethack-3.4.3-r1.ebuild (nethack-3.4.3-r1.ebuild,5.05 KB, text/plain)
2005-07-02 15:58 UTC, SpanKY
Details
my updated nethack ebuild (nethack-3.4.3-r1.ebuild,5.17 KB, text/plain)
2005-07-05 06:08 UTC, Thomas Weidner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Weidner 2005-06-30 18:31:10 UTC
i just merged nethack-3.4.3-r1 and found some files,which shouldn't be where they are:
# file /usr/share/games/nethack/nethack 
/usr/share/games/nethack/nethack: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.6, dynamically linked (uses shared libs), stripped
according to the FHS plattform dependant data in /usr/share is not permitted.
pls update the ebuild to correct this.
(the simplest solution would be moving it to /usr/lib)
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-06-30 23:44:58 UTC
You should definitely feel free to attach a patch to address that.
Comment 2 SpanKY gentoo-dev 2005-07-01 06:32:18 UTC
/usr/lib is generally not used for games
Comment 3 Thomas Weidner 2005-07-01 09:25:37 UTC
what's wrong with /usr/lib/games/nethack? looks perfectly nice to me. debian
also does it this way.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2005-07-01 09:56:03 UTC
see comment #1
Comment 5 SpanKY gentoo-dev 2005-07-01 10:59:06 UTC
hmm, i just checked, and we're not Debian; fancy that

use the ${GAMES_LIBDIR} variable for the base
Comment 6 SpanKY gentoo-dev 2005-07-02 15:58:43 UTC
Created attachment 62512 [details]
nethack-3.4.3-r1.ebuild

i dislike nethack so please test this ebuild for us
Comment 7 Thomas Weidner 2005-07-02 21:22:11 UTC
the ebuild works for me but i think the main nethack data file currently
/usr/share/games/nethack/nhdat is also plattform dependant as the datafile
"compiler" seems to write raw C structs to the file. i think the best idea
whould be moving the whole nethack dir to ${GAMES_LIBDIR} and installing the x11
tiles in  some location like /usr/share/pixmaps/nethack/ ?
it's weekend now, so i am short of time per se, i'll have a look when having
more time (i also have some exams ATM).
Comment 8 Thomas Weidner 2005-07-05 06:08:13 UTC
Created attachment 62662 [details]
my updated nethack ebuild

- sets HACKDIR to ${GAMES_LIBDIR}/nethack.
- installs x11 tiles and pixmaps to /usr/share/pixmaps/nethack
- installs fonts to /usr/share/fonts/nethack
- updates /etc/X11/app-defaults/NetHack to make nethack find the x11 data.
Comment 9 Kiyoshi Aman 2005-11-05 09:37:42 UTC
I don't think Nethack's tiles properly belong in /usr/share/pixmaps; that's
where icons go, not tilesets.
Comment 10 Thomas Weidner 2005-11-05 09:53:55 UTC
IMO /usr/share/pixmaps would be called /usr/share/icons if it was meant for
icons only. also the tiles go to a pixmaps subdir and aren't directly "visible"
under pixmaps. is there any reference material on that topic?
Comment 11 Chris Gianelloni (RETIRED) gentoo-dev 2005-11-05 10:56:18 UTC
I think /usr/share/pixmaps/nethack is fine.
Comment 12 Kiyoshi Aman 2005-11-23 10:06:54 UTC
Okay, I've been informed that installing tiles into /uxr/share/pixmaps is dumb;
none of the other games ebuilds sticks tiles there, just icons. Consider this a
WONTFIX on my part [even though I'm not a Gentoo dev].
Comment 13 Mira Ressel 2015-06-09 11:39:10 UTC
As of -r4, the nethack binary is no longer in /usr/share. nhdat still is, though; I haven't decided yet how to handle that.
Comment 14 Mira Ressel 2015-10-26 13:27:49 UTC
Fixed in nethack-3.4.3-r5.