Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125979 - nwn-1.66 scripts broken and game won't launch
Summary: nwn-1.66 scripts broken and game won't launch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-12 13:37 UTC by Greg Watson (linuxkrn)
Modified: 2006-03-15 14:53 UTC (History)
0 users

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


Attachments
fixed /usr/games/bin/nwn launcher script (nwn,219 bytes, text/plain)
2006-03-12 13:39 UTC, Greg Watson (linuxkrn)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Watson (linuxkrn) 2006-03-12 13:37:51 UTC
After emerging nwn-166 with nowin, game installs, ebuild instructs to run "/opt/nwn/fixinstall" which also runs without problems.   However after trying to run the game I get:

/usr/games/bin/nwn: line 10: /opt/nwn/nwn: is a directory
/usr/games/bin/nwn: line 10: exec: /opt/nwn/nwn: cannot execute: Success


The script /usr/games/bin/nwn has a few stranges things: the if on line 3 is always true, why have it?

I think one of the scripts makes the error of putting a directory "nwn" in the /opt/nwn directory.  This maybe replaces the original "nwn" script?

If I change /usr/games/bin/nwn to exec nwmain, I get the following:
./nwmain: error while loading shared libraries: libmss.so.6: cannot open shared object file: No such file or directory

I also checked that I had a LD_LIBRARY_PATH set as well.  However, the miles (libmss.so.6) is in /opt/nwn/miles.


To get my copy of nwn to work I had to change the script, /usr/games/bin/nwn, to  include miles lib path and call nwmain.  I also removed the always true if statment.

Attaching script.
Comment 1 Greg Watson (linuxkrn) 2006-03-12 13:39:20 UTC
Created attachment 81995 [details]
fixed /usr/games/bin/nwn launcher script

fixed /usr/games/bin/nwn launcher script that removes always true if statment, addes lib path for miles sound (/opt/nwn/miles) and calls the correct executable /opt/nwn/nwmain.
Comment 2 Greg Watson (linuxkrn) 2006-03-12 14:46:38 UTC
just wanted to note that looking at the ebuild for 1.66, it does put some of the data in /opt/nwn/nwn...  which is incorrect.

Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-03-15 14:53:09 UTC
OK, I'm not changing the launcher script.  /opt/nwn/nwn should be a file, not a directory.  I know that I fixed this on 1.66-r1, but I was pretty sure that I had caused it there.  I was unaware that it also affected 1.66, too.

Anyway, this should be resolved now.