Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122220 - dev-java/ibm-jdk-bin-1.4.2 has invalid digest
Summary: dev-java/ibm-jdk-bin-1.4.2 has invalid digest
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-09 02:01 UTC by Antonio
Modified: 2006-04-05 15:54 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio 2006-02-09 02:01:11 UTC
root # emerge -av ibm-jdk-bin

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

Calculating dependencies ...done!
[ebuild  N F  ] dev-java/ibm-jdk-bin-1.4.2.03  +X -doc -javacomm +nsplugin 0 kB 

Total size of downloads: 0 kB

Do you want me to merge these packages? [Yes/No] y
>>> emerge (1 of 1) dev-java/ibm-jdk-bin-1.4.2.03 to /
>>> md5 files   ;-) ibm-jdk-bin-1.5.0.ebuild
>>> md5 files   ;-) ibm-jdk-bin-1.4.2.03.ebuild
>>> md5 files   ;-) ibm-jdk-bin-1.4.2.04.ebuild
>>> md5 files   ;-) files/cpuinfo
>>> md5 files   ;-) files/ibm-jdk-bin-1.4.2.03
>>> md5 files   ;-) files/ibm-jdk-bin-1.4.2.04
>>> md5 files   ;-) files/digest-ibm-jdk-bin-1.4.2.03
>>> md5 files   ;-) files/digest-ibm-jdk-bin-1.4.2.04
>>> md5 files   ;-) files/ibm-jdk-bin-1.4.2
>>> md5 files   ;-) files/ibm-jdk-bin-1.5.0
>>> md5 files   ;-) files/digest-ibm-jdk-bin-1.5.0

!!! Digest verification Failed:
!!!    /usr/portage/distfiles/IBMJava2-SDK-142-SR3.tgz
!!! Reason: Filesize does not match recorded size

root # ls -l /usr/portage/distfiles/IBMJava2-SDK-142-SR3.tgz 
-rw-r--r--  1 root portage 58637378 Feb  9 11:36 /usr/portage/distfiles/IBMJava2-SDK-142-SR3.tgz
Comment 1 nixnut (RETIRED) gentoo-dev 2006-02-13 12:27:14 UTC
ibm-java2-sdk-50-linux-ppc.tgz has changed as well

emerge =dev-java/ibm-jdk-bin-1.5.0                     
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/ibm-jdk-bin-1.5.0 to /
>>> checksums files   ;-) ibm-jdk-bin-1.5.0.ebuild
>>> checksums files   ;-) ibm-jdk-bin-1.4.2.03.ebuild
>>> checksums files   ;-) ibm-jdk-bin-1.4.2.04.ebuild
>>> checksums files   ;-) files/cpuinfo
>>> checksums files   ;-) files/ibm-jdk-bin-1.4.2.03
>>> checksums files   ;-) files/ibm-jdk-bin-1.4.2.04
>>> checksums files   ;-) files/digest-ibm-jdk-bin-1.4.2.03
>>> checksums files   ;-) files/digest-ibm-jdk-bin-1.4.2.04
>>> checksums files   ;-) files/ibm-jdk-bin-1.4.2
>>> checksums files   ;-) files/ibm-jdk-bin-1.5.0
>>> checksums files   ;-) files/digest-ibm-jdk-bin-1.5.0

!!! Digest verification Failed:
!!!    /var/tmp/portage/distfiles/ibm-java2-sdk-50-linux-ppc.tgz
!!! Reason: Filesize does not match recorded size
!!! Got:      68870876
!!! Expected: 65733869
Comment 2 Antonio 2006-02-13 23:47:28 UTC
I just have tested dev-java/ibm-jdk-bin-1.4.2.04 (masked ~x86). It works well in general. But if I Launch eclipse-sdk-3.1.1 and try to execute program or run ant build script JVM fails.
Comment 3 Sandro Bonazzola (RETIRED) gentoo-dev 2006-02-14 10:39:43 UTC
(In reply to comment #2)
> I just have tested dev-java/ibm-jdk-bin-1.4.2.04 (masked ~x86). It works well
> in general. But if I Launch eclipse-sdk-3.1.1 and try to execute program or run
> ant build script JVM fails.
> 

This is OT on this bug. Please search bugzilla for an already submitted bug regarding incompatibilities between eclipse and ibm-jdk-bin. If it doesn't exist feel free to submit a new bug with the description ot the steps required to reproduce the bug and your emerge --info.
Comment 4 Dirk Silkenbäumer 2006-02-15 12:43:39 UTC
SR4 is also not working:

macminix ~ # emerge -u ibm-jdk-bin 
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/ibm-jdk-bin-1.4.2.04 to /
>>> md5 files   ;-) ibm-jdk-bin-1.5.0.ebuild
>>> md5 files   ;-) ibm-jdk-bin-1.4.2.03.ebuild
>>> md5 files   ;-) ibm-jdk-bin-1.4.2.04.ebuild
>>> md5 files   ;-) files/cpuinfo
>>> md5 files   ;-) files/ibm-jdk-bin-1.4.2.03
>>> md5 files   ;-) files/ibm-jdk-bin-1.4.2.04
>>> md5 files   ;-) files/digest-ibm-jdk-bin-1.4.2.03
>>> md5 files   ;-) files/digest-ibm-jdk-bin-1.4.2.04
>>> md5 files   ;-) files/ibm-jdk-bin-1.4.2
>>> md5 files   ;-) files/ibm-jdk-bin-1.5.0
>>> md5 files   ;-) files/digest-ibm-jdk-bin-1.5.0

!!! Digest verification Failed:
!!!    /usr/portage/distfiles/IBMJava2-SDK-142.ppc-SR4.tgz
!!! Reason: Filesize does not match recorded size

From the IBM-homepage: 32-bit iSeries/pSeries  * SR4-1

Do we need a new ebuild?
Comment 5 Jonathan Manning 2006-02-23 13:39:59 UTC
The file you get if you download from IBM today is SR4-1. This is different from both SR3 and SR4, and requires a version bump in portage.

However, you can still get both the SR3 and SR4 versions. From the given download page, Select Linux Downloads, then select select "older versions available here" at the bottom. Then select SR3 and/or SR4. (SR3 is the stable ebuild right now).
I have confirmed that these MD5 sums match.

Perhaps the download URL could be corrected for SR3 (1.4.2.03) and SR4 (1.4.2.04) to be: http://www.ibm.com/developerworks/java/jdk/linux/older_download.html
It wouldn't require a version bump, just a patched ebuild.
Comment 6 Rafael Bugajewski 2006-02-24 14:16:30 UTC
(In reply to comment #5)
> The file you get if you download from IBM today is SR4-1. This is different
> from both SR3 and SR4, and requires a version bump in portage.
> 
> However, you can still get both the SR3 and SR4 versions. From the given
> download page, Select Linux Downloads, then select select "older versions
> available here" at the bottom. Then select SR3 and/or SR4. (SR3 is the stable
> ebuild right now).
> I have confirmed that these MD5 sums match.
> 
> Perhaps the download URL could be corrected for SR3 (1.4.2.03) and SR4
> (1.4.2.04) to be:
> http://www.ibm.com/developerworks/java/jdk/linux/older_download.html
> It wouldn't require a version bump, just a patched ebuild.

O.K., so what's going on now? Today I had the same error. I thought I'm downloading the right thing, but it was SR4-1. I changed the md5 sums and file sizes manually, so they worked with the new JDK/JRE from IBM. Change the link or update the ebuild would be a good idea.
Comment 7 Boney McCracker 2006-03-17 00:44:14 UTC
3/16: just 2 fresh cents from somebody who touched this today

Installing stable branch (32-bit ppc), emerge --gnome called for SR3.  I got SR3 from the "old download area" and MD5 digest failed.  SR4-1 didn't work either.  I suspect that it's exprecting SR4, but the dialog points to what is now SR4-1 and asks you to rename it to SR3.

Switching to unstable branch, emerge called for SR4.  I tried SR4-1 first (and MD5 digest failed).  SR-4 did work.

Suggestion:
Since the IBM site indicates IBMJava-JRE-1.4.2 SR4-1 is the "final" version and no further updates will be made, the dialogs should still point to where they are, and the MD5 digests should be updated to match.
Comment 8 Jonathan Manning 2006-03-17 10:10:13 UTC
(In reply to comment #7)
> the MD5 digests should be updated to match.

I disagree. The subject of this bug is misleading. The digests *are correct* for the corresponding versions. However, the download url points you to the wrong version of the file. IBM's confusing website and insistence on naming different versions with the same file name don't help either.

The difficulty is users have to download and rename the file themselves. Due to the incorrect url and instructions, users seem to be downloading SR4-1 and complaining that it doesn't match the digest for SR3 or SR4. This is the way it should be - it's a different version and different file. There are files which match SR3 and SR4, but they aren't easy to find anymore.

So, it's not that the digests are incorrect - they are correct, and I have confirmed this after downloading all the versions from the older_download link - but the fetch instructions and download url point users to the wrong file.

A long term fix would be to bump the ebuild to SR4-1 and add the new file and new digest.

Until a dev gets around to doing that, I feel the biggest contribution I can make is to point people to the correct download file so the existing ebuilds work. If you search long enough, you will find the SR3 version that works with the current stable ebuild, and the SR4 (not SR4-1) version which works with the ~x86 SR4 ebuild. Just be extra careful about which version you download, and be careful to rename the files appropriately.

Hope this helps,
~J

root# emerge -fv "=dev-java/ibm-jdk-bin-1.4.2.03"
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/ibm-jdk-bin-1.4.2.03 to /
>>> md5 files   ;-) ibm-jdk-bin-1.5.0.ebuild
>>> md5 files   ;-) ibm-jdk-bin-1.4.2.03.ebuild
>>> md5 files   ;-) ibm-jdk-bin-1.4.2.04.ebuild
>>> md5 files   ;-) files/cpuinfo
>>> md5 files   ;-) files/ibm-jdk-bin-1.4.2.03
>>> md5 files   ;-) files/ibm-jdk-bin-1.4.2.04
>>> md5 files   ;-) files/digest-ibm-jdk-bin-1.4.2.03
>>> md5 files   ;-) files/digest-ibm-jdk-bin-1.4.2.04
>>> md5 files   ;-) files/ibm-jdk-bin-1.4.2
>>> md5 files   ;-) files/ibm-jdk-bin-1.5.0
>>> md5 files   ;-) files/digest-ibm-jdk-bin-1.5.0
>>> md5 src_uri ;-) IBMJava2-SDK-142-SR3.tgz
>>> md5 src_uri ;-) IBMJava2-JAVACOMM-142-SR3.tgz

root# ACCEPT_KEYWORDS="~x86" emerge -fv "=dev-java/ibm-jdk-bin-1.4.2.04"
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/ibm-jdk-bin-1.4.2.04 to /
>>> md5 files   ;-) ibm-jdk-bin-1.5.0.ebuild
>>> md5 files   ;-) ibm-jdk-bin-1.4.2.03.ebuild
>>> md5 files   ;-) ibm-jdk-bin-1.4.2.04.ebuild
>>> md5 files   ;-) files/cpuinfo
>>> md5 files   ;-) files/ibm-jdk-bin-1.4.2.03
>>> md5 files   ;-) files/ibm-jdk-bin-1.4.2.04
>>> md5 files   ;-) files/digest-ibm-jdk-bin-1.4.2.03
>>> md5 files   ;-) files/digest-ibm-jdk-bin-1.4.2.04
>>> md5 files   ;-) files/ibm-jdk-bin-1.4.2
>>> md5 files   ;-) files/ibm-jdk-bin-1.5.0
>>> md5 files   ;-) files/digest-ibm-jdk-bin-1.5.0
>>> md5 src_uri ;-) IBMJava2-SDK-142-SR4.tgz
>>> md5 src_uri ;-) IBMJava2-JAVACOMM-142-SR4.tgz

root# md5sum IBMJava2-SDK-142-SR*
dbceaeb7213647be30022a30153089e1  IBMJava2-SDK-142-SR3.tgz
19c9a498d3cb0d6c050fee07f9dbdc8f  IBMJava2-SDK-142-SR4-1.tgz
46eab0423830c9e422ee3f3174287905  IBMJava2-SDK-142-SR4.tgz

These were downloaded today from the link I provided in comment #5.
A method I'd recommend - download the file, run md5sum on it to see which gentoo version it matches, then rename it appropriately.
Comment 9 Jonathan Manning 2006-03-17 10:13:24 UTC
Sorry, didn't notice ppc in comment #7. I haven't verified that md5sums match for the ppc or ~ppc branches, but the suggestion to be careful about versions still applies. Get the md5sum gentoo expects from the Manifest and try to find a match in the older downloads section.
Comment 10 Zeth 2006-03-22 08:32:23 UTC
> I haven't verified that md5sums match for the ppc or ~ppc branches

On PPC:

emerge -fvO ibm-jdk-bin ibm-jre-bin
Calculating dependencies... done!
>>> Emerging (1 of 2) dev-java/ibm-jdk-bin-1.4.2.03 to /
>>> checksums files   ;-) ibm-jdk-bin-1.5.0.ebuild
>>> checksums files   ;-) ibm-jdk-bin-1.4.2.03.ebuild
>>> checksums files   ;-) ibm-jdk-bin-1.4.2.04.ebuild
>>> checksums files   ;-) files/cpuinfo
>>> checksums files   ;-) files/ibm-jdk-bin-1.4.2.03
>>> checksums files   ;-) files/ibm-jdk-bin-1.4.2.04
>>> checksums files   ;-) files/digest-ibm-jdk-bin-1.4.2.03
>>> checksums files   ;-) files/digest-ibm-jdk-bin-1.4.2.04
>>> checksums files   ;-) files/ibm-jdk-bin-1.4.2
>>> checksums files   ;-) files/ibm-jdk-bin-1.5.0
>>> checksums files   ;-) files/digest-ibm-jdk-bin-1.5.0

!!! Digest verification Failed:
!!!    /usr/portage/distfiles/IBMJava2-SDK-142.ppc-SR3.tgz
!!! Reason: Filesize does not match recorded size
!!! Got:      61280209
!!! Expected: 59777026


!!! Fetch for /usr/portage/dev-java/ibm-jdk-bin/ibm-jdk-bin-1.4.2.03.ebuild failed, continuing...

>>> Emerging (2 of 2) dev-java/ibm-jre-bin-1.4.2.03 to /
>>> checksums files   ;-) ibm-jre-bin-1.4.2.ebuild
>>> checksums files   ;-) ibm-jre-bin-1.4.2.04.ebuild
>>> checksums files   ;-) ibm-jre-bin-1.4.2.03.ebuild
>>> checksums files   ;-) files/digest-ibm-jre-bin-1.4.2.03
>>> checksums files   ;-) files/digest-ibm-jre-bin-1.4.2.04
>>> checksums files   ;-) files/ibm-jre-bin-1.4.2
>>> checksums files   ;-) files/digest-ibm-jre-bin-1.4.2
>>> checksums files   ;-) files/ibm-jre-bin-1.4.2.03
>>> checksums files   ;-) files/ibm-jre-bin-1.4.2.04

!!! Digest verification Failed:
!!!    /usr/portage/distfiles/IBMJava2-JRE-142.ppc-SR3.tgz
!!! Reason: Filesize does not match recorded size
!!! Got:      43373947
!!! Expected: 41878932


!!! Fetch for /usr/portage/dev-java/ibm-jre-bin/ibm-jre-bin-1.4.2.03.ebuild failed, continuing...

!!! Some fetch errors were encountered.  Please see above for details.
Comment 11 Josh Nichols (RETIRED) gentoo-dev 2006-04-05 15:54:40 UTC
Fixed in CVS. Resync in a few hours to get the update.

You will probably want to redownload the distfiles to ensure you have the correct ones downloaded.