hi it did work for me before and as far as i see from the ebuilds the mysterious grep/tail voodoo didn't appear in the recent ebuild, but here's what happens now: ----------------------------------------------------------------------------- Calculating dependencies ...done! >>> emerge (1 of 1) dev-java/sun-jdk-1.4.2.01 to / >>> md5 src_uri ;-) j2sdk-1_4_2_01-linux-i586.bin java nsplugins >>> Unpacking source... grep: 6111: No such file or directory tail: +: invalid number of lines >>> Source unpacked. java nsplugins >>> Install sun-jdk-1.4.2.01 into /var/tmp/portage/sun-jdk-1.4.2.01/image/ category dev-java cp: cannot stat `bin': No such file or directory cp: cannot stat `include': No such file or directory cp: cannot stat `jre': No such file or directory cp: cannot stat `lib': No such file or directory cp: cannot stat `man': No such file or directory /usr/lib/portage/bin/dodoc: COPYRIGHT does not exist. /usr/lib/portage/bin/dodoc: README does not exist. /usr/lib/portage/bin/dodoc: LICENSE does not exist. /usr/lib/portage/bin/dodoc: THIRDPARTYLICENSEREADME.txt does not exist. cp: cannot stat `demo': No such file or directory cp: cannot stat `src.zip': No such file or directory ... the rest doesn't matter for it already failed decompressing. what exactly the grep should be looking for? i tried to emulate it manually and havent found what i thought you were trying to...
Similar issues with blackdown-jdk. What actually breaks the emege is that "tail +X" statements if using "tail (coreutils) 5.0.91" - the syntax should be "tail -n +X".
in sun-jdk ebuild the line is: tail -n +${startAt} ${DISTDIR}/${At} > install.sfx so it is different bug. the first problem occurs one line earlier: startAt=`grep -aonm 1 ${testExp} ${DISTDIR}/${At} | cut -d: -f1` which reports grep: 6111: No such file or directory and leaves startAt unset or empty.
can you post a the output of 'env' as user root ?
Created attachment 21325 [details, diff] grep now searches for the right thing. This fixed the problem on my system.
This fixed it for me, too. From "man echo": >> \NNN the character whose ASCII code is NNN (octal) << The code has to be three digits long, not four, as in the ebuild. BTW: A small comment like "grep for ELF header" would have been helpful. :)
Fixed. Soon will be commited to portage tree.