Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38351 - nwn ebuild fixinstall script does not cd to /opt/nwn
Summary: nwn ebuild fixinstall script does not cd to /opt/nwn
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-15 16:02 UTC by Chris Younce
Modified: 2004-01-15 16:37 UTC (History)
0 users

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 Chris Younce 2004-01-15 16:02:53 UTC
After doing a fresh emerge of nwn you must run /opt/nwn/fixinstall as root. This is a script copied from /usr/portage/games-rpg/nwn/files to /opt/nwn. The script must be run from within /opt/nwn because there is an error somewhere around line 6 that does not properly cd to /opt/nwn.

Reproducible: Always
Steps to Reproduce:
1. emerge nwn
2. run /opt/nwn/fixinstall as root from a directory other then /opt/nwn

Actual Results:  
root@podo root # /opt/nwn/fixinstall
/opt/nwn/fixinstall: line 6: cd: GAMES_PREFIX_OPT/nwn: No such file or directory
Fixing case
 
Checking for required files
 
FAILED: chitin.key missing

Expected Results:  
root@podo nwn # /opt/nwn/fixinstall
/opt/nwn/fixinstall: line 6: cd: GAMES_PREFIX_OPT/nwn: No such file or directory
Fixing case
 
Checking for required files
 
PASSED: chitin.key exists
PASSED: dialog.tlk exists
PASSED: nwmain exists
PASSED: patch.key exists
 
Fixing case
 
ambient
.........................................................................................
data
...........................
dmvault
.
hak
find: *.*: No such file or directory
 
localvault
......................
music
..........................................................
override
.........
portraits
find: *.*: No such file or directory
 
 
Checking for problem files
 
 
Fixing permissions
 
 
You are ready to run Neverwinter Nights. 

root@podo nwn # emerge info
Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-gentoo-r5)
=================================================================
System uname: 2.4.22-gentoo-r5 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.noved.org/ http://mirror.tucdemonic.org/gentoo/
http://gentoo.ccccom.com ftp://gentoo.ccccom.com"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm avi berkdb crypt dvd encode esd foomaticdb gdbm gif gnome
gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod mmx motif mozilla mpeg
mysql ncurses nls nowin oggvorbis opengl oss pam pdflib perl png python
quicktime readline sdl slang spell sse ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 SpanKY gentoo-dev 2004-01-15 16:15:30 UTC
oh, heh, the script is not usuable like that ...

the ebuild does some sed magic on it to setup the paths/users ... in other words, please re-emerge the nwn package rather than just copying the script

i guess i'll rev bump it to -r1 to fix people
Comment 2 Chris Younce 2004-01-15 16:22:46 UTC
I didn't copy the script myself. I did the emerge and then ran /opt/nwn/fixinstall so whatever sed magic is supposed to happen I don't think is happening.
Comment 3 SpanKY gentoo-dev 2004-01-15 16:37:22 UTC
right, just fixed that too ;)