Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97707 - dev-lang/erlang-10.2.0 fails with sandbox errors
Summary: dev-lang/erlang-10.2.0 fails with sandbox errors
Status: RESOLVED DUPLICATE of bug 101433
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Maintainers for Miscelleneous Language Packages [OBSOLETE]
URL:
Whiteboard:
Keywords:
: 97811 97866 99419 105080 105226 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-02 04:04 UTC by Albert Holm
Modified: 2005-09-08 02:29 UTC (History)
10 users (show)

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 Albert Holm 2005-07-02 04:04:35 UTC
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
Comment 1 SpanKY gentoo-dev 2005-07-02 12:25:18 UTC
not userpriv related
Comment 2 SpanKY gentoo-dev 2005-07-02 15:00:30 UTC
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 ...
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-07-03 04:47:01 UTC
*** Bug 97811 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-07-03 23:33:39 UTC
*** Bug 97866 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-07-18 04:48:36 UTC
*** Bug 99419 has been marked as a duplicate of this bug. ***
Comment 6 Martin Wegner 2005-07-25 00:41:19 UTC
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 ...
Comment 7 Martin Wegner 2005-07-25 00:44:12 UTC
Same errors when emerging media-libs/esdl-0.95.0630 and media-gfx/wings-0.98.29b
Comment 8 quazgar 2005-08-05 10:19:21 UTC
Same error for the current stable version, 9c-r2 with 
FEATURES="autoconfig distlocks sandbox sfperms strict"
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-08-09 06:07:44 UTC
Can someone test if this is still broken with sandbox-1.2.12?
Comment 10 Hans-Christian Armingeon 2005-08-09 06:28:27 UTC
>>> 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. 
 
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2005-08-09 06:32:15 UTC
(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.
Comment 12 Tupone Alfredo gentoo-dev 2005-08-12 11:56:16 UTC
(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
Comment 13 Tupone Alfredo gentoo-dev 2005-08-13 03:42:03 UTC
Actually I installed 10.2.6, not 10.2.0 
10.2.0 seems missing erlang-10.2.0-export-TARGET.patch
Comment 14 Martin Wegner 2005-08-13 04:38:52 UTC
Here, 10.2.6 also compiled cleanly 3 days ago
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2005-08-14 13:39:24 UTC
OK, thanks for testing. This is a dupe of Bug 101433. Albert, does the new
sandbox solve the issue for you as well?
Comment 16 Albert Holm 2005-08-14 15:21:23 UTC
Yes it works. No such errors when emerging erlang-10.2.6 when sandbox-1.2.12 is 
installed.
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2005-08-14 15:35:30 UTC
Marking as dupe.

*** This bug has been marked as a duplicate of 101433 ***
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2005-09-06 16:18:05 UTC
*** Bug 105080 has been marked as a duplicate of this bug. ***
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2005-09-08 02:29:11 UTC
*** Bug 105226 has been marked as a duplicate of this bug. ***