Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254505 - unpacking a deb file fails with FEATURES='userpriv' under portage 2.1.6.4
Summary: unpacking a deb file fails with FEATURES='userpriv' under portage 2.1.6.4
Status: RESOLVED DUPLICATE of bug 250469
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-11 00:41 UTC by Ben Peddell
Modified: 2009-01-11 01:37 UTC (History)
0 users

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 Ben Peddell 2009-01-11 00:41:22 UTC
This bug affects app-misc/ca-certificates-20080809 and possibly other packages using Debian packages.
Unpacking a Debian package fails with permission denied in deb2targz.
This is due to deb2targz extracting into the distdir directory, which is owned by root.

Reproducible: Always

Steps to Reproduce:
1. enable the userpriv feature
2. emerge app-misc/ca-certificates-20080809

Actual Results:  
Package unpack fails with permission denied


Expected Results:  
Package built successfully

This bug is not fixed with portage 2.2_rc20

error with emerge app-misc/ca-certificates:
deb2targz: converting '/var/tmp/portage/app-misc/ca-certificates-20080809/distdir//ca-certificates_20080809_all.deb' ...
deb2targz: skipping section 'debian-binary'
deb2targz: skipping section 'control.tar.gz'
can't write '/var/tmp/portage/app-misc/ca-certificates-20080809/distdir//ca-certificates_20080809_all.tar.gz': Permission denied at /usr/bin/deb2targz line 54.
 *
 * ERROR: app-misc/ca-certificates-20080809 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 2146:  Called unpack 'ca-certificates_20080809_all.deb'
 *               ebuild.sh, line  409:  Called die
 * The specific snippet of code:
 *                                      deb2targz "${srcdir}/${x}" || die "$myfail"
 *  The die message:
 *   failure unpacking ca-certificates_20080809_all.deb
 *

emerge --info:
Portage 2.1.6.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r6-x86_64-AMD_Sempron-tm-_Processor_3000+-with-glibc2.2.5
Timestamp of tree: Mon, 29 Dec 2008 17:30:01 +0000
distcc 3.0 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -mtune=athlon64 -march=athlon64 -mmmx -msse -msse2 -mfpmath=sse -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=athlon64 -march=athlon64 -mmmx -msse -msse2 -mfpmath=sse -pipe"
DISTDIR="/srv/shares/Data/gentoo/distfiles"
FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_AU en_GB en_US"
PKGDIR="/srv/shares/Data/gentoo/packages/x64"
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/portage/overlays/local /home/klightspeed/src/svn/svn.killerwolves.net/portage /usr/local/portage/overlays/zugaina"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d a52 aac acl acpi aim alsa amd64 apache2 audiofile bcmath berkdb bzip2 caps cddb cdparanoia cdr cli cracklib crypt cscope cups curl cvs dbus dga dio doc dri dts dv dvb dvd dvdr dvdread encode esd examples exif fam ffmpeg fftw firefox flac fltk foomaticdb fortran ftp gd gdbm gif gimpprint git glut gnutls gphoto2 gpm gps gtk gtk2 hal hddtemp iconv icq ieee1394 imagemagick imlib ipv6 isdnlog jabber jack java jbig jpeg jpeg2k kde kerberos lcms ldap libsamplerate libwww lirc lm_sensors mad madwifi midi mikmod mmap mmx mng modplug mp3 mpeg mplayer msn mudflap multilib musepack mysql mysqli ncurses netcdf network nfs nls nntp nocd nptl nptlonly nsplugin odbc ogg openal openexr opengl openmp oscar oss pam pcntl pcre pdf perl php plotutils png portaudio posix ppds pppd profile python qt3 quicktime quotas readline reflection samba sasl scanner sdl session shorten slang slp snmp sockets socks5 source sox speex spell spl sse sse2 ssl startup-notification subversion svg sysfs sysvipc szip tcpd tetex theora threads tiff truetype unicode usb v4l v4l2 vcd videos vim-syntax vorbis wifi winbind wmf wxwindows x264 xattr xcomposite xface xine xinerama xml xmlreader xmlwriter xorg xpm xprint xscreensaver xv xvid xvmc yahoo yv12 zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 auth_digest     authn_anon authn_dbd 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 dbd deflate dir     disk_cache env expires ext_filter file_cache filter headers     ident imagemap include info log_config logio mem_cache mime     mime_magic negotiation proxy proxy_ajp proxy_balancer     proxy_connect proxy_http rewrite setenvif so speling status     unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_AU en_GB en_US" LIRC_DEVICES="all audio serial" USERLAND="GNU" VIDEO_CARDS="nvidia radeon ati fbdev vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2009-01-11 01:37:10 UTC

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