Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342519 - x11-misc/xdock-0.2.0 sandbox access violation by invoking 'ldconfig' in phase 'src_install'
Summary: x11-misc/xdock-0.2.0 sandbox access violation by invoking 'ldconfig' in phase...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Dockapp Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-24 19:23 UTC by Oleg Popov
Modified: 2010-10-26 12:24 UTC (History)
0 users

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


Attachments
remove install-exec-hook (xdock-0.2.0-ldconfig.patch,150 bytes, patch)
2010-10-26 12:17 UTC, Michael Weber (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Popov 2010-10-24 19:23:21 UTC
xdock-0.2.0/src/lib/Makefile{,.in,.am} tries to invoke 'ldconfig' in rule 'install-exec-hook'

Reproducible: Always

Steps to Reproduce:
# FEATURES=sandbox emerge =x11-misc/xdock-0.2.0




...
make  install-exec-hook
make[4]: Entering directory `/var/tmp/portage/x11-misc/xdock-0.2.0/work/xdock-0.2.0/src/lib'
ldconfig      
ACCESS DENIED  open_wr:      /etc/ld.so.cache~
make[4]: *** [install-exec-hook] Error 1
make[3]: *** [install-exec-am] Error 2
make[3]: Leaving directory `/var/tmp/portage/x11-misc/xdock-0.2.0/work/xdock-0.2.0/src/lib'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/x11-misc/xdock-0.2.0/work/xdock-0.2.0/src/lib'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-misc/xdock-0.2.0/work/xdock-0.2.0/src'
make: *** [install-recursive] Error 1
 * ERROR: x11-misc/xdock-0.2.0 failed:
 *   emake install failed.
 *            
 * Call stack:
 *     ebuild.sh, line  54:  Called src_install
 *   environment, line 162:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" install || die "emake install failed.";
 *
 * If you need support, post the output of 'emerge --info =x11-misc/xdock-0.2.0',
 * the complete build log and the output of 'emerge -pqv =x11-misc/xdock-0.2.0'.
 * The complete build log is located at '/var/tmp/portage/x11-misc/xdock-0.2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/xdock-0.2.0/temp/environment'.
 * S: '/var/tmp/portage/x11-misc/xdock-0.2.0/work/xdock-0.2.0'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-11478.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 Michael Weber (RETIRED) gentoo-dev 2010-10-26 12:17:27 UTC
Created attachment 252021 [details, diff]
remove install-exec-hook
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-10-26 12:19:04 UTC
Index: xdock-0.2.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/x11-misc/xdock/xdock-0.2.0.ebuild,v
retrieving revision 1.1
diff -u -B -r1.1 xdock-0.2.0.ebuild
--- xdock-0.2.0.ebuild  13 Jan 2008 10:12:02 -0000      1.1
+++ xdock-0.2.0.ebuild  26 Oct 2010 12:18:27 -0000
@@ -2,6 +2,10 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/x11-misc/xdock/xdock-0.2.0.ebuild,v 1.1 2008/01/13 10:12:02 drac Exp $
 
+EAPI=2
+
+inherit autotools eutils
+
 DESCRIPTION="emulates Window Maker docks (runs in any window manager)"
 HOMEPAGE="http://xdock.sourceforge.net"
 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
@@ -15,6 +19,11 @@
        media-libs/imlib"
 DEPEND="${RDEPEND}"
 
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-ldconfig.patch
+       eautoreconf
+}
+
 src_install() {
        emake DESTDIR="${D}" install || die "emake install failed."
        dodoc API AUTHORS ChangeLog README TODO
Comment 3 Michael Weber (RETIRED) gentoo-dev 2010-10-26 12:24:22 UTC
fixed

+  26 Oct 2010; Michael Weber <xmw@gentoo.org> xdock-0.2.0.ebuild,
+  +files/xdock-0.2.0-ldconfig.patch:
+  Remove ldconfig from build system, thanks to Oleg Popov
+  <dev-random@mail.ru> on bug #342519.
+