Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88589 - Changing an ebuild makes it un-emergable
Summary: Changing an ebuild makes it un-emergable
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Portage team
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks: 90592
  Show dependency tree
 
Reported: 2005-04-10 06:41 UTC by Simon Cooper
Modified: 2007-01-11 10:37 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 Simon Cooper 2005-04-10 06:41:40 UTC
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
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2005-04-10 08:44:10 UTC
is /dev/shm mounted?
Comment 2 Simon Cooper 2005-04-10 10:40:40 UTC
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)
Comment 3 SpanKY gentoo-dev 2005-04-10 13:27:16 UTC
what does `emerge info -v | grep /dev/shm` show ?
Comment 4 Simon Cooper 2005-04-10 13:54:29 UTC
simon@tachyon ~ $ emerge info -v |grep /dev/shm
PORTAGE_TMPFS="/dev/shm"
Comment 5 SpanKY gentoo-dev 2005-04-10 14:23:30 UTC
and if you unset that variable in your make.conf does it work fine ?
Comment 6 Simon Cooper 2005-04-10 15:24:31 UTC
no, still the same errors
Comment 7 Simon Cooper 2005-04-10 15:25:49 UTC
however, setting it to another directory (/tmp, which is a tmpfs on my system) makes everything work again
Comment 8 Jason Stubbs (RETIRED) gentoo-dev 2005-04-11 06:42:53 UTC
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
Comment 9 Simon Cooper 2005-04-11 06:51:36 UTC
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
Comment 10 Jason Stubbs (RETIRED) gentoo-dev 2005-04-11 07:14:33 UTC
Any problems running the same test with /var/cache/edb ?
Comment 11 Simon Cooper 2005-04-11 07:34:47 UTC
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
Comment 12 Jason Stubbs (RETIRED) gentoo-dev 2005-04-11 07:45:16 UTC
The test I was talking about was running sandbox directly...
Comment 13 Simon Cooper 2005-04-11 08:06:20 UTC
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
Comment 14 Jason Stubbs (RETIRED) gentoo-dev 2005-04-12 03:15:11 UTC
Another sandbox bug... I seem to recall something similar to this recently.
Comment 15 Zac Medico gentoo-dev 2005-07-31 20:01:55 UTC
This is probably fixed by now in recent versions of sandbox.
Comment 16 Zac Medico gentoo-dev 2005-09-04 19:11:43 UTC
(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.
Comment 17 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 10:37:50 UTC
Closing