Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53232 - Conflict between distcc and sandbox - can't emerge gdb, ethereal, maybe others
Summary: Conflict between distcc and sandbox - can't emerge gdb, ethereal, maybe others
Status: RESOLVED DUPLICATE of bug 51532
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-07 09:00 UTC by Honza
Modified: 2005-07-17 13:06 UTC (History)
1 user (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 Honza 2004-06-07 09:00:55 UTC
Conflict between distcc (sys-devel/distcc-2.13-r1) and sandbox - can't emerge gdb (sys-devel/gdb-6.0, first time), ethereal (net-analyzer/ethereal-0.10.4, upgrade) ... 
On the other hand, emerge smssend (net-misc/smssend-3.3, upgrade) works.

Reproducible: Always
Steps to Reproduce:
1. emerge ethereal
2. (copy output ...)
3. emerge gdb

Actual Results:  
# emerge ethereal
Calculating dependencies ...done!
>>> emerge (1 of 1) net-analyzer/ethereal-0.10.4 to /
>>> md5 src_uri ;-) ethereal-0.10.4.tar.bz2
>>> Unpacking source...
>>> Unpacking ethereal-0.10.4.tar.bz2 to /var/tmp/portage/ethereal-0.10.4/work
ACCESS DENIED  open_wr:   /.distcc/lock/cpu_localhost_0
distcc[1519] (dcc_open_lockfile) ERROR: failed to creat
/.distcc/lock/cpu_localhost_0: Permission denied
distcc[1519] (dcc_lock_one) ERROR: failed to lock
ACCESS DENIED  open_wr:   /.distcc/state/binstate_1519
distcc[1519] (dcc_open_state) ERROR: failed to open
/.distcc/state/binstate_1519: Permission denied
ACCESS DENIED  unlink:    /.distcc/state/binstate_1519
distcc[1519] (dcc_remove_state_file) Warning: failed to unlink
/.distcc/state/binstate_1519: Permission denied
 * Patching ${S}/ltmain.sh...
 *   Could not apply portage.patch!
 *   Please verify that it is not needed.
 *   Applying relink-1.4.3.patch...
 *   Applying tmp-1.3.5.patch...
>>> Source unpacked.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-net-analyzer_-_ethereal-0.10.4-1493.log"

open_wr:   /.distcc/lock/cpu_localhost_0
open_wr:   /.distcc/state/binstate_1519
unlink:    /.distcc/state/binstate_1519
--------------------------------------------------------------------------------
# emerge gdb
# ..... many lines ....
man:
gzipping man page: gdb.1
gzipping man page: gdbserver.1
info:
gzipping GNU info page: gdb.info
gzipping GNU info page: mmalloc.info
gzipping GNU info page: gdb.info-1
gzipping GNU info page: gdb.info-2
gzipping GNU info page: gdb.info-3
gzipping GNU info page: gdbint.info
gzipping GNU info page: stabs.info
gzipping GNU info page: annotate.info
prepallstrip:
strip:
strip:
   usr/bin/gdb
   usr/bin/gdbserver
>>> Completed installing into /var/tmp/portage/gdb-6.0/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-sys-devel_-_gdb-6.0-21818.log"

open_wr:   /.distcc/lock/cpu_tcp_195.113.20.153_5773_0
open_wr:   /.distcc/lock/cpu_localhost_0
open_wr:   /.distcc/state/binstate_21879
unlink:    /.distcc/state/binstate_21879
open_wr:   /.distcc/lock/cpu_localhost_0
open_wr:   /.distcc/state/binstate_21883
unlink:    /.distcc/state/binstate_21883
--------------------------------------------------------------------------------


Expected Results:  
It should emerge that packages of course ...

Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.26)
=================================================================
System uname: 2.4.26 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.4.10
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=athlon -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=athlon -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
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="3dnow X Xaw3d aalib apache2 apm arts avi berkdb caps cdr crypt cups curl
dga doc dvd encode esd flac foomaticdb gd gdbm gif gpm gtk gtk2 imagemagick
imlib innodb ipv6 java jpeg lcms lesstif libg++ libwww mad mbox mcal memlimit
mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib
perl png python qt quicktime readline samba sdl slang snmp spell sqlite sse ssl
svga tcltk tcpd tetex theora tiff truetype unicode usb vhosts videos wmf x86 xml
xml2 xmms xosd xv zlib"
Comment 1 Sven Wegener gentoo-dev 2004-06-07 09:11:26 UTC
see bug 51532 or bug 44540
Comment 2 Honza 2004-06-07 11:54:22 UTC
OK, now I see what's the problem, but still ... what is official resolution ? Delete PORTAGE_TMPDIR (will not work) ? Add PORTAGE_TMPDIR to make.conf (my choice, is working) ? Delete DISTCC_DIR ? Set DISTCC_DIR to hard value (without using ${PORTAGE_TMPDIR} ?
Comment 3 Sven Wegener gentoo-dev 2004-06-07 13:03:40 UTC
That's up to you, as long as it's working it should be ok.

I'm using DISTCC_DIR="${PORTAGE_TMPDIR}/distcc" If you don't set it in make.conf emerge will use DISTCC_DIR="${PORTAGE_TMPDIR}/.distcc" as a default
Comment 4 Luca Barbato gentoo-dev 2004-06-07 13:33:41 UTC
Looks like a configuration problem to me.
Is the default ok?
Comment 5 Lisa Seelye (RETIRED) gentoo-dev 2004-06-07 19:29:17 UTC
What has to be done is this:

Delete DISTCC_DIR from make.conf
Comment PORTAGE_TMPDIR in make.conf (if this step fails to work after commenting this there exists a bug with Portage and should be assigned to the portage team).

I'm going to go ahead and resolve this as a duplicate of bug #51532.

*** This bug has been marked as a duplicate of 51532 ***