Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 348772

Summary: sys-apps/sandbox-2.4: static touch does not work
Product: Portage Development Reporter: Mikael Hreidarsson <47mikael>
Component: SandboxAssignee: Sandbox Maintainers <sandbox>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Log of libpcre-8.02 build.

Description Mikael Hreidarsson 2010-12-15 07:34:33 UTC
after emerging sandbox 2.4 emerge stops working because touch does not work
and the ebuild aborts.



Reproducible: Always

Steps to Reproduce:
1. emerge sandbox-2.4
2. emerge libpcre-8.02
3.

Actual Results:  

>>> Unpacking pcre-8.02.tar.bz2 to /var/tmp/portage/dev-libs/libpcre-8.02/work
ISE UTIMENSAT((null)): Success
        abs_path: (null)
        res_path: (null)
/usr/lib/libsandbox.so(+0x26e4)[0xb7ee26e4]
/usr/lib/libsandbox.so(+0x275b)[0xb7ee275b]
/usr/lib/libsandbox.so(+0x4199)[0xb7ee4199]
/usr/lib/libsandbox.so(+0x4b0a)[0xb7ee4b0a]
/usr/lib/libsandbox.so(+0x4b80)[0xb7ee4b80]
/usr/lib/libsandbox.so(+0x50f0)[0xb7ee50f0]
/usr/lib/libsandbox.so(+0x5c37)[0xb7ee5c37]
/usr/lib/libsandbox.so(execve+0x47)[0xb7ee73b7]
/bin/bash(shell_execve+0x44)[0x8072cd4]
/proc/17714/cmdline: touch /var/tmp/portage/dev-libs/libpcre-8.02/.unpacked 

/usr/lib/portage/bin/ebuild.sh: line 703: 17713 Aborted                 touch "${PORTAGE_BUILDDIR}/.unpacked"
 * ERROR: dev-libs/libpcre-8.02 failed:
 *   IO Failure -- Failed 'touch .unpacked' in /var/tmp/portage/dev-libs/libpcre-8.02
 * 
 * Call stack:
 *   ebuild.sh, line 2320:  Called ebuild_main
 *   ebuild.sh, line 2227:  Called dyn_unpack
 *   ebuild.sh, line  746:  Called die
 * The specific snippet of code:
 *      touch "${PORTAGE_BUILDDIR}/.unpacked" || die "IO Failure -- Failed 'touch .unpacked' in ${PORTAGE_BUILDDIR}"
 * 
 * If you need support, post the output of 'emerge --info =dev-libs/libpcre-8.02',
 * the complete build log and the output of 'emerge -pqv =dev-libs/libpcre-8.02'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libpcre-8.02/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libpcre-8.02/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/libpcre-8.02/work/pcre-8.02'

>>> Failed to emerge dev-libs/libpcre-8.02, Log file:

>>>  '/var/tmp/portage/dev-libs/libpcre-8.02/temp/build.log'


Expected Results:  
touch "${PORTAGE_BUILDDIR}/.unpacked" should touch the .unpacked file and ebuild should continue

vali tmp # eix sandbox
[I] sys-apps/sandbox
     Available versions:  1.2.18.1-r2{tbz2} ~1.2.18.1-r3 ~1.2.20_alpha2-r1 1.6-r2 2.3-r1 2.4 {multilib}
     Installed versions:  2.4(06:57:19 AM 12/15/2010)(-multilib)                                                                                              

vali tmp # eix coreutils
[U] sys-apps/coreutils
     Available versions:  8.5 ~8.5-r1 ~8.6 8.7 {acl caps gmp nls selinux static unicode vanilla xattr}
     Installed versions:  8.5(02:17:27 PM 07/16/2010)(acl nls static unicode -caps -gmp -selinux -vanilla -xattr)





vali tmp # emerge --info
Portage 2.1.9.24 (default/linux/x86/10.0/server, gcc-4.4.4, glibc-2.11.2-r3, 2.6.27-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r4-i686-AMD_Opteron-tm-_Processor_242-with-gentoo-1.12.14
Timestamp of tree: Wed, 15 Dec 2010 06:30:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.5.4-r4, 2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.1.2, 4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.rhnet.is/pub/gentoo http://ftp.rhnet.is/pub/gentoo http://mirror.gentoo.no/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY="/usr/local/hbi-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt cxx dri firebird fortran iconv imap ipv6 java javacomm javadoc javamail jikes ldap modules mudflap mysql ncurses nls nptl nptlonly openmp pcre perl php pppd readline samba sasl session snmp ssl sysfs tcpd truetype unicode x86 xerec xml xmlrpc 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 cgi cgid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2010-12-15 11:23:19 UTC
if you build coreutils without USE=-static, does it work ?  or what is the new error message ?
Comment 2 Anakim Border 2010-12-16 10:11:01 UTC
(In reply to comment #1)
> if you build coreutils without USE=-static, does it work ?  or what is the new
> error message ?
> 

Same problem here. coreutils is *not* compiled with USE=static.

$ emerge libpcre
[...]
>>> Failed to emerge dev-libs/libpcre-8.02, Log file:

>>>  '/var/tmp/portage/dev-libs/libpcre-8.02/temp/build.log'

 * Messages for package dev-libs/libpcre-8.02:

 * ERROR: dev-libs/libpcre-8.02 failed:
 *   IO Failure -- Failed 'touch .unpacked' in /var/tmp/portage/dev-libs/libpcre-8.02
 * 
 * Call stack:
 *   ebuild.sh, line 2320:  Called ebuild_main
 *   ebuild.sh, line 2227:  Called dyn_unpack
 *   ebuild.sh, line  746:  Called die
 * The specific snippet of code:
 *      touch "${PORTAGE_BUILDDIR}/.unpacked" || die "IO Failure -- Failed 'touch .unpacked' in ${PORTAGE_BUILDDIR}"
 * 
 * If you need support, post the output of 'emerge --info =dev-libs/libpcre-8.02',
 * the complete build log and the output of 'emerge -pqv =dev-libs/libpcre-8.02'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libpcre-8.02/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libpcre-8.02/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/libpcre-8.02/work/pcre-8.02'

$ emerge --info

Portage 2.1.9.24 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.18-128.7.1.el5xen i686)
=================================================================
System uname: Linux-2.6.18-128.7.1.el5xen-i686-Intel-R-_Xeon-R-_CPU_E5520_@_2.27GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 16 Dec 2010 09:30:01 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.6-r1
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -mno-tls-direct-seg-refs -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -mno-tls-direct-seg-refs -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
PORTDIR_OVERLAY="/usr/myportage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl bash-completion berkdb bzip2 cli cracklib cups cxx dri iconv ipv6 modules mudflap ncurses nptl nptlonly openmp pam pcre pppd readline session ssl sysfs unicode vim-syntax 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 cgi cgid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Anakim Border 2010-12-16 10:35:22 UTC
I've moved back to sandbox-2.3-r1, but the problem persists.
Comment 4 SpanKY gentoo-dev 2010-12-16 10:59:22 UTC
Anakin: you delete the actual relevant pieces of the log.  please dont try and determine what you think is relevant.  post the entire log file as an attachment and let a developer figure it out.
Comment 5 Anakim Border 2010-12-16 11:37:20 UTC
Created attachment 257300 [details]
Log of libpcre-8.02 build.
Comment 6 Mikael Hreidarsson 2010-12-16 14:00:02 UTC
(In reply to comment #1)
> if you build coreutils without USE=-static, does it work ?  or what is the new
> error message ?
> 

Yes after I emerged coreutils without static and reemerged both coreutils-8.7 and sandbox-2.4 I can emerge libpcre without problems.
It seems that coreutils with static is the culprit here.
Comment 7 SpanKY gentoo-dev 2010-12-16 15:43:53 UTC
Anakin: your bug is not the same as this.  you actually have Bug 348640.

Mikael: you probably have Bug 346815 which is fixed in git already.

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