<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>89927</bug_id>
          
          <creation_ts>2005-04-21 07:23 0000</creation_ts>
          <short_desc>sun-jdk-1.4.2.08 emerge errors</short_desc>
          <delta_ts>2006-11-21 14:40:02 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2005.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>151149</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>jjk3@msstate.edu</reporter>
          <assigned_to>java@gentoo.org</assigned_to>
          <cc>gentoo.bug@no-substitute.com</cc>
    
    <cc>jakub@gentoo.org</cc>
    
    <cc>paul@thoughtcriminal.co.uk</cc>
    
    <cc>spamtrap@hope-st.ath.cx</cc>
    
    <cc>wschlich@gentoo.org</cc>
    
    <cc>zlin@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>jjk3@msstate.edu</who>
            <bug_when>2005-04-21 07:23:20 0000</bug_when>
            <thetext>I&apos;m getting the following when I try to emerge dev-java/sun-jdk-1.4.2.08:

# emerge -v sun-jdk
Calculating dependencies ...done!
&gt;&gt;&gt; emerge (1 of 1) dev-java/sun-jdk-1.4.2.08 to /
&gt;&gt;&gt; md5 files   ;-) ChangeLog
&gt;&gt;&gt; md5 files   ;-) metadata.xml
&gt;&gt;&gt; md5 files   ;-) sun-jdk-1.4.2.08.ebuild
&gt;&gt;&gt; md5 files   ;-) sun-jdk-1.4.2.07-r1.ebuild
&gt;&gt;&gt; md5 files   ;-) sun-jdk-1.3.1.13.ebuild
&gt;&gt;&gt; md5 files   ;-) sun-jdk-1.5.0.02-r1.ebuild
&gt;&gt;&gt; md5 files   ;-) sun-jdk-1.2.2.017.ebuild
&gt;&gt;&gt; md5 files   ;-) files/digest-sun-jdk-1.4.2.08
&gt;&gt;&gt; md5 files   ;-) files/sun-jdk-1.4.2.08
&gt;&gt;&gt; md5 files   ;-) files/digest-sun-jdk-1.3.1.13
&gt;&gt;&gt; md5 files   ;-) files/sun-jdk-1.3.1.13
&gt;&gt;&gt; md5 files   ;-) files/sun-jdk-1.4.2.07
&gt;&gt;&gt; md5 files   ;-) files/sun-jdk-1.5.0.02
&gt;&gt;&gt; md5 files   ;-) files/digest-sun-jdk-1.4.2.07-r1
&gt;&gt;&gt; md5 files   ;-) files/digest-sun-jdk-1.5.0.02-r1
&gt;&gt;&gt; md5 files   ;-) files/digest-sun-jdk-1.2.2.017
&gt;&gt;&gt; md5 files   ;-) files/sun-jdk-1.2.2.017
&gt;&gt;&gt; md5 src_uri ;-) j2sdk-1_4_2_08-linux-i586.bin
&gt;&gt;&gt; md5 src_uri ;-) jce_policy-1_4_2.zip
&gt;&gt;&gt; Unpacking source...
tail: +: invalid number of lines
&gt;&gt;&gt; Source unpacked.
&gt;&gt;&gt; Test phase [not enabled]: dev-java/sun-jdk-1.4.2.08

&gt;&gt;&gt; Install sun-jdk-1.4.2.08 into /var/tmp/portage/sun-jdk-1.4.2.08/image/ category dev-java
cp: cannot stat `bin&apos;: No such file or directory
cp: cannot stat `include&apos;: No such file or directory
cp: cannot stat `jre&apos;: No such file or directory
cp: cannot stat `lib&apos;: No such file or directory
cp: cannot stat `man&apos;: 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&apos;: No such file or directory
cp: cannot stat `src.zip&apos;: No such file or directory
/usr/lib/portage/bin/ebuild.sh: line 108: cd: /var/tmp/portage/sun-jdk-1.4.2.08/image//opt/sun-jdk-1.4.2.08/jre/lib/security: No such file or directory
Archive:  /usr/portage/distfiles/jce_policy-1_4_2.zip
replace jce/local_policy.jar? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
  inflating: jce/local_policy.jar
  inflating: jce/US_export_policy.jar
  inflating: jce/README.txt
  inflating: jce/COPYRIGHT.html
mv: cannot overwrite directory `unlimited-jce/jce&apos;
mv: cannot stat `/var/tmp/portage/sun-jdk-1.4.2.08/image//opt/sun-jdk-1.4.2.08/jre/lib/security/US_export_policy.jar&apos;: No such file or directory
mv: cannot stat `/var/tmp/portage/sun-jdk-1.4.2.08/image//opt/sun-jdk-1.4.2.08/jre/lib/security/local_policy.jar&apos;: No such file or directory

!!! ERROR: dev-java/sun-jdk-1.4.2.08 failed.
!!! Function install_mozilla_plugin, Line 85, Exitcode 0
!!! Cannot find mozilla plugin at /var/tmp/portage/sun-jdk-1.4.2.08/image///opt/sun-jdk-1.4.2.08/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
!!! If you need support, post the topmost build error, NOT this status message.

#

I&apos;ve tried downloading Sun&apos;s package again, but the same error occurred. The .bin file unpacks and installs successfully if I do it manually.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jjk3@msstate.edu</who>
            <bug_when>2005-04-23 09:52:18 0000</bug_when>
            <thetext>Created an attachment (id=57019)
workaround

This patch works around the issue for me.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>axxo@gentoo.org</who>
            <bug_when>2005-04-23 10:00:07 0000</bug_when>
            <thetext>emerge info?
version of grep?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jjk3@msstate.edu</who>
            <bug_when>2005-04-23 10:10:59 0000</bug_when>
            <thetext># emerge --info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Mobile Intel(R) Pentium(R) 4     CPU 3.06GHzGentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 08:00:13)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.9.4, 1.7.9-r1, 1.6.3, 1.4_p6, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2, 2.6.8.1-r1
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-Os -march=pentium4 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-Os -march=pentium4 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache distlocks sandbox sfperms strict userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot;http://128.213.5.34/gentoo/ http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.mirrored.ca/&quot;
LANG=&quot;en_US.UTF-8&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 S3TC X a52 aac acpi alsa apache2 avi bash-completion berkdb bitmap-fonts bonobo bzip2 caps cdinstall cdparanoia cdr cjk crypt cscope cups curl divx4linux dts dvd dvdr ecc eds emboss encode esd evo extras f77 faad fam fame ffmpeg fftw flac foomaticdb fortran freetype gcj gdbm geoip gif gimpprint glut gnome gnutls gphoto2 gstreamer gtk gtk2 gtkhtml guile hal howl imagemagick imlib ipv6 ithreads java jce jikes jpeg junit lcms ldap libg++ libwww live lzo mad mailwrapper matroska mikmod mjpeg mmx mmx2 mng motif mozdevelop mozilla moznomail mozsvg mp3 mpeg mysql ncurses netcdf network nls nntp noplugin nptl nvidia oav objc offensive ogg oggvorbis opengl pam pcmcia pda pdflib perl png pnp ppds python quicktime quotes readline real rogue rtc ruby samba sandbox sdl slang sndfile softmmu speex spell sse sse2 ssl svg symlink tcltk tcpd tetex theora threads tiff truetype truetype-fonts trusted type1-fonts unicode userlocales utf8 videos vim-with-x vorbis wmf wxwindows xanim xml xml2 xmms xprint xscreensaver xv xvid xvmc zlib&quot;
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS

# grep --version
grep (GNU grep) 2.5.1

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# emerge -pv grep

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-apps/grep-2.5.1-r6  -build -debug +nls -pcre -static (-uclibc) 667 kB

Total size of downloads: 667 kB
#</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>luckyduck@gentoo.org</who>
            <bug_when>2005-05-13 05:53:44 0000</bug_when>
            <thetext>tail: +: invalid number of lines

seems to me that your distfile isn&apos;t the one you need. you&apos;ve maybe regenerated the digest using the broken distfile. (just a wild guess). it&apos;s not a problem with the ebuild , i&apos;ve tested this one 4 different independent x86 system (not chroots) , also on hardened x86 and had no problems with it. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-11-04 00:11:29 0000</bug_when>
            <thetext>*** Bug 153990 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zlin@gentoo.org</who>
            <bug_when>2006-11-04 11:12:17 0000</bug_when>
            <thetext>Created an attachment (id=101235)
use $&apos;\nnn&apos; instead of echo -e &quot;\nnn&quot;

The patch from comment #1 didn&apos;t work for me. This one does.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-11-04 14:55:49 0000</bug_when>
            <thetext>*** Bug 154073 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-11-04 14:56:11 0000</bug_when>
            <thetext>Someone might want to revisit this....</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zlin@gentoo.org</who>
            <bug_when>2006-11-04 15:00:13 0000</bug_when>
            <thetext>Created an attachment (id=101247)
use $&apos;\nnn&apos; instead of echo -e &quot;\nnn&quot; - non-reversed

Shit! My previous patch was reversed. This one isn&apos;t..</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spamtrap@hope-st.ath.cx</who>
            <bug_when>2006-11-04 18:17:10 0000</bug_when>
            <thetext>Can confirm that the patch in Comment #9 fixed the issue for me.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mlohse@gmx.net</who>
            <bug_when>2006-11-08 06:00:57 0000</bug_when>
            <thetext>patch #9 works for me, too.
note: if you have &quot;-nsplugin&quot; in your useflags you can see some &quot;file not found&quot;-errors flashing over the screen but portage thinks everything went fine. The previous version gets deleted and you end up with an unusable generation-1-vm.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo.bug@no-substitute.com</who>
            <bug_when>2006-11-11 11:35:56 0000</bug_when>
            <thetext>patch #9 works for 1.4.2.12-r2 too</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-11-11 11:41:40 0000</bug_when>
            <thetext>*** Bug 153717 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wschlich@gentoo.org</who>
            <bug_when>2006-11-21 12:22:05 0000</bug_when>
            <thetext>can someone please fix =sun-jdk-1.4.2.12-r2?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nichoj@gentoo.org</who>
            <bug_when>2006-11-21 13:53:49 0000</bug_when>
            <thetext>I&apos;ve applied the patch suggested, although, I was never able to reproduce the problem myself.

Does anyone know what the difference between the expressions is, and why this might effect only some people?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zlin@gentoo.org</who>
            <bug_when>2006-11-21 14:40:02 0000</bug_when>
            <thetext>(In reply to comment #15)
&gt; Does anyone know what the difference between the expressions is, and why this
&gt; might effect only some people?

# bash --version
GNU bash, version 3.1.17(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
# man echo | grep octal
       \0NNN  the character whose ASCII code is NNN (octal)
# echo -e &apos;\177\105\114\106\001\001\001&apos;
ELF
# echo -e &apos;\0177\0105\0114\0106\0001\0001\0001&apos;
ELF

# bash --version
GNU bash, version 3.2.5(1)-release (i686-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
# man echo | grep octal
       \0NNN  the character whose ASCII code is NNN (octal)
# echo -e &apos;\177\105\114\106\001\001\001&apos;
\177\105\114\106
# echo -e &apos;\0177\0105\0114\0106\0001\0001\0001&apos;
ELF</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>57019</attachid>
            <date>2005-04-23 09:52 0000</date>
            <desc>workaround</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS9kZXYtamF2YS9zdW4tamRrL3N1bi1qZGstMS40LjIuMDguZWJ1aWxk
CTIwMDUtMDQtMjIgMDk6MDU6MjcuMDAwMDAwMDAwIC0wNTAwCisrKyBzdW4tamRrLTEuNC4yLjA4
LmVidWlsZAkyMDA1LTA0LTIzIDExOjEyOjUzLjAwMDAwMDAwMCAtMDUwMApAQCAtNjcsNyArNjcs
OCBAQAogCWZpCiAJI1NlYXJjaCBmb3IgdGhlIEVMRiBIZWFkZXIKIAl0ZXN0RXhwPWBlY2hvIC1l
ICJcMTc3XDEwNVwxMTRcMTA2XDAwMVwwMDFcMDAxImAKLQlzdGFydEF0PWBncmVwIC1hb25tIDEg
JHt0ZXN0RXhwfSAgJHtESVNURElSfS8ke0F0fSB8IGN1dCAtZDogLWYxYAorCWdyZXAgLWFvbm0g
MSAke3Rlc3RFeHB9ICR7RElTVERJUn0vJHtBdH0gPiAvdG1wL2phdmF0bXAKKwlzdGFydEF0PWBj
dXQgLWQ6IC1mMSAvdG1wL2phdmF0bXBgCiAJdGFpbCAtbiArJHtzdGFydEF0fSAke0RJU1RESVJ9
LyR7QXR9ID4gaW5zdGFsbC5zZngKIAljaG1vZCAreCBpbnN0YWxsLnNmeAogCS4vaW5zdGFsbC5z
ZnggfHwgZGllCg==
</data>        

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>101235</attachid>
            <date>2006-11-04 11:12 0000</date>
            <desc>use $&apos;\nnn&apos; instead of echo -e &quot;\nnn&quot;</desc>
            <filename>sun-jdk-1.4.2.12-r2.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHN1bi1qZGstMS40LjIuMTItcjIuZWJ1aWxkCTIwMDYtMTEtMDQgMjA6MDU6NDMuMDAwMDAw
MDAwICswMTAwCisrKyAvcm9vdC9zdW4tamRrLTEuNC4yLjEyLXIyLmVidWlsZAkyMDA2LTExLTA0
IDIwOjA1OjE3LjAwMDAwMDAwMCArMDEwMApAQCAtODEsNyArODEsNyBAQAogCQlmaQogCWZpCiAJ
I1NlYXJjaCBmb3IgdGhlIEVMRiBIZWFkZXIKLQl0ZXN0RXhwPSQnXDE3N1wxMDVcMTE0XDEwNlww
MDFcMDAxXDAwMScKKwl0ZXN0RXhwPWBlY2hvIC1lICJcMTc3XDEwNVwxMTRcMTA2XDAwMVwwMDFc
MDAxImAKIAlzdGFydEF0PWBncmVwIC1hb25tIDEgJHt0ZXN0RXhwfSAgJHtESVNURElSfS8ke0F0
fSB8IGN1dCAtZDogLWYxYAogCXRhaWwgLW4gKyR7c3RhcnRBdH0gJHtESVNURElSfS8ke0F0fSA+
IGluc3RhbGwuc2Z4CiAJY2htb2QgK3ggaW5zdGFsbC5zZngK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>101247</attachid>
            <date>2006-11-04 15:00 0000</date>
            <desc>use $&apos;\nnn&apos; instead of echo -e &quot;\nnn&quot; - non-reversed</desc>
            <filename>sun-jdk-1.4.2.12-r2.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC9yb290L3N1bi1qZGstMS40LjIuMTItcjIuZWJ1aWxkCTIwMDYtMTEtMDQgMjA6MDU6MTcu
MDAwMDAwMDAwICswMTAwCisrKyBzdW4tamRrLTEuNC4yLjEyLXIyLmVidWlsZAkyMDA2LTExLTA0
IDIwOjA1OjQzLjAwMDAwMDAwMCArMDEwMApAQCAtODEsNyArODEsNyBAQAogCQlmaQogCWZpCiAJ
I1NlYXJjaCBmb3IgdGhlIEVMRiBIZWFkZXIKLQl0ZXN0RXhwPWBlY2hvIC1lICJcMTc3XDEwNVwx
MTRcMTA2XDAwMVwwMDFcMDAxImAKKwl0ZXN0RXhwPSQnXDE3N1wxMDVcMTE0XDEwNlwwMDFcMDAx
XDAwMScKIAlzdGFydEF0PWBncmVwIC1hb25tIDEgJHt0ZXN0RXhwfSAgJHtESVNURElSfS8ke0F0
fSB8IGN1dCAtZDogLWYxYAogCXRhaWwgLW4gKyR7c3RhcnRBdH0gJHtESVNURElSfS8ke0F0fSA+
IGluc3RhbGwuc2Z4CiAJY2htb2QgK3ggaW5zdGFsbC5zZngK
</data>        

          </attachment>
    </bug>

</bugzilla>