Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290260 - media-libs/allegrogl-0.4.3 has a sandbox violation (attempts to run ldconfig in install)
Summary: media-libs/allegrogl-0.4.3 has a sandbox violation (attempts to run ldconfig ...
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: 2009-10-23 16:48 UTC by Erik Zeek
Modified: 2009-10-28 00:13 UTC (History)
0 users

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


Attachments
/var/log/portage/media-libs:allegrogl-0.4.3:20091023-164245.log (media-libs:allegrogl-0.4.3:20091023-164245.log,8.83 KB, text/plain)
2009-10-23 16:50 UTC, Erik Zeek
Details
/var/log/sandbox/sandbox-30813.log (sandbox-30813.log,295 bytes, text/plain)
2009-10-23 16:50 UTC, Erik Zeek
Details
emerge_info.txt (emerge_info.txt,9.95 KB, text/plain)
2009-10-23 16:53 UTC, Erik Zeek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Zeek 2009-10-23 16:48:16 UTC
Attempting to emerge media-libs/allegrogl-0.4.3 results in a sandbox violation when the install tries to run ldconfig.

emerge -v1 =media-libs/allegrogl-0.4.3  

These are the packages that would be merged, in order:

Calculating dependencies                         ... done!   
[ebuild  N    ] media-libs/allegrogl-0.4.3  USE="examples" 0 kB

<snip/>

/usr/bin/install -c  -D lib/unix/libagl.so.0.4.3 /gentoo/tmp/portage/media-libs/allegrogl-0.4.3/image//usr/lib/libagl.so.0.4.3                                          
ln -sf libagl.so.0.4.3 /gentoo/tmp/portage/media-libs/allegrogl-0.4.3/image//usr/lib/libagl.so.0.4                                                                      
ln -sf libagl.so.0.4.3 /gentoo/tmp/portage/media-libs/allegrogl-0.4.3/image//usr/lib/libagl.so.0                                                                        
ln -sf libagl.so.0.4.3 /gentoo/tmp/portage/media-libs/allegrogl-0.4.3/image//usr/lib/libagl.so
ldconfig    # works only if you are root
ACCESS DENIED  open_wr:      /etc/ld.so.cache~
make: [install] Error 1 (ignored)
-
AllegroGL is now installed.
>>> Completed installing allegrogl-0.4.3 into /gentoo/tmp/portage/media-libs/allegrogl-0.4.3/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-30813.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /etc/ld.so.cache~
A: /etc/ld.so.cache~
R: /etc/ld.so.cache~
C: ldconfig
--------------------------------------------------------------------------------
Comment 1 Erik Zeek 2009-10-23 16:50:02 UTC
Created attachment 208011 [details]
/var/log/portage/media-libs:allegrogl-0.4.3:20091023-164245.log

Build log.
Comment 2 Erik Zeek 2009-10-23 16:50:36 UTC
Created attachment 208012 [details]
/var/log/sandbox/sandbox-30813.log

Sandbox log.
Comment 3 Erik Zeek 2009-10-23 16:53:32 UTC
Created attachment 208013 [details]
emerge_info.txt

emerge --info
Comment 4 Erik Zeek 2009-10-23 20:32:11 UTC
The following changed fixed it for me.

diff -u allegrogl-0.4.3.ebuild.orig allegrogl-0.4.3.ebuild
--- allegrogl-0.4.3.ebuild.orig 2009-10-23 14:30:25.000000000 -0600
+++ allegrogl-0.4.3.ebuild      2009-10-23 14:27:20.000000000 -0600
@@ -32,7 +32,7 @@
 }

 src_install() {
-       emake DESTDIR="${D}" install || die "emake install failed"
+       emake LDCONFIG=true DESTDIR="${D}" install || die "emake install failed"
        dodoc changelog {bugs,extensions,faq,howto,quickstart,readme,todo}.txt
        dohtml -r docs/html/*
        if use examples ; then