Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491264 - dev-java/oracle-jdk-bin-1.7.0.45 - gzip: /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.45/distdir/jdk-7u45-linux-i586.tar.gz: Permission denied
Summary: dev-java/oracle-jdk-bin-1.7.0.45 - gzip: /var/tmp/portage/dev-java/oracle-jdk...
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-14 20:25 UTC by Michael Sullivan
Modified: 2014-10-16 23:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (dev-java:oracle-jdk-bin-1.7.0.45:20131114-144236.log,2.51 KB, text/plain)
2013-11-14 20:27 UTC, Michael Sullivan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Sullivan 2013-11-14 20:25:04 UTC
Cannot emerge oracle-jdk-bin.  Unpack phase says "This does not look like a tar archive.

Reproducible: Always

Steps to Reproduce:
1. emerge dev-java/oracle-jdk-bin
2.
3.
Actual Results:  
emerge fails

Expected Results:  
emerge should finish successfully

carter oracle-jdk-bin # emerge --info '=dev-java/oracle-jdk-bin-1.7.0.45::gentoo'; emerge -pqv '=dev-java/oracle-jdk-bin-1.7.0.45::gentoo'
Portage 2.2.1 (default/linux/x86/13.0, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.7.10-gentoo-i686-with-gentoo-2.2
KiB Mem:     2983088 total,    239588 free
KiB Swap:     499932 total,    499892 free
Timestamp of tree: Thu, 14 Nov 2013 05:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.2.5-r3
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --autounmask-write"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ rsync://mirror.mcs.anl.gov/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo http://gentoo.mirrors.hoobly.com/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ rsync://mirrors.rit.edu/gentoo/ ftp://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://mirror.iawnet.sandia.gov/gentoo/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.llarian.net/ ftp://gentoo.mirrors.tds.net/gentoo rsync://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.lug.udel.edu/pub/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ rsync://gentoo.cs.uni.edu/gentoo-distfiles http://gentoo.cs.uni.edu/ http://mirror.usu.edu/mirrors/gentoo/ ftp://ftp.wallawalla.edu/pub/mirrors/ftp.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages/carter"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--human-readable"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/extraspace/files/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 acl additions alsa apache2 arts asterisk audiofile automount avi bash-completion bind-mysql bitmap-fonts browserplugin bzip2 candy cdda cdr cgi cli cracklib crypt ctype cups cxx dba dbus declarative divx4linux dri drm dvb dvd dvdr dvdread encode evo examples expat f77 ffmpeg flash flashblock foomaticdb fortran ftp gallium gdbm gentoo gif glut gnome gphoto2 gpm gstreamer gtk gtk2 guile hal iconv imap imlib ipv6 ithreads ivtv jack jack-tempfs jadetex java jikes joystick jpeg kde keymap lib libclamav libg++ libwww lirc lua mad mikmod mmx mmx2 mmxext mode-owner modules moonlight motif mpeg mplayer mpm-leader mudflap mysql mythtv nas nautilus ncurses new-login nls nntp nptl nptlonly nsplugin offensive oggvorbis openmp oss pam pcre pdf perl php png policykit portaudio ppds python qt quicktime readline real ruby sasl sdl seamonkey semantic-desktop session slp snmp spell sql ssl static-libs svga syslog tcl tcpd threads tidy truetype unicode usb userlocales v4l v4l2 vanilla vhosts win32codecs x86 xml xml2 xmms xv zaptel zlib" ABI_X86="32" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" 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 void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en es fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON


 * IMPORTANT: 3 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.
[ebuild  N f  ] dev-java/oracle-jdk-bin-1.7.0.45  USE="X alsa examples fontconfig nsplugin -derby -doc -jce -pax_kernel -source" 

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.
Comment 1 Michael Sullivan 2013-11-14 20:27:34 UTC
Created attachment 363278 [details]
Build log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-11-15 13:27:14 UTC
gzip: /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.45/distdir/jdk-7u45-linux-i586.tar.gz: Permission denied
Comment 3 Michael Sullivan 2013-11-15 15:17:17 UTC
So if it's invalid, how do I fix it?
Comment 4 Michael Sullivan 2013-11-15 15:32:37 UTC
It unzips just fine in that directory.  It's not a lack-of-space issue, if that's what you were thinking.  The drive it's on is at 26% capacity.  Why was this bug marked invalid?  Why did you say nothing beyond that it was invalid, like WHY it was invalid?
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2013-11-15 16:37:42 UTC
The file is owned by the user who downloaded it, and apparently it has insufficient permissions for the user who is trying to unpack it. Read permission should suffice. Fix the permissions.

This is not a Gentoo bug, but a bug local to your system. Therefore it's invalid.
Comment 6 André Terpstra 2014-07-27 09:21:45 UTC
I stumbled upon this error too with dev-java/oracle-jdk-bin-1.7.0.65. it took me quite  a while to uncover this bug report. The solution was simple. Change ownership of the file /usr/portage/distfiles to user portage.

But I am not sure whether this bug is invalid. In over 10 years of Gentoo this was the first time it happened for me. And since the solution requires a manual step, it seems as if something has changed in portage or the Gentoo environment. At the very least, the ebuild message could be adapted.
Comment 7 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2014-10-16 19:02:04 UTC
This bug has been reported several times and each time its been responded to with "not a bug" spectrum results.

Are we sure there isn't something we can do to make it more obvious early on "Hey, look, this is not going to work because you goofed"?

https://bugs.gentoo.org/show_bug.cgi?id=488566
https://bugs.gentoo.org/show_bug.cgi?id=485054
https://bugs.gentoo.org/show_bug.cgi?id=519182#c13

And one of those was filed as a dup of 
https://bugs.gentoo.org/show_bug.cgi?id=477664

Which I don't quite see as being "a dup".
Comment 8 Paweł Stankowski 2014-10-16 23:13:42 UTC
I also think this bug should be re-opened as it affects many users and there are few duplicates of it already.

According to Gentoo Development Guide there are two functions that could be considered:

pkg_pretend - but this may only be used to check file's permissions and eventually raise an error
pkg_setup - this phase could be used to actually change owner to 'portage' user:
pkg_setup()
{
    local distfiles=( $(eval "echo \${$(echo AT_${ARCH/-/_})}") )
    # TODO: correct permission of files used only for some USE flags
    for dl in "${distfiles[@]}" ; do
        chown "${PORTAGE_USERNAME}:portage" "${DISTDIR}/${dl}" || chmod a+x "${DISTDIR}/${dl}" || die "Could not read \"${DISTDIR}/${dl}\" file, permissions must be corrected"
   done
}

I am not ebuild master yet, so sorry for any bugs in code above. I am changing group to 'portage' instead of ${PORTAGE_GRPNAME}, because I am not sure whether this variable is set in environment. That's only the idea that should probably be enhanced before applying.