Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24022 - adonthell ebuild fails due to portage sandbox handling
Summary: adonthell ebuild fails due to portage sandbox handling
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: 2003-07-06 19:32 UTC by Bryan Feir
Modified: 2011-09-14 20:39 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 Bryan Feir 2003-07-06 19:32:23 UTC
The app-games/adonthell ebuild fails during the compile step trying to find a
'/lib/-lsandbox' library.

The error is created by the way the configure file attempts to find out what
libraries Python requires by parsing the ldd output.  Unfortunately, thanks to
the LD_PRELOAD variable being set to /lib/libsandbox.so, the sed script inside
the configure file turns that into /lib/-lsandbox and leaves that in the PY_LIBS
variable.

There is currently a patch in the adonthell/files directory that is an attempt
to fix this, however it does two things wrong:
 * It doesn't actually remove the sandbox entry, simply removes the /lib/ part
 * The patch is applied to the configure file and then autoconf is run in the
ebuild, thus overwriting the patch that was just applied.

Since the core of the problem is the LD_PRELOAD variable, it is simpler to just
not export that variable before running the ldd test.  Either fix the configure
file:

*** configure-orig      Sun Jan  5 17:10:50 2003
--- configure   Sun Jul  6 22:25:26 2003
***************
*** 12770,12776 ****
--- 12770,12778 ----
  
     if test x$haveldd != x ; then
  
+        export -n LD_PRELOAD
         py_deps=`ldd $PYPACKAGE | sed 's/\( *lib\([^\/]*\)\.so.*=.*$\)/-l\2/p; d'`
+        export LD_PRELOAD
         for py_lib in $py_deps ; do
           if test "$py_lib" != "-lm" && test "$py_lib" != "-lc" ; then
              PY_DEPS="$PY_DEPS $py_lib"

Or, more 'properly', fix the configure.in file and then run autoconf:

*** configure.in-orig   Sun Jan  5 17:01:24 2003
--- configure.in        Sun Jul  6 22:26:34 2003
***************
*** 216,222 ****
--- 216,224 ----
  
     if test x$haveldd != x ; then
         changequote(<<, >>)
+        export -n LD_PRELOAD
         py_deps=`ldd $PYPACKAGE | sed 's/\( *lib\([^\/]*\)\.so.*=.*$\)/-l\2/p; d'`
+        export LD_PRELOAD
         for py_lib in $py_deps ; do
           if test "$py_lib" != "-lm" && test "$py_lib" != "-lc" ; then
              PY_DEPS="$PY_DEPS $py_lib"

-- Bryan Feir
Comment 1 SpanKY gentoo-dev 2003-07-06 22:33:38 UTC

*** This bug has been marked as a duplicate of 17281 ***
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2005-05-19 09:06:40 UTC
Closing to clean up after bugzilla upgrade.  reopen if closed in error.  Thanks.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2011-09-14 20:39:36 UTC
clean up bug list after bugzilla update