Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109619 - [EBUILD] games-rpg/nwmouse
Summary: [EBUILD] games-rpg/nwmouse
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL: http://home.woh.rr.com/nwmovies/nwmouse/
Whiteboard:
Keywords: EBUILD
Depends on: 106789
Blocks:
  Show dependency tree
 
Reported: 2005-10-17 13:32 UTC by Remy Blank
Modified: 2006-07-26 12:58 UTC (History)
0 users

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


Attachments
ebuild for nwmouse (nwmouse-20050216.085035.ebuild,1.31 KB, text/plain)
2005-10-17 13:33 UTC, Remy Blank
Details
games-rpg/nwmouse/nwmouse-0.1.ebuild (nwmouse-0.1.ebuild,1.31 KB, text/plain)
2005-12-19 13:55 UTC, Chris Gianelloni (RETIRED)
Details
nwmouse-0.1.ebuild (nwmouse-0.1.ebuild,1.46 KB, text/plain)
2006-04-07 22:24 UTC, Ryan Hill (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Blank 2005-10-17 13:32:14 UTC
nwmouse enables hardware mouse cursors for Neverwinter Nights.

This ebuild needs a small patch to the script /opt/nwn/nwn, provided by
games-rpg/nwn-data, to add the following lines before the call to nwmain:

if [[ -f ./nwmouse.so ]]; then
    export XCURSOR_PATH="$(pwd)"
    export XCURSOR_THEME=nwmouse
    export LD_PRELOAD=./nwmouse.so:$LD_PRELOAD
fi

I'll provide a patch in bug 106789.
Comment 1 Remy Blank 2005-10-17 13:33:36 UTC
Created attachment 70875 [details]
ebuild for nwmouse
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2005-12-06 15:23:03 UTC
Just curious, but what does this ebuild need elfutils for?
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2005-12-06 15:37:15 UTC
Bah... the stinking thing uses 32-bit ASM so can't compile on amd64... I think I
need to make a binary version of this linked against the proper 32-bit emul-libs
for amd64 support.
Comment 4 Remy Blank 2005-12-07 00:26:39 UTC
It really *is* a dirty hack, as it patches the nwmain binary on load. I think it
uses elfutils to find the proper locations to patch. OTOH, there's probably no
other way to install hooks into a closed binary that didn't define hooks in the
first place.

I have no AMD64, so I can't help there. Feel free to reject the ebuild if you
think it is too limited/dirty/hackish.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2005-12-07 05:06:12 UTC
Actually, I got it working fine on AMD64 by compiling it manually on x86.  I
think that instead of always building it from source, I'm just going to provide
a pre-compiled libelf.so.1 and the libdisasm.so, along with nwmouse.so, as I got
it to work on my AMD64 box fine.
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2005-12-19 13:55:43 UTC
Created attachment 75140 [details]
games-rpg/nwmouse/nwmouse-0.1.ebuild

Try out this ebuild instead... see if it works for you... if it does, I'll probably commit one like it instead, since it works on both x86 and amd64.
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2006-04-07 22:24:48 UTC
Created attachment 84194 [details]
nwmouse-0.1.ebuild

updated w/ mod-x dependencies.
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2006-06-28 07:39:45 UTC
OK.  I need to compile up a new version of the nwmouse files so they don't have the QA warnings.  I'm going to guess that this actually works for people, since I haven't heard anyone complain about it being broken.
Comment 9 Chris Gianelloni (RETIRED) gentoo-dev 2006-07-26 12:58:39 UTC
I've added this to portage now... enjoy...