Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31291 - sun-jdk installation breaks on grep/tail voodoo in ebuid
Summary: sun-jdk installation breaks on grep/tail voodoo in ebuid
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Adrian Almenar
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-16 09:42 UTC by Artem Baguinski
Modified: 2003-12-07 08:04 UTC (History)
0 users

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


Attachments
grep now searches for the right thing. (sun-jdk-1.4.2.02.patch,627 bytes, patch)
2003-11-26 10:35 UTC, Andreas Edlund
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Baguinski 2003-10-16 09:42:33 UTC
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...
Comment 1 Thomas Bullinger 2003-10-21 09:41:44 UTC
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".
Comment 2 Artem Baguinski 2003-10-22 04:26:32 UTC
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.
Comment 3 Adrian Almenar 2003-11-19 17:09:16 UTC
can you post a the output of 'env' as user root ?
Comment 4 Andreas Edlund 2003-11-26 10:35:51 UTC
Created attachment 21325 [details, diff]
grep now searches for the right thing.

This fixed the problem on my system.
Comment 5 Rolf Offermanns 2003-11-28 05:07:21 UTC
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. :)
Comment 6 Adrian Almenar 2003-12-07 08:04:14 UTC
Fixed. Soon will be commited to portage tree.