I'm using primarily stable (x86) gentoo, but occasionally emerge an unstable package. After (sucessfully) emerging smalltalkx, I attempted to run it and got the following error: smalltalk[warning]: ignore wrong STX_LIBDIR setting /bin/sh: type: stx: not found /usr/bin/smalltalk: exec: stx: not found [1] + exit 127 smalltalk If I add /opt/smalltalk/4.1.4/bin to $PATH, I get the same warning and exit code, but the error is: stx: error while loading shared libraries: libbasic.so: cannot open shared object file: No such file or directory If I run ldd on stx, the majority of the libraries aren't found. STX_LIBDIR is originally set to /var/tmp/portage/smalltalkx-4.1.4/image//opt/smalltalk/4.1.4/lib This appears broken for a fully installed package. A workaround is to correctly set STX_LIBDIR and STX_BINDIR. At this point, there is still a warning(/bin/sh: type: stx: not found), but it is not fatal, and smalltalkx appears to start correctly and run. This works regardless of whether stx is in the $PATH. A full solution would automatically have smalltalk have the correct values for these variables, but I've not dug around enough to figure out how to do that, sorry.
Can't get around to fixing this anytime soon, sorry.
Marko any ideas on this ?
Hi, I think the best way is to fix the /usr/bin/smalltalk file with: STX=stx #### here #### STX_LIBDIR=${STX_LIBDIR-/opt/smalltalk/4.1.4/lib} STX_BINDIR=. DEBUGGER= if test -x `dirname $0`/stx; then STX_BINDIR=`dirname $0` STX=$STX_BINDIR/stx #### and here #### cd $STX_BINDIR fi I tried to add dosed "s:STX_LIBDIR-/var/tmp/portage/smalltalkx-4.1.4/image/:STX_LIBDIR-:g" ${D}/opt/smalltalk/${PV}/bin/smalltalk dosed "s:# cd $STX_BINDIR: cd $STX_BINDIR:g" ${D}/opt/smalltalk/${PV}/bin/smalltalk but without success. Where can I find documentation on "dosed" ? Marko
katerina, sorry for the extended delay on this. if you emerge sync and re-emerge this, you will find that it will work. You may have to run: env-update && source /etc/profile though.