If I change any ebuild at all on my system, even adding an epatch line to it, I get this (details are in forum thread above): Calculating dependencies \ACCESS DENIED open_wr: /dev/shm/aux_db_key_temp /usr/lib/portage/bin/ebuild.sh: line 1836: /dev/shm/aux_db_key_temp: Permission denied ACCESS DENIED open_wr: /dev/shm/aux_db_key_temp /usr/lib/portage/bin/ebuild.sh: line 1837: /dev/shm/aux_db_key_temp: Permission denied ... --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-<blah>.log" open_wr: /dev/shm/aux_db_key_temp open_wr: /dev/shm/aux_db_key_temp open_wr: /dev/shm/aux_db_key_temp ... aux_get(): (0) Error in <ebuild> ebuild. (1) Check for syntax error or corruption in the ebuild. (--debug) The log file just has the open_wr lines in it, and --debug doesnt add anything extra. Even changing ebuilds back to _exactly_ what they were doesnt stop the error messages, and all the ebuild in my overlay are un-emergable. I cannot recall anything specific which caused this. Reemerging portage doesnt fix it. emerge info (verbose version is in forum thread above): Gentoo Base System version 1.6.10 Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.12-rc2-mm1 i686) ================================================================= System uname: 2.6.12-rc2-mm1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Python: dev-lang/python-2.3.5 [2.3.5 (#1, Mar 31 2005, 13:19:32)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 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.15.92.0.2-r8 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -Os -pipe -ffast-math -fforce-addr -ftracer -mfpmath=sse" 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/texmf/web2c /etc/env.d" CXXFLAGS="-march=pentium4 -Os -pipe -ffast-math -fforce-addr -ftracer -mfpmath=sse -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache digest distlocks fixpackages sandbox sfperms" GENTOO_MIRRORS="ftp://mirrors.blueyonder.co.uk/sites/gentoo/ http://www.mirror.ac.uk/mirror/distro.ibiblio.org/pub/linux/distributions/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage.local" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X acpi alsa avi berkdb bitmap-fonts bmp cdr crypt cups curl dvd emboss encode fam fbcon ffmpeg flac foomaticdb fortran gdbm gif gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib java jpeg junit libg++ libwww lirc mad mikmod mime mmx motif mozilla mp3 mpeg ncurses nls nocd nptl offensive oggvorbis opengl oss pam pcmcia pdflib perl png python quicktime readline samba sdl slang spell sse sse2 ssl symlink tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode videos xml2 xosd xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
is /dev/shm mounted?
one of the first things i checked tachyon simon # mount /dev/hda4 on / type reiser4 (rw,noatime) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) udev on /dev type tmpfs (rw) devpts on /dev/pts type devpts (rw) /dev/hda1 on /mnt/windows type ntfs (ro) **none on /dev/shm type tmpfs (rw)** none on /tmp type tmpfs (rw) usbfs on /proc/bus/usb type usbfs (rw) /dev/usbdisk on /media/usbdisk type reiser4 (rw)
what does `emerge info -v | grep /dev/shm` show ?
simon@tachyon ~ $ emerge info -v |grep /dev/shm PORTAGE_TMPFS="/dev/shm"
and if you unset that variable in your make.conf does it work fine ?
no, still the same errors
however, setting it to another directory (/tmp, which is a tmpfs on my system) makes everything work again
Can you give the following a try please? jason@linux ~ $ /usr/lib/portage/bin/sandbox ========================== Gentoo linux path sandbox =========================== Detection of the support files. Verification of the required files. Setting up the required environment variables. The protected environment has been started. -------------------------------------------------------------------------------- Shell being started in forked process. jason@linux ~ $ touch /dev/shm/test ACCESS DENIED open_wr: /dev/shm/test touch: cannot touch `/dev/shm/test': Permission Denied. jason@linux ~ $ export SANDBOX_ON="0" jason@linux ~ $ touch /dev/shm/test jason@linux ~ $ rm /dev/shm/test
tachyon music # /usr/lib/portage/bin/sandbox ========================== Gentoo linux path sandbox =========================== Detection of the support files. Verification of the required files. Setting up the required environment variables. The protected environment has been started. -------------------------------------------------------------------------------- Shell being started in forked process. tachyon ~ # touch /dev/shm/test ACCESS DENIED open_wr: /dev/shm/test touch: cannot touch `/dev/shm/test': Permission denied tachyon ~ # export SANDBOX_ON="0" tachyon ~ # touch /dev/shm/test tachyon ~ # rm /dev/shm/test Just reconfirmed the errors (inc. when undone the edits), when PORTAGE_TMPFS is unset the error msg is open_wr: /var/cache/edb/dep/aux_db_key_temp but setting it as /tmp removes the error msgs
Any problems running the same test with /var/cache/edb ?
yup, same problem: ACCESS DENIED open_wr: /var/cache/edb/aux_db_key_temp /usr/lib/portage/bin/ebuild.sh: line 1836: /var/cache/edb/aux_db_key_temp: Permission denied ... open_wr: /var/cache/edb/aux_db_key_temp this occurs even if i use --pretend
The test I was talking about was running sandbox directly...
sorry, brain isnt really working this morning simon@tachyon ~ $ /usr/lib/portage/bin/sandbox ========================== Gentoo linux path sandbox =========================== Detection of the support files. Verification of the required files. Setting up the required environment variables. The protected environment has been started. -------------------------------------------------------------------------------- Shell being started in forked process. simon@tachyon ~ $ touch /var/cache/edb/test ACCESS DENIED open_wr: /var/cache/edb/test touch: cannot touch `/var/cache/edb/test': Permission denied simon@tachyon ~ $ export SANDBOX_ON="0" simon@tachyon ~ $ touch /var/cache/edb/test simon@tachyon ~ $ rm /var/cache/edb/test
Another sandbox bug... I seem to recall something similar to this recently.
This is probably fixed by now in recent versions of sandbox.
(In reply to comment #0) > Calculating dependencies \ACCESS DENIED open_wr: /dev/shm/aux_db_key_temp > /usr/lib/portage/bin/ebuild.sh: line 1836: /dev/shm/aux_db_key_temp: Permission denied > ACCESS DENIED open_wr: /dev/shm/aux_db_key_temp > /usr/lib/portage/bin/ebuild.sh: line 1837: /dev/shm/aux_db_key_temp: Permission denied Does this problem still exist with latest stable versions of portage and sandbox? If so, please reopen.
Closing