Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#26075 closed defect (fixed)

db46 - Checksum (md5) mismatch for patch.4.6.21.X

Reported by: mitch.lin@… Owned by: blair (Blair Zajac)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), cooperz, jakub.moskal@…, laurivan@…, mtwarogowski@…, email.rafa@…, mike@…, tony@…, mjd@…, blb@…, wwarren@…, davidh@…, casey.schlenker@…, jtmacdonald@…, ninh@…
Port: db44 db46 db47

Description (last modified by ryandesign (Ryan Carsten Schmidt))

While trying to install meld, I ran into this error:

sudo port install meld
--->  Computing dependencies for meld
--->  Dependencies to be installed: py25-gnome gconf dbus-glib gtk-doc gnome-doc-utils py26-libxml2 python26 db46 gdbm readline sqlite3 tk Xft2 fontconfig freetype xrender xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto tcl xorg-libXScrnSaver xorg-libXext xorg-scrnsaverproto rarian getopt gtk2 atk jasper jpeg pango cairo libpixman libpng shared-mime-info tiff xorg-libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto orbit2 libidl policykit gnome-vfs desktop-file-utils popt gnome-mime-data libbonobo libbonoboui libglade2 libgnome esound audiofile libgnomecanvas libart_lgpl xorg-libice xorg-libsm libgnomeui gnome-icon-theme hicolor-icon-theme icon-naming-utils p5-xml-simple p5-xml-namespacesupport p5-xml-sax p5-xml-sax-expat libgnome-keyring eggdbus gnome-keyring libgcrypt libgpg-error libtasn1 py25-gtk py25-cairo py25-numpy atlas gcc44 gmp mpfr gzip texinfo lzmautils fftw-3 py25-nose py25-distribute python25 py25-gobject py25-orbit
--->  Verifying checksum(s) for db46
Error: Checksum (md5) mismatch for patch.4.6.21.1
Error: Checksum (md5) mismatch for patch.4.6.21.2
Error: Checksum (md5) mismatch for patch.4.6.21.3
Error: Checksum (md5) mismatch for patch.4.6.21.4
Error: Target org.macports.checksum returned: Unable to verify file checksums
Log for db46 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/main.log
Error: The following dependencies failed to build: py25-gnome gconf dbus-glib gtk-doc gnome-doc-utils py26-libxml2 python26 db46 gdbm readline sqlite3 tk Xft2 fontconfig freetype xrender xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto tcl xorg-libXScrnSaver xorg-libXext xorg-scrnsaverproto rarian getopt gtk2 atk jasper jpeg pango cairo libpixman libpng shared-mime-info tiff xorg-libXcomposite xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto orbit2 libidl policykit gnome-vfs desktop-file-utils popt gnome-mime-data libbonobo libbonoboui libglade2 libgnome esound audiofile libgnomecanvas libart_lgpl xorg-libice xorg-libsm libgnomeui gnome-icon-theme hicolor-icon-theme icon-naming-utils p5-xml-simple p5-xml-namespacesupport p5-xml-sax p5-xml-sax-expat libgnome-keyring eggdbus gnome-keyring libgcrypt libgpg-error libtasn1 py25-gtk py25-cairo py25-numpy atlas gcc44 gmp mpfr gzip texinfo lzmautils fftw-3 py25-nose py25-distribute python25 py25-gobject py25-orbit
Error: Status 1 encountered during processing.

Change History (37)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: db46 meld checksum md5 mismatch removed
Owner: changed from macports-tickets@… to blair@…

Please use WikiFormatting, Cc port maintainers, and consult the FAQ entry on checksum failures. Which server did this distfile come from? If you don't know, "sudo port clean --all db46" and try again and it should tell you.

comment:2 Changed 14 years ago by cooperz

I get the same problem. It looks like from macports.org:

--->  Computing dependencies for db46
--->  Fetching db46
--->  Attempting to fetch patch.4.6.21.1 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
--->  Attempting to fetch patch.4.6.21.2 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
--->  Attempting to fetch patch.4.6.21.3 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
--->  Attempting to fetch patch.4.6.21.4 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
--->  Attempting to fetch db-4.6.21.tar.gz from http://distfiles.macports.org/db4/4.6.21_6
--->  Verifying checksum(s) for db46
Error: Checksum (md5) mismatch for patch.4.6.21.1
Error: Checksum (md5) mismatch for patch.4.6.21.2
Error: Checksum (md5) mismatch for patch.4.6.21.3
Error: Checksum (md5) mismatch for patch.4.6.21.4

comment:3 Changed 14 years ago by cooperz

Cc: cooperz@… added

Cc Me!

comment:4 Changed 14 years ago by strobe33333@…

CC Me!

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Please remember WikiFormatting for preformatted text (I fixed comment:2 for you).

comment:6 Changed 14 years ago by jakub.moskal@…

Cc: jakub.moskal@… added

Cc Me!

comment:7 Changed 14 years ago by laurivan@…

It's actually the fact that the links pointing to those patches have become invalid.

http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/

redirects to the Berkley-DB webpage

http://www.oracle.com/technetwork/database/berkeleydb/overview/index.html

and you get a HTML instead of the real patch.

Please CC me when you have this fixed.

comment:8 Changed 14 years ago by laurivan@…

If you're in a terrible rush, then you can do the following:

  1. run port install db46 (which is going to fail)
  2. change dir to where the port command downloaded the stuff (mine is opt/local/var/macports/distfiles/db4/4.6.21_6)
  3. remove the patches
  4. do:
    for i in 1 2 3 4; do echo $i && wget http://distfiles.macports.org/db4/4.6.21_6/patch.4.6.21.$i; done
    
  5. run "port install db46" again

comment:9 Changed 14 years ago by laurivan@…

Cc: laurivan@… added

Cc Me!

comment:10 Changed 14 years ago by doh123@…

Thanks for the workaround... although people don't have wget by default on OSX... I modified it to use curl instead and it worked fine.

comment:11 Changed 14 years ago by hackdefendr (HackDefendr)

The only way I could get this to work was to do this:

port extract db46

Then I did:

cd `port dir db46`/work/db*

Then manually patch the source:

patch -p0 < `port dir db46`/patch.4.6.21.{1,2,3,4}

Then proceeded with the regular 'port install db46'

comment:12 Changed 14 years ago by blb@…

Cc: mtwarogowski@… added

Cc reporter of dup #26090.

comment:13 Changed 14 years ago by jmroot (Joshua Root)

Cc: mcalhoun@… email.rafa@… added
Port: db47 added

Also affects db47 as per dup #26088.

comment:14 Changed 14 years ago by mike@…

Cc: mike@… added

Cc Me!

comment:15 Changed 14 years ago by tony@…

Cc: tony@… added

Cc Me!

comment:16 Changed 14 years ago by blb@…

Cc: mjd@… added

Cc reporter of dup #26097.

comment:17 Changed 14 years ago by blb@…

Cc: blb@… added

Forcing this port to fetch the patches from the MacPorts' server for now until Oracle fixes their patch availability, in r70645 (and r70646 for db47). Leaving open for when that happens...

comment:18 Changed 14 years ago by blb@…

Cc: wwarren@… added

Cc reporter of dup #26100.

comment:19 Changed 14 years ago by mitch.lin@…

I tried to do that gvibe06 and got the following:

/opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/db46> sudo port extract db46
--->  Computing dependencies for db46
--->  Verifying checksum(s) for db46
Error: Checksum (md5) mismatch for patch.4.6.21.1
Error: Checksum (md5) mismatch for patch.4.6.21.2
Error: Checksum (md5) mismatch for patch.4.6.21.3
Error: Checksum (md5) mismatch for patch.4.6.21.4
Error: Target org.macports.checksum returned: Unable to verify file checksums
Log for db46 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
/opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/db46> ls -al
total 16
drwxr-xr-x   3 root  admin   102 Aug 10 21:00 .
drwxr-xr-x  98 root  admin  3332 Jun 20 00:30 ..
-rw-r--r--   1 root  admin  4312 Aug 10 21:00 Portfile

comment:20 Changed 14 years ago by blb@…

If you've already downloaded the patches which aren't checksumming, you first need to get rid of those with sudo port clean --all db46 and use sudo port selfupdate to get the updated Portfile. After that, installing whatever you were initially trying should get past db46.

comment:21 Changed 14 years ago by mitch.lin@…

The following worked:

sudo port clean -f --all db46
sudo port selfupdate
sudo port install db46

Thanks everyone for your help!

comment:22 Changed 14 years ago by mtwarogowski@…

I successfully installed php5 with no checksum mismatches.

Thanks for addressing this so quickly!

comment:23 Changed 14 years ago by mf2k (Frank Schima)

Cc: davidh@… added

Cc reporter of dup #26154.

comment:24 Changed 14 years ago by jmroot (Joshua Root)

Port: db44 added

Applied patch_sites change to db44 in r70836.

comment:25 Changed 14 years ago by mf2k (Frank Schima)

Cc: casey.schlenker@… added

Cc reporter of duplicate #26251.

comment:26 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #26274.

comment:27 Changed 14 years ago by jtmacdonald@…

Cc: jtmacdonald@… added

Cc Me!

comment:28 Changed 14 years ago by mark@…

Same here (I forgot to do port selfupdate before installing mongodb). Thanks for fixing this.

comment:29 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Oracle seems to have finally fixed their site. r72684

comment:30 Changed 14 years ago by ninh@…

Resolution: fixed
Status: closedreopened

It appears this MD5 mismatch has returned (see debug output below) and I encountered this trying to install mongodb which has db46 as one of its dependencies.

--->  Verifying checksum(s) for db46
DEBUG: checksum phase started at Mon Nov  8 22:54:50 CET 2010
DEBUG: Executing org.macports.checksum (db46)
--->  Checksumming patch.4.6.21.1
Error: Checksum (md5) mismatch for patch.4.6.21.1
Portfile checksum: patch.4.6.21.1 md5 4878872edfc53c6ecb871b1062a4bdaf
Distfile checksum: patch.4.6.21.1 md5 db0a7b52a6a1dda6e154c9b0f0e5d72e
--->  Checksumming patch.4.6.21.2
Error: Checksum (md5) mismatch for patch.4.6.21.2
Portfile checksum: patch.4.6.21.2 md5 55074e53d3acae2dcbeae8322f96e522
Distfile checksum: patch.4.6.21.2 md5 db0a7b52a6a1dda6e154c9b0f0e5d72e
--->  Checksumming patch.4.6.21.3
Error: Checksum (md5) mismatch for patch.4.6.21.3
Portfile checksum: patch.4.6.21.3 md5 7a6e11b54712caf752f9c4a52babe60c
Distfile checksum: patch.4.6.21.3 md5 db0a7b52a6a1dda6e154c9b0f0e5d72e
--->  Checksumming patch.4.6.21.4
Error: Checksum (md5) mismatch for patch.4.6.21.4
Portfile checksum: patch.4.6.21.4 md5 ae7d3d587355fe85b512ef09b9a77d19
Distfile checksum: patch.4.6.21.4 md5 db0a7b52a6a1dda6e154c9b0f0e5d72e
--->  Checksumming db-4.6.21.tar.gz
DEBUG: Correct (md5) checksum for db-4.6.21.tar.gz
The correct checksum line may be:
checksums           patch.4.6.21.1 \
                    md5     db0a7b52a6a1dda6e154c9b0f0e5d72e \
                    sha1    78414523f72e677b26e3ad397f8f859041c267e2 \
                    rmd160  54edc6f00da37201551cd4c14b175f7754aac672 \
                    patch.4.6.21.2 \
                    md5     db0a7b52a6a1dda6e154c9b0f0e5d72e \
                    sha1    78414523f72e677b26e3ad397f8f859041c267e2 \
                    rmd160  54edc6f00da37201551cd4c14b175f7754aac672 \
                    patch.4.6.21.3 \
                    md5     db0a7b52a6a1dda6e154c9b0f0e5d72e \
                    sha1    78414523f72e677b26e3ad397f8f859041c267e2 \
                    rmd160  54edc6f00da37201551cd4c14b175f7754aac672 \
                    patch.4.6.21.4 \
                    md5     db0a7b52a6a1dda6e154c9b0f0e5d72e \
                    sha1    78414523f72e677b26e3ad397f8f859041c267e2 \
                    rmd160  54edc6f00da37201551cd4c14b175f7754aac672 \
                    db-4.6.21.tar.gz \
                    md5     718082e7e35fc48478a2334b0bc4cd11 \
                    sha1    5be3beb82e42a78ff671a3f5a4c30e5652972119 \
                    rmd160  ccf9a4b85cc0464b2f3c2f2da29d99328fd4978e
***
The non-matching file appears to be HTML. See this page for possible reasons
for the checksum mismatch:
<http://trac.macports.org/wiki/MisbehavingServers>
***
Error: Target org.macports.checksum returned: Unable to verify file checksums
DEBUG: Backtrace: Unable to verify file checksums
    while executing
"$procedure $targetname"

comment:31 Changed 14 years ago by ninh@…

Cc: ninh@… added

Cc Me!

comment:32 Changed 14 years ago by jmroot (Joshua Root)

Still works for me. What does the HTML say?

comment:33 Changed 14 years ago by ninh@…

Looking at the distfile, the URL it's attempting to use for the patches is http://download.oracle.com/berkeley-db/patches/db/patch.4.6.21.1/ etc... , however, this shows a 404 for me when accessing with a browser. In fact, so do all the other master-site urls. On a side-note, the home-page url in the distfile is currently listed as http://www.oracle.com/database/berkeley-db/index.html in the dist-file, but redirects me to http://www.oracle.com/us/products/database/index.html instead of e.g. http://www.oracle.com/us/products/database/berkeley-db/index.html . Could it have something to do with locale redirection on Oracle's side, because if it were just stale URL's one would think it would also fail for you...

comment:34 Changed 14 years ago by jmroot (Joshua Root)

Attempting to load the directory http://download.oracle.com/berkeley-db/patches/db/4.6.21 gives a 404 for me, but the actual files such as http://download.oracle.com/berkeley-db/patches/db/4.6.21/patch.4.6.21.1 load OK. Does the patch download page link to that URL for you? Can you download the patches from there?

comment:35 Changed 14 years ago by ninh@…

Ah sorry, misread the distfile. Yeah those URL's seem to work fine but as the error indicates, the MD5 of http://download.oracle.com/berkeley-db/patches/db/4.6.21/patch.4.6.21.1 for instance is MD5 (patch.4.6.21.1.txt) = 4878872edfc53c6ecb871b1062a4bdaf which is indicated in the most recent distfile as well, however, my macports ( even after selfupdate) seems to cling to an md5 of db0a7b52a6a1dda6e154c9b0f0e5d72e... any thoughts on what seems to be wrong?

comment:36 Changed 14 years ago by ninh@…

Apparently, I forgot to do a macports clean --all db46 and it was still working with the stale distfiles. After doing this it got the new distfiles. This seems to fix the dependency issue for me. Thanks!

comment:37 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.