Emerging dev-lang/erlang-10.2.0 fails if features contain usersandbox. The logfile /tmp/sandbox-dev-lang_-_erlang-10.2.0-11995.log contains the following two lines repeated 60 times each: access_wr: / access_wr: /var The /var/log/portage log contains: ACCESS DENIED access_wr: / ACCESS DENIED access_wr: /var in groups of two or three. Removing usersandbox from FEATURES makes emerge complete succesfully. Reproducible: Always Steps to Reproduce: 1. make sure userpriv and usersandbox are set in FEATURES 2. emerge erlang-10.2.0 emerge --info Gentoo Base System version 1.6.12 Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6. 11-gentoo-r8 i686) ================================================================= System uname: 2.6.11-gentoo-r8 i686 Celeron (Coppermine) ccache version 2.4 [disabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.9 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -fomit-frame-pointer -pipe -O2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/ X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -fomit-frame-pointer -pipe -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://mirror.gentoo.no/ ftp://trumpetti.atm.tut.fi/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ ftp://mirror.gentoo.ru/pub/mirror/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/ gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X adns aim alsa apache2 apm avi bash-completion berkdb bitmap-fonts crypt curl emacs emboss encode firebird flac font-server foomaticdb gd gdbm gif gnutls gpm graphviz gtk2 imagemagick imap imlib innodb jpeg ldap libg++ libwww mad maildir mailwrapper mikmod motif mp3 mpeg msn mysql ncurses nls nptl nptlonly ogg oggvorbis oscar pam pdflib perl php png postgres postgresql python quicktime readline ruby samba sasl skey slang smartcard spell sqlite ssl svga tcpd threads threadsonly tiff truetype truetype-fonts type1-fonts unicode userlocales vorbis xml xml2 yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
not userpriv related
it's a bug in erlc itself ... whenever you try to compile an idl file (erlc blah.idl), for some reason erlc will run access() and stat() on all parent dirs ... for example, when erlc tries to compile stack.idl in $S/lib/orber/examples/Stack/, erlc will do: stat(/) access(/, R_OK) access(/, W_OK) stat(/var) access(/var, R_OK) access(/var, W_OK) stat(/var/tmp) access(/var/tmp, R_OK) access(/var/tmp, W_OK) and so on ... the access(/, W_OK) and access(/var, W_OK) are triggering the sandbox errors ive e-mailed upstream about the issues seeing as how all the stat/access calls seem to be pretty pointless ...
*** Bug 97811 has been marked as a duplicate of this bug. ***
*** Bug 97866 has been marked as a duplicate of this bug. ***
*** Bug 99419 has been marked as a duplicate of this bug. ***
If there is not yet a solution wouldn't it be better to mask this package in portage? It persists for several days now and breaks world update if not masked by hand before ...
Same errors when emerging media-libs/esdl-0.95.0630 and media-gfx/wings-0.98.29b
Same error for the current stable version, 9c-r2 with FEATURES="autoconfig distlocks sandbox sfperms strict"
Can someone test if this is still broken with sandbox-1.2.12?
>>> Unpacking source... >>> Unpacking otp_src_R10B-0.tar.gz to /var/tmp/portage/erlang-10.2.0/work * Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: * * /usr/portage/dev-lang/erlang/files/erlang-10.2.0-export-TARGET.patch * ( erlang-10.2.0-export-TARGET.patch ) !!! ERROR: dev-lang/erlang-10.2.0 failed. !!! Function epatch, Line 217, Exitcode 0 !!! Cannot find $EPATCH_SOURCE! !!! If you need support, post the topmost build error, NOT this status message.
(In reply to comment #10) > >>> Unpacking source... > >>> Unpacking otp_src_R10B-0.tar.gz to /var/tmp/portage/erlang-10.2.0/work > > * Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: Totally unrelated bug, keep on topic please.
(In reply to comment #9) > Can someone test if this is still broken with sandbox-1.2.12? I tested and erlang emerge without any sandbox violation
Actually I installed 10.2.6, not 10.2.0 10.2.0 seems missing erlang-10.2.0-export-TARGET.patch
Here, 10.2.6 also compiled cleanly 3 days ago
OK, thanks for testing. This is a dupe of Bug 101433. Albert, does the new sandbox solve the issue for you as well?
Yes it works. No such errors when emerging erlang-10.2.6 when sandbox-1.2.12 is installed.
Marking as dupe. *** This bug has been marked as a duplicate of 101433 ***
*** Bug 105080 has been marked as a duplicate of this bug. ***
*** Bug 105226 has been marked as a duplicate of this bug. ***