emerging =dev-java/sun-jdk-1.6.0.01 failes on amd64 architecture. Reproducible: Always Steps to reproduce: 1) emerge =dev-java/sun-jdk-1.6.0.01 on amd64 Description ----------- somehow use flag x86 is set on (my?) amd64 machine. Thus SRC_URI contains TWO source files. This has two implications: 1) the file "jdk-6u1-dlj-linux-i586.sh" is fetched too 2) unpacking failes beacause the command in line 52 in ebuild file improperly expands to: sh ${DISTDIR}/jdk-6u1-dlj-linux-i586.sh ${DISTDIR}/jdk-6u1-dlj-linux-amd64.sh --accept-license --unpack || die "Failed to unpack" To resolve this issue, SRC_URI has to be changed to turn of x86 version on amd64. Error message with emerge: ================================================================= >>> Unpacking source... /usr/portage/dev-java/sun-jdk/sun-jdk-1.6.0.01.ebuild: line 52: [: /var/tmp/portage/dev-java/sun-jdk-1.6.0.01/distdir/jdk-6u1-dlj-linux-i586.sh: binary operator expected usage: jdk-6u1-dlj-linux-i586.sh [--accept-license] [--unpack] --accept-license signifies you accept the license terms for installing this software. --unpack unpack JAR files compressed with Pack200 * * ERROR: dev-java/sun-jdk-1.6.0.01 failed. * Call stack: * ebuild.sh, line 1647: Called dyn_unpack * ebuild.sh, line 768: Called qa_call 'src_unpack' * ebuild.sh, line 44: Called src_unpack * sun-jdk-1.6.0.01.ebuild, line 56: Called die ================================================================= ============ ebuild info ======================= Portage 2.1.3_rc7 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.5-r4, 2.6.21-hardened-r1geber2 x86_64) ================================================================= System uname: 2.6.21-hardened-r1 x86_64 Intel(R) Xeon(R) CPU E5320 @ 1.86GHz Gentoo Base System release 1.12.10 Timestamp of tree: Tue, 10 Jul 2007 10:20:02 +0000 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -mfpmath=sse -msse -msse2 -mmmx -O2 -pipe -fomit-frame-pointer -fforce-addr -fmerge-constants -finline-functions -funroll-loops -frerun-loop-opt" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=nocona -mfpmath=sse -msse -msse2 -mmmx -O2 -pipe -fomit-frame-pointer -fforce-addr -fmerge-constants -finline-functions -funroll-loops -frerun-loop-opt" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks metadata-transfer notitles sandbox sfperms strict unmerge-orphans userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j9" PKGDIR="/usr/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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="aalib acl amd64 apache2 bash-completion berkdb bzlib caps cdb crypt dba encode exif gd gdbm geoip gif hardened inifile innodb ipv6 ithreads java jpeg junit justify libg++ libwww maildir mhash midi mmap multilib mysql ncurses nls nptl nptlonly pam pcntl pcre perl png posix readline sockets sse ssl tcpd tiff truetype urandom x86 xfs xml xml2 xorg zlib" 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="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= PATCH: ================================================================= --- /usr/portage/dev-java/sun-jdk/sun-jdk-1.6.0.01.ebuild.orig 2007-07-10 23:03:47.000000000 +0200 +++ /usr/portage/dev-java/sun-jdk/sun-jdk-1.6.0.01.ebuild 2007-07-10 23:26:21.000000000 +0200 @@ -13,7 +13,7 @@ DESCRIPTION="Sun's J2SE Development Kit, version ${PV}" HOMEPAGE="http://java.sun.com/javase/6/" -SRC_URI="x86? ( http://download.java.net/dlj/binaries/${X86_AT} ) +SRC_URI="x86? (!amd64? ( http://download.java.net/dlj/binaries/${X86_AT}) ) amd64? ( http://download.java.net/dlj/binaries/${AMD64_AT} )" SLOT="1.6" LICENSE="dlj-1.1" =================================================================
Created attachment 124482 [details, diff] sun-jdk-1.6.0.01.ebuild.diff the patch to correct the ebuild file and change the SRC_URI definition. checked on x86 and amd64.
(In reply to comment #0) > somehow use flag x86 is set on (my?) amd64 machine. So don't do it. *** This bug has been marked as a duplicate of bug 109481 ***