Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560198 - dev-java/oracle-jdk-bin-1.8.0.60-r2 incorrect download specified in manifest
Summary: dev-java/oracle-jdk-bin-1.8.0.60-r2 incorrect download specified in manifest
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-11 10:29 UTC by knirirr@gmail.com
Modified: 2015-09-14 07:31 UTC (History)
0 users

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


Attachments
Build log (build.log,2.37 KB, application/octet-stream)
2015-09-14 07:24 UTC, knirirr@gmail.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description knirirr@gmail.com 2015-09-11 10:29:05 UTC
The manifest for this ebuild specifies that one should download jdk-8u60-linux-x64.tar.gz. However, Oracle's website supplies jdk-8u60-linux-x64.gz.



Reproducible: Always

Steps to Reproduce:
1. Go to http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2. Accept license terms, click on jdk-8u60-linux-x64.tar.gz but receive jdk-8u60-linux-x64.gz
3. Copy above file to /usr/portage/distfiles, attempt emerge.
Actual Results:  
Fetch failed for 'dev-java/oracle-jdk-bin-1.8.0.60-r2'

 Download the following files:
   jdk-8u60-linux-x64.tar.gz


Expected Results:  
Successful installation of Oracle Java 1.8.

I've also tried editing the ebuild to specify the correct filename, but got the following:

The source directory '/var/tmp/portage/dev-java/oracle-jdk-bin-1.8.0.60-r2/work/jdk' doesn't exist
Comment 1 James Le Cuirot gentoo-dev 2015-09-11 22:45:57 UTC
There must be something wrong with your browser. I've tried it in Opera, Chrome, and Firefox, and it works fine here. Plus a plain .gz just wouldn't make sense. Which browser are you using?
Comment 2 knirirr@gmail.com 2015-09-12 14:47:42 UTC
(In reply to James Le Cuirot from comment #1)
> There must be something wrong with your browser. I've tried it in Opera,
> Chrome, and Firefox, and it works fine here. Plus a plain .gz just wouldn't
> make sense. Which browser are you using?

I'm using Chrome on OS X 10.10.
Comment 3 James Le Cuirot gentoo-dev 2015-09-12 14:53:04 UTC
Then it's a problem with OS X. Rename the file before putting it in distfiles.
Comment 4 knirirr@gmail.com 2015-09-12 14:55:56 UTC
(In reply to James Le Cuirot from comment #3)
> Then it's a problem with OS X. Rename the file before putting it in
> distfiles.

I have also tried renaming the file and rebuilding the digest; portage can't extract the file and installation fails.
Comment 5 James Le Cuirot gentoo-dev 2015-09-12 17:45:49 UTC
(In reply to knirirr@gmail.com from comment #4)
> I have also tried renaming the file and rebuilding the digest; portage can't
> extract the file and installation fails.

Why would you need to rebuild the digest? I have redownloaded the file from the site and the digest is still correct. Their own sha256sum matches ours too [1]. Your download must be corrupted. Or are you suggesting that Oracle is offering you a different file for some bizarre reason? For what it's worth, please attach a build log.

[1] https://www.oracle.com/webfolder/s/digest/8u60checksum.html
Comment 6 knirirr@gmail.com 2015-09-14 07:24:45 UTC
Created attachment 411876 [details]
Build log

Here's the build log after renaming the .gz file to tar.gz, as requested.
Comment 7 knirirr@gmail.com 2015-09-14 07:31:36 UTC
(In reply to James Le Cuirot from comment #5)
> Why would you need to rebuild the digest? I have redownloaded the file from
> the site and the digest is still correct. Their own sha256sum matches ours
> too [1]. Your download must be corrupted. Or are you suggesting that Oracle
> is offering you a different file for some bizarre reason? For what it's
> worth, please attach a build log.
> 
> [1] https://www.oracle.com/webfolder/s/digest/8u60checksum.html

All I am suggesting is that repeated attempts to download this file produced one which didn't match the one specified in the ebuild. 

Anyway, it turns out that you were correct; I was able to obtain another machine over the weekend and download the file successfully with that, so the problem is not with the ebuild.