Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184901 - sun-jdk-1.6.0.01 emerge failes on amd64
Summary: sun-jdk-1.6.0.01 emerge failes on amd64
Status: RESOLVED DUPLICATE of bug 109481
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Low minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-10 21:35 UTC by Perolo Silantico
Modified: 2007-07-11 06:56 UTC (History)
0 users

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


Attachments
sun-jdk-1.6.0.01.ebuild.diff (sun-jdk-1.6.0.01.ebuild.diff.txt,574 bytes, patch)
2007-07-10 21:53 UTC, Perolo Silantico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Perolo Silantico 2007-07-10 21:35:27 UTC
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"
=================================================================
Comment 1 Perolo Silantico 2007-07-10 21:53:58 UTC
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.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-07-11 06:56:50 UTC
(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 ***