Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271460 - emerge grub ; emerge mc ; emerge python
Summary: emerge grub ; emerge mc ; emerge python
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-27 20:18 UTC by Bogdan Cehan
Modified: 2009-06-01 18:43 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 Bogdan Cehan 2009-05-27 20:18:09 UTC
when i try to emerge sys-boot/grub-0.97-r9 this crashes with OSError: [Errno 530] Unknown error 530: '/var/tmp/portage/sys-boot/grub-0.97-r9'

Reproducible: Always

Actual Results:  
 # emerge grub
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-boot/grub-0.97-r9
Traceback (most recent call last):
  File "/usr/bin/emerge", line 18, in ?
    retval = _emerge.emerge_main()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 14085, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 13187, in action_build
    retval = mergetask.merge()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 9880, in merge
    rval = self._merge()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 10122, in _merge
    self._main_loop()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 10248, in _main_loop
    while self._schedule():
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 8720, in _schedule
    return self._schedule_tasks()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 10269, in _schedule_tasks
    if q.schedule():
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 8612, in schedule
    task.start()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 1647, in start
    self._start()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 3600, in _start
    self._start_task(build, self._default_final_exit)
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 1935, in _start_task
    task.start()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 1647, in start
    self._start()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 2488, in _start
    self._prefetch_exit(prefetcher)
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 2512, in _prefetch_exit
    self._start_task(fetcher, self._fetch_exit)
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 1935, in _start_task
    task.start()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 1647, in start
    self._start()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 2280, in _start
    self._build_dir.clean()
  File "/usr/lib/portage/pym/_emerge/__init__.py", line 2409, in clean
    shutil.rmtree(settings["PORTAGE_BUILDDIR"])
  File "/usr/local/lib/python2.4/shutil.py", line 155, in rmtree
    onerror(os.listdir, path, sys.exc_info())
  File "/usr/local/lib/python2.4/shutil.py", line 153, in rmtree
    names = os.listdir(path)
OSError: [Errno 530] Unknown error 530: '/var/tmp/portage/sys-boot/grub-0.97-r9'



 # emerge --info
Portage 12175-svn (default/linux/x86/2008.0, gcc-4.1.1, glibc-2.10.1-r0, 2.6.18-prep i686)
=================================================================
System uname: Linux-2.6.18-prep-i686-AMD_Sempron-tm-_Processor_3200+-with-glibc2.3
Timestamp of tree: Wed, 27 May 2009 01:45:01 +0000
app-shells/bash:     4.0_p24
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.evolva.ro/gentoo/ ftp://ftp.romnet.org/gentoo/ ftp://ftp.roedu.net/pub/mirrors/gentoo.org/"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv isdnlog midi mktemp mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Bogdan Cehan 2009-05-27 20:24:48 UTC
(In reply to comment #0)
> when i try to emerge sys-boot/grub-0.97-r9 this crashes with OSError: [Errno
> 530] Unknown error 530: '/var/tmp/portage/sys-boot/grub-0.97-r9'
> 
> Reproducible: Always
> 
> Actual Results:  
>  # emerge grub
> Calculating dependencies... done!
> 
> >>> Verifying ebuild manifests
> 
> >>> Emerging (1 of 1) sys-boot/grub-0.97-r9
> Traceback (most recent call last):
>   File "/usr/bin/emerge", line 18, in ?
>     retval = _emerge.emerge_main()
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 14085, in emerge_main
>     myopts, myaction, myfiles, spinner)
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 13187, in action_build
>     retval = mergetask.merge()
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 9880, in merge
>     rval = self._merge()
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 10122, in _merge
>     self._main_loop()
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 10248, in _main_loop
>     while self._schedule():
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 8720, in _schedule
>     return self._schedule_tasks()
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 10269, in
> _schedule_tasks
>     if q.schedule():
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 8612, in schedule
>     task.start()
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 1647, in start
>     self._start()
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 3600, in _start
>     self._start_task(build, self._default_final_exit)
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 1935, in _start_task
>     task.start()
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 1647, in start
>     self._start()
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 2488, in _start
>     self._prefetch_exit(prefetcher)
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 2512, in _prefetch_exit
>     self._start_task(fetcher, self._fetch_exit)
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 1935, in _start_task
>     task.start()
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 1647, in start
>     self._start()
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 2280, in _start
>     self._build_dir.clean()
>   File "/usr/lib/portage/pym/_emerge/__init__.py", line 2409, in clean
>     shutil.rmtree(settings["PORTAGE_BUILDDIR"])
>   File "/usr/local/lib/python2.4/shutil.py", line 155, in rmtree
>     onerror(os.listdir, path, sys.exc_info())
>   File "/usr/local/lib/python2.4/shutil.py", line 153, in rmtree
>     names = os.listdir(path)
> OSError: [Errno 530] Unknown error 530:
> '/var/tmp/portage/sys-boot/grub-0.97-r9'
> 
> 
> 
>  # emerge --info
> Portage 12175-svn (default/linux/x86/2008.0, gcc-4.1.1, glibc-2.10.1-r0,
> 2.6.18-prep i686)
> =================================================================
> System uname:
> Linux-2.6.18-prep-i686-AMD_Sempron-tm-_Processor_3200+-with-glibc2.3
> Timestamp of tree: Wed, 27 May 2009 01:45:01 +0000
> app-shells/bash:     4.0_p24
> dev-python/pycrypto: 2.0.1-r6
> sys-apps/baselayout: 2.0.1
> sys-apps/openrc:     0.4.3-r2
> sys-apps/sandbox:    1.9
> sys-devel/autoconf:  2.63-r1
> sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
> sys-devel/binutils:  2.19.1-r1
> sys-devel/gcc-config: 1.4.1
> sys-devel/libtool:   2.2.6a
> virtual/os-headers:  2.6.29
> ACCEPT_KEYWORDS="x86 ~x86"
> CBUILD="i486-pc-linux-gnu"
> CFLAGS="-O2 -mtune=i686 -pipe"
> CHOST="i486-pc-linux-gnu"
> CONFIG_PROTECT="/etc /var/bind"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf
> /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo
> /etc/udev/rules.d"
> CXXFLAGS="-O2 -mtune=i686 -pipe"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms
> strict unmerge-orphans userfetch"
> GENTOO_MIRRORS="http://mirrors.evolva.ro/gentoo/ ftp://ftp.romnet.org/gentoo/
> ftp://ftp.roedu.net/pub/mirrors/gentoo.org/"
> LDFLAGS="-Wl,-O1"
> PKGDIR="/usr/portage/packages"
> PORTAGE_CONFIGROOT="/"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
> --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
> --exclude=/local --exclude=/packages"
> PORTAGE_TMPDIR="/var/tmp"
> PORTDIR="/usr/portage"
> SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
> USE="acl berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv
> isdnlog midi mktemp mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd
> python readline reflection session spl ssl sysfs tcpd unicode x86 xorg zlib"
> ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1
> emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m
> maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
> ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
> hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug
> rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic
> authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm
> authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache
> dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
> filter headers include info log_config logio mem_cache mime mime_magic
> negotiation rewrite setenvif speling status unique_id userdir usertrack
> vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux"
> LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
> text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv
> r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
> Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG,
> LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
> PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
> 

when i try:
 
cat test.c
main(){open("/etc/passwd", 0x80000);}
gcc test.c -static
strace -eopen ./a.out
open("/etc/passwd", O_RDONLY|0x80000 /* O_??? */) = 3

so . i don't think this is a problem of my linux kernel which is version 2.6.18 ... anyway i will try to upgrade my kernel to a newer version to see if that's my problem .... 
Comment 2 Mike Auty (RETIRED) gentoo-dev 2009-05-30 10:49:42 UTC
This sounds like either a permissions or unusual mount problem of some kind.  My guess is that portage is trying to clear out the /var/tmp/portage/sys-boot/grub-0.97-r9 directory.  Can you please check whether this exists or not, and also provide information about how it's mounted (output from mount) and what permissions it has set on it (ls -la /var/tmp/portage/sys-boot/)?
Comment 3 Sebastian Luther (few) 2009-06-01 18:43:51 UTC
Please provide the requested information and then reopen the bug.