Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-java/oracle-jdk-bin-1.7.0.3 fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 49
Location: Melbourne, Australia

PostPosted: Fri May 04, 2012 2:19 pm    Post subject: dev-java/oracle-jdk-bin-1.7.0.3 fails Reply with quote

Hi Everyone,

I am unable to emerge the oracle java jdk. I downloaded the package manually and put it in /usr/portage/distfiles but it still doesn't work. The output of /var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.3/temp/build.log is below;

Code:
!!! dev-java/oracle-jdk-bin-1.7.0.3 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

^[[31;01m * ^[[39;49;00mFetch failed for 'dev-java/oracle-jdk-bin-1.7.0.3', Log file:
^[[31;01m * ^[[39;49;00m '/var/tmp/portage/dev-java/oracle-jdk-bin-1.7.0.3/temp/build.log'
^[[32;01m * ^[[39;49;00mPackage:    dev-java/oracle-jdk-bin-1.7.0.3
^[[32;01m * ^[[39;49;00mRepository: gentoo
^[[32;01m * ^[[39;49;00mMaintainer: java@gentoo.org
^[[32;01m * ^[[39;49;00mUSE:        X alsa amd64 consolekit elibc_glibc kernel_linux multilib policykit source userland_GNU
^[[32;01m * ^[[39;49;00mFEATURES:   sandbox
 ^[[32;01m*^[[0m Please download jdk-7u3-linux-x64.tar.gz from:
 ^[[32;01m*^[[0m http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u3-download-1501626.html
 ^[[32;01m*^[[0m and move it to /usr/portage/distfiles

_________________
"If you are new to UNIX, you may be used to clicking something and seeing either an "OK" message, an error, nothing, or (all too often) a pretty blue screen with nifty high-tech letters' explaining exactly where the system crashed" - Michael Lucas
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 2995
Location: USA

PostPosted: Fri May 04, 2012 5:53 pm    Post subject: Reply with quote

"works for me" ...

You may have to make sure your system is emerge --sync fairly recently, then download the file from oracle and stick it into your portage distfiles directory.

Just to be sure, are you sure you stuck it into the correct directory?
_________________
Core-i7-2700K@4.1GHz/8GB RAM/180GB SSD/Intel HD3000 graphics
What the heck am I advocating?
Back to top
View user's profile Send private message
bawig1
n00b
n00b


Joined: 03 Aug 2011
Posts: 49
Location: Melbourne, Australia

PostPosted: Sat May 05, 2012 2:32 am    Post subject: Reply with quote

tried a sync and it didn't work. What is interesting is that I put jdk-7u3-linux-x64.tar.gz in /usr/portage/distfiles and when I run;

Code:
emerge dev-java/oracle-jdk-bin


and check /usr/portage/distfiles again for jdk-7u3-linux-x64.tar.gz it's not in the directory. That I cannot explain. :?
_________________
"If you are new to UNIX, you may be used to clicking something and seeing either an "OK" message, an error, nothing, or (all too often) a pretty blue screen with nifty high-tech letters' explaining exactly where the system crashed" - Michael Lucas
Back to top
View user's profile Send private message
houtworm
Apprentice
Apprentice


Joined: 08 Mar 2003
Posts: 281
Location: Den Haag, Netherlands

PostPosted: Sun May 06, 2012 8:33 am    Post subject: Reply with quote

i have the same problems, but with dev-java/oracle-jdk-bin-1.7.0.4
I have downloaded the files and put them into the distfiles directory,
Code:

distfiles # ls jdk*
jdk-6u31-linux-x64.bin  jdk-6u32-linux-x64-demos.tar.gz  jdk-7u3-linux-x64.tar.gz
jdk-6u32-linux-x64.bin  jdk-7u3-linux-x64-demos.tar.gz   jdk-7u4-linux-x64.tar.gz


..but portage still wants to fetch them from oracle.
This is in my emerge-fetch.log:
Code:
 * jdk-7u4-linux-x64.tar.gz size ;-) ...                                 [ ok ]

!!! dev-java/oracle-jdk-bin-1.7.0.4 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 * jdk-6u32-linux-x64.bin size ;-) ...                                   [ ok ]
 * jdk-6u32-linux-x64-demos.tar.gz size ;-) ...                          [ ok ]


using Portage 2.2.0_alpha101


--Kees
_________________
niemand is onbekwamer, dan een timmerman zonder hamer

Kees
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4117
Location: Houston, Republic of Texas

PostPosted: Sun May 06, 2012 8:58 am    Post subject: Reply with quote

i assume you all have already compared the checksum for the file you downloaded with the checksum listed in the manifest?
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
ianozia
n00b
n00b


Joined: 16 Dec 2010
Posts: 15

PostPosted: Sun May 06, 2012 9:41 am    Post subject: Reply with quote

I'm having this exact same problem; it always fails with this:
Code:
!!! dev-java/oracle-jdk-bin-1.7.0.4 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 * Fetch failed for 'dev-java/oracle-jdk-bin-1.7.0.4', Log file:
 *  '/dev/shm/portage/dev-java/oracle-jdk-bin-1.7.0.4/temp/build.log'
 * Please download jdk-7u4-linux-x64.tar.gz from:
 * http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u4-downloads-1591156.html
 * and move it to /usr/portage/distfiles

When I download jdk-7u4-linux-x64.tar.gz into my /usr/portage/distfiles folder, it always ends up being removed when I emerge dev-java/oracle-jdk-bin, then that error comes up.

Also, I tried downloading the file multiple times; how do you mean compare the checksum?
Back to top
View user's profile Send private message
houtworm
Apprentice
Apprentice


Joined: 08 Mar 2003
Posts: 281
Location: Den Haag, Netherlands

PostPosted: Sun May 06, 2012 9:46 am    Post subject: Reply with quote

The SHA1 checksums are ok. Found in the manifest
Which checksum is portage looking at?
Here the files are not removed from the distfiles directory.


--Kees
_________________
niemand is onbekwamer, dan een timmerman zonder hamer

Kees
Back to top
View user's profile Send private message
houtworm
Apprentice
Apprentice


Joined: 08 Mar 2003
Posts: 281
Location: Den Haag, Netherlands

PostPosted: Sun May 06, 2012 11:56 am    Post subject: Reply with quote

ianozia wrote:
Also, I tried downloading the file multiple times; how do you mean compare the checksum?


When the checksum is not ok, the file is renamed.

To calculate a sha1 checksum for example for jdk-7u3-linux-x64.tar.gz, have a look into /usr/portage/dev-java/oracle-jdk-bin/Manifest, there is a line:
Code:
DIST jdk-7u3-linux-x64.tar.gz 81056556 RMD160 4019c85f4c1b056c937ded7e2140f94668a165ea SHA1 163fdfddfb7a4d6df1181acffed17aa7aab6835b SHA256 28ff4bc3194617e0f6144013b1ca391b279804170e297faa6879963424846c2d


To calculate the sha1 checksum:
Code:
sha1sum /usr/portage/distfiles/jdk-7u3-linux-x64.tar.gz


and compare that with the SHA1 163fdfddfb7a4d6df1181acffed17aa7aab6835b from above. It muse be the same.
Otherwise something went wrong when downloading or saving the file.


--Kees
_________________
niemand is onbekwamer, dan een timmerman zonder hamer

Kees
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 2995
Location: USA

PostPosted: Sun May 06, 2012 1:37 pm    Post subject: Reply with quote

May also have to wait a few days to pick up a new portage, file a bug, or create your own ebuild/manifest that has the checksum of the file.

This issue annoys the Gentoo devs as much as it does the endusers, it's not their fault Oracle decides to change the checksums of their files and force a re-download of their click-throughs which then differs from the file initially used to build the manifest...

Might want to consider using icedtea (non-oracle build JDK/JRE which can be a bit slower) which has a bit more control in file versions...
_________________
Core-i7-2700K@4.1GHz/8GB RAM/180GB SSD/Intel HD3000 graphics
What the heck am I advocating?
Back to top
View user's profile Send private message
houtworm
Apprentice
Apprentice


Joined: 08 Mar 2003
Posts: 281
Location: Den Haag, Netherlands

PostPosted: Sun May 06, 2012 2:05 pm    Post subject: Reply with quote

As I posted earlier: The SHA1 checksums are ok. (in my case)
_________________
niemand is onbekwamer, dan een timmerman zonder hamer

Kees
Back to top
View user's profile Send private message
houtworm
Apprentice
Apprentice


Joined: 08 Mar 2003
Posts: 281
Location: Den Haag, Netherlands

PostPosted: Sun May 06, 2012 10:31 pm    Post subject: Reply with quote

Ok, problem solved.
I had to download jdk-6u32-linux-x64-demos.tar.gz for dev-java/sun-jdk-1.6.0.32
And .. jdk-7u4-linux-x64-demos.tar.gz for dev-java/oracle-jdk-bin-1.7.0.4
But I only looked at the 'demos' part :-) and thought "i already have it!" so it took a while to find out that jdk-7u4-linux-x64-demos.tar.gz was also needed.
8O

Ok everything is updated now :-)
I don't know why there are two java versions. I will look into that later.


--Kees
_________________
niemand is onbekwamer, dan een timmerman zonder hamer

Kees
Back to top
View user's profile Send private message
ianozia
n00b
n00b


Joined: 16 Dec 2010
Posts: 15

PostPosted: Wed May 09, 2012 12:37 pm    Post subject: Reply with quote

Okay, it still keeps deleting it. This is what I'm doing in the following:

1) I try to emerge, it fails
2) I show the contents of distfiles (jdk-7u4-linux-x64.tar.gz isn't there).
3) I wget the file from the webpage.
4) I run the sha1sum command to get a hash of "43eabe42bb8d6e8dfe33f3a815f265ac5d5bb586"
5) I 'cat' the Manifest so you can see what hash is listed there. It's different from the one in the Manifest.
6) I try to re-emerge, it of course fails, and it of course removes the files.
Here's the output from my console, for any interested:
Code:

ianozia-desktop distfiles # emerge dev-java/oracle-jdk-bin
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-java/oracle-jdk-bin-1.7.0.4

!!! dev-java/oracle-jdk-bin-1.7.0.4 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 * Fetch failed for 'dev-java/oracle-jdk-bin-1.7.0.4', Log file:
 *  '/dev/shm/portage/dev-java/oracle-jdk-bin-1.7.0.4/temp/build.log'
 * Please download jdk-7u4-linux-x64.tar.gz from:
 * http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u4-downloads-1591156.html
 * and move it to /usr/portage/distfiles

>>> Failed to emerge dev-java/oracle-jdk-bin-1.7.0.4, Log file:

>>>  '/dev/shm/portage/dev-java/oracle-jdk-bin-1.7.0.4/temp/build.log'

 * Messages for package dev-java/oracle-jdk-bin-1.7.0.4:

 * Fetch failed for 'dev-java/oracle-jdk-bin-1.7.0.4', Log file:
 *  '/dev/shm/portage/dev-java/oracle-jdk-bin-1.7.0.4/temp/build.log'
ianozia-desktop distfiles # ls jdk*
jdk-6u22-dlj-linux-amd64.bin  jdk-6u29-linux-x64.bin    jdk-7u2-linux-x64.tar.gz        jdk-7u4-linux-x64.tar.gz.1
jdk-6u24-dlj-linux-amd64.bin  jdk-6u31-linux-x64.bin    jdk-7u3-linux-x64.tar.gz        jdk-7u4-linux-x64.tar.gz._checksum_failure_.1dw9C_
jdk-6u26-dlj-linux-amd64.bin  jdk-7u1-linux-x64.tar.gz  jdk-7u4-linux-x64-demos.tar.gz  jdk-7u4-linux-x64.tar.gz._checksum_failure_.nkZiXT
ianozia-desktop distfiles # wget http://download.oracle.com/otn-pub/java/jdk/7u4-b20/jdk-7u4-linux-x64.tar.gz
--2012-05-09 07:32:14--  http://download.oracle.com/otn-pub/java/jdk/7u4-b20/jdk-7u4-linux-x64.tar.gz
Resolving download.oracle.com... 23.66.231.25, 23.66.231.42
Connecting to download.oracle.com|23.66.231.25|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u4-b20/jdk-7u4-linux-x64.tar.gz [following]
--2012-05-09 07:32:14--  https://edelivery.oracle.com/otn-pub/java/jdk/7u4-b20/jdk-7u4-linux-x64.tar.gz
Resolving edelivery.oracle.com... 23.13.178.174
Connecting to edelivery.oracle.com|23.13.178.174|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
--2012-05-09 07:32:14--  http://download.oracle.com/errors/download-fail-1505220.html
Connecting to download.oracle.com|23.66.231.25|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5307 (5.2K) [text/html]
Saving to: `jdk-7u4-linux-x64.tar.gz'

100%[=========================================================================================================================================>] 5,307       --.-K/s   in 0.001s 

2012-05-09 07:32:14 (4.19 MB/s) - `jdk-7u4-linux-x64.tar.gz' saved [5307/5307]

ianozia-desktop distfiles # ls jdk*
jdk-6u22-dlj-linux-amd64.bin  jdk-6u31-linux-x64.bin    jdk-7u4-linux-x64-demos.tar.gz                      jdk-7u4-linux-x64.tar.gz._checksum_failure_.nkZiXT
jdk-6u24-dlj-linux-amd64.bin  jdk-7u1-linux-x64.tar.gz  jdk-7u4-linux-x64.tar.gz
jdk-6u26-dlj-linux-amd64.bin  jdk-7u2-linux-x64.tar.gz  jdk-7u4-linux-x64.tar.gz.1
jdk-6u29-linux-x64.bin        jdk-7u3-linux-x64.tar.gz  jdk-7u4-linux-x64.tar.gz._checksum_failure_.1dw9C_
ianozia-desktop distfiles # sha1sum jdk-7u4-linux-x64.tar.gz
43eabe42bb8d6e8dfe33f3a815f265ac5d5bb586  jdk-7u4-linux-x64.tar.gz
ianozia-desktop distfiles # cat /usr/portage/dev-java/oracle-jdk-bin/Manifest
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

AUX fontconfig.Gentoo.properties 11196 RMD160 e11989b6be27297af68bdd7040439f4d3bd09916 SHA1 58a53f90a8d0409769d371f2e07b5bec27b02469 SHA256 9372ca516ff36609d846a9cb446dde3212e976c10166d8e231312d6238d1db0c
AUX oracle-jdk-bin-1.7.env 1000 RMD160 9067112ce8a31b450755ce6bbcdd1b24d5307e12 SHA1 66d5a3df445baded9d2b16fc7f24d8fcb1c340bd SHA256 a2422630fc1dd9851b580e42b065d44460d9ec818b203836687e67b2ab4f1c0f
DIST UnlimitedJCEPolicyJDK7.zip 7426 RMD160 a4a6a284579f43d2df3532d279e143d2f03c2c3f SHA1 7d3c9ee89536b82cd21c680088b1bced16017253 SHA256 7a8d790e7bd9c2f82a83baddfae765797a4a56ea603c9150c87b7cdb7800194d
DIST jdk-7u3-linux-i586-demos.tar.gz 13978883 RMD160 3ef1288f337196592f1a7759d559887197384b22 SHA1 82d6569369c972e4b2f5b9ecbc372a05317377ac SHA256 1a273f9da4f9a8f3cd44de5715cb2621e08688dadb9bd33449c26c7e1b438486
DIST jdk-7u3-linux-i586.tar.gz 82477042 RMD160 f951b31d576008773e803b14187d306b5dfc85f5 SHA1 15c97191c8fd58d74f36e84eb4f65371be573cf3 SHA256 798a3ea1d390358bdc01911d9aab7da1ff887157b56becc0e07e6f2c031f9ded
DIST jdk-7u3-linux-x64-demos.tar.gz 13981665 RMD160 f907fd60708af75a99a7da1e7ae1cbc52e0e4834 SHA1 7005ec0135c709a206afb2d7e3d52336a3db3a66 SHA256 127d92ffaaf4a006870ce7fab85f2f202fddc52222b75de805f7fc8bc0d3a6ea
DIST jdk-7u3-linux-x64.tar.gz 81056556 RMD160 4019c85f4c1b056c937ded7e2140f94668a165ea SHA1 163fdfddfb7a4d6df1181acffed17aa7aab6835b SHA256 28ff4bc3194617e0f6144013b1ca391b279804170e297faa6879963424846c2d
DIST jdk-7u3-solaris-i586-demos.tar.gz 14008396 RMD160 717d8c23f5dfd24772dbecd385e8cfdad21a76ab SHA1 4fcfa7c4ace8b99aa6141bcb3b6ac165cf63116d SHA256 ee0950b40880b20432721e240eb11614bf958d833c715d8bf479a21218c826db
DIST jdk-7u3-solaris-i586.tar.gz 85353101 RMD160 8ffa7c0875640793a0c714206ecf04f645bb5cc4 SHA1 3652dc7ccdc33d5e976cd72cf64cbfa3cc6ff70e SHA256 6fef2459d8dc9ebf91cb461fd9009b40806e00a06f6755af163af3ec0b06bb7e
DIST jdk-7u3-solaris-sparc-demos.tar.gz 14050356 RMD160 dace2fb1e8585d1c990acf4efd4bdbb91ef684bf SHA1 84c0a0b28b748d0bf71e3efe13a4611bda6438dc SHA256 45d34d6127c991928e342b90d38de9f6a552841f2e34a4c020a19039844d87e0
DIST jdk-7u3-solaris-sparc.tar.gz 90248080 RMD160 c6576a1ac596d4acdeb534bfd467c2f7969b75ed SHA1 a93d24eba0b559f1de298402765b5013c7d3234c SHA256 73367138ea28ee3ba21b2f52c0c61a7f4aa0eb9d12042bf2c5788cc7e6e4b9d2
DIST jdk-7u3-solaris-sparcv9-demos.tar.gz 199207 RMD160 9d5aceb3d9f7fa0135175e3521202fe8fe387126 SHA1 2b9384e53eb436bed083660c415d506e829548e3 SHA256 a0bb2483d65eae0faafb5ce61dc8ff5ec8e6fabb7c5a217c0c64822abed5b517
DIST jdk-7u3-solaris-sparcv9.tar.gz 12904146 RMD160 cf8460e1ae7d2e66a59ac757501aaa4ec4c5389f SHA1 b87af612e7dc095445a33b6692501a2210be8e43 SHA256 04811e46ece37dd99c874b9998cbc9251dd886c5ffe1536548b396b8c51f5dc9
DIST jdk-7u3-solaris-x64-demos.tar.gz 186051 RMD160 0003fcca02d1d6a8c2970941bea64ee9ab8f2d67 SHA1 8742a6cc3fc9a0989839da1a8b862730f9047361 SHA256 063cf73e7d5b366c8de33f8af7ad01895eabf9b146458cf497c0015f4bf9faa0
DIST jdk-7u3-solaris-x64.tar.gz 9702437 RMD160 81427666473e5491fd64d8e539e2e4c1edba6cb2 SHA1 e5903a8afa28b1b25f9bd71e1463da57fc24c163 SHA256 1021b777004c0acc9e7e7dc1006afb46379daa79d88285f95b2ff096fa527ea2
DIST jdk-7u4-linux-i586-demos.tar.gz 14041524 RMD160 9c897d50bab15dde6ffc38025ed087fcbdc4b138 SHA1 701487af50bb6014cd169b7a1e25ae9847c8f9da SHA256 36a712513fb7fef3df184ef7c082f9b29dac05181e3827312d088db80749dd9f
DIST jdk-7u4-linux-i586.tar.gz 82927766 RMD160 22d388e29ab8eadaa7439d59fbb51d65a927e1bc SHA1 29deda921046b10865a3a0888576a51f212735a1 SHA256 023c288d33e15a5fd8ebccec9f3b82df5a32208dca96b85c80e64fd01357de28
DIST jdk-7u4-linux-x64-demos.tar.gz 14027571 RMD160 ab1a5d19a086b419965f1e0c3ef89a6569590714 SHA1 b2e6800dbb4b517b1d1dd1c47628cb0115f763a8 SHA256 dca1b52f4a9728464b66ff12a7637a2db68574de8020f0c932f8df15550541e6
DIST jdk-7u4-linux-x64.tar.gz 81439019 RMD160 1a17350732a1d037acf28b375f99ea12cb8d1781 SHA1 46998c8d8baf011ba19fe6a3c19b529e7189b8c7 SHA256 92fbec82f2a33126b323877d012239ce516518c59073416116799d26fc70307c
DIST jdk-7u4-solaris-i586-demos.tar.gz 14087177 RMD160 03790371bb18ab461f2cb8c6593b40c330c6de6b SHA1 3cf6abf6a9dd757cdc1fc05e8ab761dedbdefd0b SHA256 d9c900d76143510ab6cd0940549ff2f5547efd91f050b43c6093e051d10f6d30
DIST jdk-7u4-solaris-i586.tar.gz 85996816 RMD160 055d01056c1b74e52d558a43ef5b71e5002122e5 SHA1 f2599cb94be4643ac850fcde2906489c1ad140ef SHA256 8c3599e0524c7625587134701f706366786273d933dea2ce3e73a22b057c1f99
DIST jdk-7u4-solaris-sparc-demos.tar.gz 14096804 RMD160 524e6732c2400e8be0b24cc06a2b53e4d1f728d8 SHA1 e033353469c798b1aef4624c99a35a72afd550dc SHA256 82555fc179fbeecee089ccd40fc187a2c123eef83c7581963154ee20af84e68f
DIST jdk-7u4-solaris-sparc.tar.gz 90938808 RMD160 8d498e80c39fdfd27e3d235f858df3f810afa011 SHA1 021bdf843403b687e2f0aa32185049c861f04b27 SHA256 e79cd1b14d7d2b3a5a12b5ec49abb56288d3ca6a4d346fa214971b72abd07905
DIST jdk-7u4-solaris-sparcv9-demos.tar.gz 199424 RMD160 41c25f25e4770b3bfd3578ffeb252217ad7de056 SHA1 97f1af8bb82c55a4e3ad2e36f2ae3639aeb8866d SHA256 8458e48971c6090bb9e0d2a7a74a861d66868443d6b0b9ec46559380bac37402
DIST jdk-7u4-solaris-sparcv9.tar.gz 13159165 RMD160 dc1104ab5873fe342741543bcf86d0df0e7d31f5 SHA1 a00f5821bf764a0137b42fbc6d3be788ede42708 SHA256 1d4323fcbe8a8b17eab5f014b91a8c3b08d99cfed331e2cf1d80600a0b87efe0
DIST jdk-7u4-solaris-x64-demos.tar.gz 186396 RMD160 8cc1cda0adaa6c484212941dfef6c98a8a3b22d1 SHA1 96732656d0ed2a8efcc1f752f1d687b6aa4248d0 SHA256 7913d1d1c256d842bc00cb987eb14140b77ba8376a6e84cc4c060e867550ffd0
DIST jdk-7u4-solaris-x64.tar.gz 10004792 RMD160 849cf258c9a1a348185bc340c38d373c9488d302 SHA1 dc21913581ed5bfd006602e5507a5d4c7ef0441e SHA256 1d7bfeff432850c6f2df9bf4d69213e471430c6eb3cc08e73e4d09d1485761a2
EBUILD oracle-jdk-bin-1.7.0.3.ebuild 10656 RMD160 526376b2a1145d2373f7bf2a0d9a694a1e66f351 SHA1 163cc4992e2e6adf813e041913a9a9eb58789a58 SHA256 c6acdcc09c8b23d974e790cbbc683990b0c726191f433cd3ae89d947bf9a11fc
EBUILD oracle-jdk-bin-1.7.0.4.ebuild 11307 RMD160 8e914c74d17f669751d9160cabd4e9e04214335f SHA1 5a045776d30523e6cdcb74dba3245291c7137a2a SHA256 f6437b37c80595918e889c6df5c7b49ccec837c0441b3102dc4a90f4459fc013
MISC ChangeLog 2977 RMD160 f30f0746b9ca3738aceedc7e775697f76861d724 SHA1 609cddcef23e552e6e9d4884677cde304dda85e7 SHA256 24024e8c5250473837f5a40261f6dee23ca7e727ea9cf036b7c77b1a4449e829
MISC metadata.xml 447 RMD160 7d545e68fa24d3775c670d42dc2fae9a125f64a0 SHA1 be889d874ad2ab4f6a4be68ed2a33909c03ed1a2 SHA256 7f8266bbb1afdd6dcd6361bca86fc8178ce623c042a3eac3835bcbf03b6b9232
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iQEcBAEBAgAGBQJPpX6rAAoJEIUJ+svaV163RXAIAJxxE841P1pRPTuz9EjuiGsX
96/ygYBq2aFjyMsDWqCNZONHDUjbMw46ZeM1ymqHY1qLov5PU7NxoT6Uk5lb/HyY
gleksasrZ0w6Sz7ZSNDtRKiY+Ad30eLMYbSAf77XgPCcqoFuJ5mhiMSkbhmdbrJI
IGIHAzZ0dO/QrKRXBrAp1qjWVNYyGiyZ/YGeNmYoChMD2NLo4T/8GiHf9LmwnP2k
eXlImElcT+8ceSRda/VpVLTnh0tGi3H+FMBxPY09FyaIMUAd7d+VXjnwXNWEyNtI
2l2OgaUYgnN6NAAXe3gAbr/MDMbb+goe1fH3mmgpD0Dq9pUJ8ccpPUfarvIxPB0=
=v4y+
-----END PGP SIGNATURE-----

ianozia-desktop distfiles # emerge dev-java/oracle-jdk-bin
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-java/oracle-jdk-bin-1.7.0.4
>>> Renaming distfile with size 5307 (smaller than PORTAGE_FETCH_RESUME_MIN_SIZE)
Refetching... File renamed to '/usr/portage/distfiles/jdk-7u4-linux-x64.tar.gz._checksum_failure_.1dw9C_'


!!! dev-java/oracle-jdk-bin-1.7.0.4 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 * Fetch failed for 'dev-java/oracle-jdk-bin-1.7.0.4', Log file:
 *  '/dev/shm/portage/dev-java/oracle-jdk-bin-1.7.0.4/temp/build.log'
 * Please download jdk-7u4-linux-x64.tar.gz from:
 * http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u4-downloads-1591156.html
 * and move it to /usr/portage/distfiles

>>> Failed to emerge dev-java/oracle-jdk-bin-1.7.0.4, Log file:

>>>  '/dev/shm/portage/dev-java/oracle-jdk-bin-1.7.0.4/temp/build.log'

 * Messages for package dev-java/oracle-jdk-bin-1.7.0.4:

 * Fetch failed for 'dev-java/oracle-jdk-bin-1.7.0.4', Log file:
 *  '/dev/shm/portage/dev-java/oracle-jdk-bin-1.7.0.4/temp/build.log'
ianozia-desktop distfiles # ls jdk*
jdk-6u22-dlj-linux-amd64.bin  jdk-6u29-linux-x64.bin    jdk-7u2-linux-x64.tar.gz        jdk-7u4-linux-x64.tar.gz.1
jdk-6u24-dlj-linux-amd64.bin  jdk-6u31-linux-x64.bin    jdk-7u3-linux-x64.tar.gz        jdk-7u4-linux-x64.tar.gz._checksum_failure_.1dw9C_
jdk-6u26-dlj-linux-amd64.bin  jdk-7u1-linux-x64.tar.gz  jdk-7u4-linux-x64-demos.tar.gz  jdk-7u4-linux-x64.tar.gz._checksum_failure_.nkZiXT
ianozia-desktop distfiles #


I'm not sure what to do about this.
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 2995
Location: USA

PostPosted: Wed May 09, 2012 2:19 pm    Post subject: Reply with quote

You are pulling up the webpage in Firefox and actually clicking through their EULA, right?

I don't think you can wget it, or at least you have to do some trickery to get the file through command line...

The file should be several megabytes:

-rw-r--r-- 1 portage portage 85292206 Feb 25 10:44 jdk-6u31-linux-i586.bin
_________________
Core-i7-2700K@4.1GHz/8GB RAM/180GB SSD/Intel HD3000 graphics
What the heck am I advocating?
Back to top
View user's profile Send private message
Icer
Guru
Guru


Joined: 26 Aug 2003
Posts: 395
Location: @home

PostPosted: Sat Jul 14, 2012 8:18 am    Post subject: Same checksums mismatch issue with sun-java Reply with quote

Just installed the dev-java/sun-jdk succesfully.

Here's how to do it and this should apply to this oracle java case too(using the sun-java binary jdk-6u33-linux-x64.bin as an example):
1. Download the jdk in question. Go to the sun jdk page. Accept the licence. Download the file.
2. Open the manifest file to see which kind of checksum we are going to need.
Code:
# gedit /usr/portage/dev-java/sun-jdk/Manifest &

3. Check the line which matches the jdk binary file name:
Code:
DIST jdk-6u33-linux-x64.bin 72029394 SHA256 215e38e49f7b1b8f0b66383598a51125dbaf04dbcc79de14732406df5e342fb9

We see that the required checksum is of type SHA256. Also note that the file size is expected to be 72029394.
4. Copy or move the downloaded jdk binary under /usr/portage/distfiles
5. Check the checksum (SHA 256)and the size of the downloaded file:
Code:
# ls -la jdk-6u33-linux-x64.bin
-rw-r--r-- 1 root portage 72029394 july 14 10:55 jdk-6u33-linux-x64.bin
# shasum -a 256 jdk-6u33-linux-x64.bin
215e38e49f7b1b8f0b66383598a51125dbaf04dbcc79de14732406df5e342fb9  jdk-6u33-linux-x64.bin

Now here we have a match so all is good. But this is because I changed the file size and the checksum in the manifest file.
If the checksum does not match you have to calculate the new checksum and alter the manifest file accordingly. Don't forget to change the file size too!
6. Now that the checksums match emerge the jdk:
Code:
# emerge -avD dev-java/sun-jdk

7. -> profit

That's all folks. Hopefully that helps someone else too. :)
_________________
Everything can be done. There's just a longer delivery time for impossible projects.
Back to top
View user's profile Send private message
Icer
Guru
Guru


Joined: 26 Aug 2003
Posts: 395
Location: @home

PostPosted: Sat Jul 14, 2012 8:23 am    Post subject: Reply with quote

BTW: wouldn't that kind of checksum checking be sort of easy to automate? So that the manifest would be uptodate. I mean is there any kind of notification about a changed binary or scan for changes or such?
_________________
Everything can be done. There's just a longer delivery time for impossible projects.
Back to top
View user's profile Send private message
Apheus
Apprentice
Apprentice


Joined: 12 Jul 2008
Posts: 182

PostPosted: Sat Jul 14, 2012 9:20 am    Post subject: Reply with quote

That would defeat the purpose of the checksums: If the website gets hacked, everyone would get the compromised version automatically. In the past, there were at least hacks of UnrealIRCd's and ProFTP's websites, with compromised source tarballs put in place. Fortunately, these happened several weeks after distributions packaged the software, and after the correct sources had been pushed to gentoo mirrors.

I would like to know what oracle thinks, why do they change the binary without version bump? :roll:

Oh, and: This automatic check would break the license of java, because automatic fetching is not allowed.
Back to top
View user's profile Send private message
mir3x
n00b
n00b


Joined: 02 Jun 2012
Posts: 62

PostPosted: Sat Jul 14, 2012 9:50 am    Post subject: Reply with quote

Maybe is there some unofficial overlay which doesn't respect Oracle and gets jdk automatically :D ? Anyone knows ? ( F*ckYouOracle would be right name for it :D)
_________________
Installation aborted to prevent system self-destruction
Back to top
View user's profile Send private message
chris972
Tux's lil' helper
Tux's lil' helper


Joined: 02 Mar 2012
Posts: 97

PostPosted: Tue Aug 14, 2012 9:35 pm    Post subject: Re: Same checksums mismatch issue with sun-java Reply with quote

Icer wrote:
Here's how to do it and this should apply to this oracle java case too(using the sun-java binary jdk-6u33-linux-x64.bin as an example):
1. Download the jdk in question. Go to the sun jdk page. Accept the licence. Download the file.

I'd like to find this version because it's required by emerge -DauN world, but I only get jdk-6u34-linux-x64.bin on the oracle site, not 6u33.
Where to get it plz ?
Back to top
View user's profile Send private message
vokiel
n00b
n00b


Joined: 01 Oct 2004
Posts: 27

PostPosted: Thu Aug 16, 2012 11:44 pm    Post subject: Re: Same checksums mismatch issue with sun-java Reply with quote

chris972 wrote:
Icer wrote:
Here's how to do it and this should apply to this oracle java case too(using the sun-java binary jdk-6u33-linux-x64.bin as an example):
1. Download the jdk in question. Go to the sun jdk page. Accept the licence. Download the file.

I'd like to find this version because it's required by emerge -DauN world, but I only get jdk-6u34-linux-x64.bin on the oracle site, not 6u33.
Where to get it plz ?


same here
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum