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

Bug 189791

Summary: dev-java/ibm-jre-bin: Failures during fetch
Product: Gentoo Linux Reporter: Alexander Skwar <askwar>
Component: [OLD] JavaAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 181949    
Attachments: send 'Permission denied' errors to /dev/null
prevent '!!! can't process invalid log file: merge.INFO' messages

Description Alexander Skwar 2007-08-22 07:22:09 UTC
Trying to emerge/fetch dev-java/ibm-jre-bin-1.5.0.5a. Fails:

>>> Emerging (1 of 1) dev-java/ibm-jre-bin-1.5.0.5a to /
Adjusting permissions recursively: '/Gentoo/Portage/distfiles/'
Adjusting permissions recursively: '/Gentoo/Portage/distfiles/.locks'

!!! dev-java/ibm-jre-bin-1.5.0.5a has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

/usr/lib/portage/bin/ebuild.sh: line 1196: /Gentoo/Portage/build/portage/dev-java/ibm-jre-bin-1.5.0.5a/temp/eclass-debug.log: Permission denied
/usr/lib/portage/bin/ebuild.sh: line 1196: /Gentoo/Portage/build/portage/dev-java/ibm-jre-bin-1.5.0.5a/temp/eclass-debug.log: Permission denied
[...]

I'm doing the "emerge -f" step as a normal user.

--($:~)-- ls -la /usr/lib/portage/bin/ebuild.sh /Gentoo/Portage/build/portage/dev-java/ibm-jre-bin-1.5.0.5a/temp/eclass-debug.l
og
-rw-rw-r-- 1 root root  1032 22. Aug 09:04 /Gentoo/Portage/build/portage/dev-java/ibm-jre-bin-1.5.0.5a/temp/eclass-debug.log
-rwxr-xr-x 1 root root 49044 16. Aug 14:13 /usr/lib/portage/bin/ebuild.sh

This user doesn't have execute permissions on eclass-debug.log.

When I copy ibm-java2-jre-5.0-5.1-linux-i386.tgz to the distfiles directory, the error message goes away.

I then ran "sudo emerge -DuvatN world", and it also failed:

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild Manifests...
>>> starting parallel fetching

>>> Emerging (1 of 7) dev-java/ibm-jre-bin-1.5.0.5a to /
Adjusting permissions recursively: '/Gentoo/Portage/distfiles/'
Adjusting permissions recursively: '/Gentoo/Portage/distfiles/.locks'

!!! dev-java/ibm-jre-bin-1.5.0.5a has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 * Due to license restrictions, we cannot redistribute or fetch the distfiles
 * Please visit: http://www.ibm.com/developerworks/java/jdk/linux/download.html
 * Under J2SE 5.0, download SR5 for your arch:
 * ibm-java2-jre-5.0-5.1-linux-i386.tgz
 * You can use direct link to your arch download page:
 * https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=sdk5&S_PKG=intel5sr5a&S_TACT=105AGX05&S_CMP=JDK
 * Place the file(s) in: /Gentoo/Portage/distfiles
 * Then restart emerge: 'emerge --resume'
 * Note: if SR5 is not available at http://www.ibm.com/developerworks/java/jdk/linux/download.html
 * it may have been moved to http://www.ibm.com/developerworks/java/jdk/linux/older_download.html. Lately that page
 * isn't updated, but the files should still available through the
 * direct link to arch download page. If it doesn't work, file a bug.
 * Fetch failed for 'dev-java/ibm-jre-bin-1.5.0.5a'
!!! can't process invalid log file: merge.INFO

 * Messages for package dev-java/ibm-jre-bin-1.5.0.5a:

 * Fetch failed for 'dev-java/ibm-jre-bin-1.5.0.5a'

Notice the line "!!! can't process invalid log file: merge.INFO". I got this line, while there was NO ibm-java2-jre-5.0-5.1-linux-i386.tgz file in distfiles.

--($:~)-- emerge --info
Portage 2.1.3.6 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r2.r08.mit-ide-mod i686)
=================================================================
System uname: 2.6.22-gentoo-r2.r08.mit-ide-mod i686 Genuine Intel(R) CPU T2400 @ 1.83GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Wed, 22 Aug 2007 06:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /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"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/Gentoo/Portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="        http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/    http://gentoo.supp.name/        http://ftp.heanet.ie/pub/gentoo/       http://ftp.gentoo.or.kr/        http://ftp.uni-erlangen.de/pub/mirrors/gentoo/  http://distfiles.gentoo.org/ "
LANG="de_CH.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/Gentoo/Portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/Gentoo/Portage/build"
PORTDIR="/Gentoo/Portage/tree"
PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay /Gentoo/Portage/local-tree/misc"
SYNC="rsync://winds03:10873/gentoo-portage"
USE="X acpi alsa berkdb bitmap-fonts bluetooth cairo cdr cli cracklib crypt cups dbus dmi doc dri dvd dvdr dvdread encode fam firefox fortran gdbm gif gnome gnutls gpm gstreamer gtk hal iconv isdnlog jpeg kde kdeenablefinal kdehiddenvisibility ldap libnotify mad midi mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcmcia pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis wifi win32codecs x86 xine xinerama xml xorg xv zlib" ALSA_CARDS="dummy hda-intel intel8x0 intel8x0m usb-audio usb-usx3y" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="dummy none nv nvidia vga"
Unset:  CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2007-08-23 06:07:13 UTC
It looks like you just have some junk in ${PORTAGE_TMPDIR} that's leading to some harmless 'Permission denied' when you try to fetch as a normal user. It should clear up if you just clean out ${PORTAGE_TMPDIR}. The ibm-jre-bin ebuild seems like it's behaving properly.
Comment 2 Zac Medico gentoo-dev 2007-08-23 06:58:03 UTC
Created attachment 128924 [details, diff]
send 'Permission denied' errors to /dev/null
Comment 3 Alexander Skwar 2007-08-23 07:02:13 UTC
(In reply to comment #1)
> It looks like you just have some junk in ${PORTAGE_TMPDIR}

No, I did not.


> that's leading to
> some harmless 'Permission denied' when you try to fetch as a normal user. It
> should clear up if you just clean out ${PORTAGE_TMPDIR}.

Well, whatever it was, this morning it does not show up anymore.

Comment 4 Alexander Skwar 2007-08-23 07:15:52 UTC
Hm, no, it's still there.

I tried to downgrade to dev-java/ibm-jre-bin-1.4.2.9, and I got:

--($:~)-- sudo emerge -vat =ibm-jre-bin-1.4.2.9

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  NSF  ] dev-java/ibm-jre-bin-1.4.2.9  USE="X alsa nsplugin" 39,169 kB 

Total: 1 package (1 in new slot), Size of downloads: 39,169 kB
Fetch Restriction: 1 package (1 unsatisfied)

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) dev-java/ibm-jre-bin-1.4.2.9 to /
Adjusting permissions recursively: '/Gentoo/Portage/distfiles/'
Adjusting permissions recursively: '/Gentoo/Portage/distfiles/.locks'

!!! dev-java/ibm-jre-bin-1.4.2.9 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 * Due to license restrictions, we cannot redistribute or fetch the distfiles
 * Please visit: http://www.ibm.com/developerworks/java/jdk/linux/download.html
 * Under Java 1.4.2, download SR9 for your arch:
 * IBMJava2-JRE-1.4.2-9.0.tgz
 * Direct link:
 * https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=lxdk&S_PKG=ia32142sr9&cp=UTF-8&S_TACT=105AGX05&S_CMP=JDK
 * Place the file(s) in: /Gentoo/Portage/distfiles
 * Then restart emerge: 'emerge --resume'
 * Note: if SR9 is not available at http://www.ibm.com/developerworks/java/jdk/linux/download.html
 * it may have been moved to http://www.ibm.com/developerworks/java/jdk/linux/older_download.html. Lately that page
 * isn't updated, but the files should still available through the
 * direct link. If it doesn't work, file a bug.
 * Fetch failed for 'dev-java/ibm-jre-bin-1.4.2.9'
!!! can't process invalid log file: merge.INFO

 * Messages for package dev-java/ibm-jre-bin-1.4.2.9:

 * Fetch failed for 'dev-java/ibm-jre-bin-1.4.2.9'

Notice that there's again this line about "merge.INFO". And no, there's no junk in the tmpdir :) As you can see in the emerge --info, PORTAGE_TMPDIR=/Gentoo/Portage/build

--($:~)-- ls -la /Gentoo/Portage/build
insgesamt 0
drwxr-xr-x 4 root    root     96 22. Aug 10:11 .
drwxr-xr-x 7 root    root    208 22. Jun 09:56 ..
drwxrwxr-x 2 portage portage  48 22. Aug 09:48 binpkgs
drwxrwxr-x 8 portage portage 368 23. Aug 09:04 portage


Comment 5 Zac Medico gentoo-dev 2007-08-23 09:14:51 UTC
Created attachment 128933 [details, diff]
prevent '!!! can't process invalid log file: merge.INFO' messages
Comment 6 Zac Medico gentoo-dev 2007-08-24 18:48:34 UTC
This has been released in 2.1.3.7.