Opened 14 years ago

Closed 14 years ago

#24344 closed defect (worksforme)

libxml2 version 2.7.7 install fails on checksum

Reported by: lsimmonett@… Owned by: 0xced (Cédric Luthi)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: libxml2

Description

Libxml2 version 2.7.7 fails to install when updating or installing fresh. I have had exactly the same behaviour on version 10.6.2 and 10.6.3.

The error I get is as follows:

--->  Computing dependencies for libxml2
--->  Verifying checksum(s) for libxml2
Error: Checksum (md5) mismatch for libxml2-2.7.7.tar.gz
Error: Checksum (sha1) mismatch for libxml2-2.7.7.tar.gz
Error: Checksum (rmd160) mismatch for libxml2-2.7.7.tar.gz
Error: Target org.macports.checksum returned: Unable to verify file checksums
Error: Unable to upgrade port: 1
Before reporting a bug, first run the command again with the -d flag to get complete output.

Adding the debug -d option I get the following output:

DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libxml2
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libxml2
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.3.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/archcheck-1.0.tcl
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant darwin is not provided by port libxml2.
DEBUG: Requested variant i386 is not provided by port libxml2.
DEBUG: Requested variant macosx is not provided by port libxml2.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: libiconv 1.13.1_0 exists in the ports tree
DEBUG: libiconv 1.13.1_0  is the latest installed
DEBUG: libiconv 1.13.1_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.3.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port libiconv.
DEBUG: Requested variant i386 is not provided by port libiconv.
DEBUG: Requested variant macosx is not provided by port libiconv.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: gperf 3.0.4_0 exists in the ports tree
DEBUG: gperf 3.0.4_0  is the latest installed
DEBUG: gperf 3.0.4_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.3.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port gperf.
DEBUG: Requested variant i386 is not provided by port gperf.
DEBUG: Requested variant macosx is not provided by port gperf.
DEBUG: No need to upgrade! gperf 3.0.4_0 >= gperf 3.0.4_0
DEBUG: No need to upgrade! libiconv 1.13.1_0 >= libiconv 1.13.1_0
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: zlib 1.2.4_1 exists in the ports tree
DEBUG: zlib 1.2.4_1  is the latest installed
DEBUG: zlib 1.2.4_1  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.3.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant darwin is not provided by port zlib.
DEBUG: Requested variant i386 is not provided by port zlib.
DEBUG: Requested variant macosx is not provided by port zlib.
DEBUG: No need to upgrade! zlib 1.2.4_1 >= zlib 1.2.4_1
--->  Computing dependencies for libxml2
DEBUG: Searching for dependency: libiconv
DEBUG: Found Dependency: receipt exists for libiconv
DEBUG: Searching for dependency: zlib
DEBUG: Found Dependency: receipt exists for zlib
DEBUG: Executing org.macports.main (libxml2)
DEBUG: Skipping completed org.macports.fetch (libxml2)
--->  Verifying checksum(s) for libxml2
DEBUG: Executing org.macports.checksum (libxml2)
--->  Checksumming libxml2-2.7.7.tar.gz
Error: Checksum (md5) mismatch for libxml2-2.7.7.tar.gz
Portfile checksum: libxml2-2.7.7.tar.gz md5 9abc9959823ca9ff904f1fbcf21df066
Distfile checksum: libxml2-2.7.7.tar.gz md5 fe92b9c732b7bdfbb3492b2c3f2a7f51
Error: Checksum (sha1) mismatch for libxml2-2.7.7.tar.gz
Portfile checksum: libxml2-2.7.7.tar.gz sha1 8592824a2788574a172cbddcdc72f734ff87abe3
Distfile checksum: libxml2-2.7.7.tar.gz sha1 f80190a92a7f189bca128ddb9202add371fde341
Error: Checksum (rmd160) mismatch for libxml2-2.7.7.tar.gz
Portfile checksum: libxml2-2.7.7.tar.gz rmd160 9f72c778c3e9e348a68eada0cf624c012658c085
Distfile checksum: libxml2-2.7.7.tar.gz rmd160 5e7406483d21ec6269a2e22d993c9b31a9760c84
The correct checksum line may be:
checksums           md5     fe92b9c732b7bdfbb3492b2c3f2a7f51 \
                    sha1    f80190a92a7f189bca128ddb9202add371fde341 \
                    rmd160  5e7406483d21ec6269a2e22d993c9b31a9760c84
Error: Target org.macports.checksum returned: Unable to verify file checksums
DEBUG: Backtrace: Unable to verify file checksums
    while executing
"$procedure $targetname"
Warning: the following items did not execute (for libxml2): org.macports.activate org.macports.extract org.macports.checksum org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Hope that's enough information.

Change History (7)

comment:1 Changed 14 years ago by lsimmonett@…

Cc: lsimmonett@… added

Cc Me!

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

Cc: cedric.luthi@… added; lsimmonett@… removed
Milestone: MacPorts 1.8.3
Owner: changed from macports-tickets@… to macsforever2000@…

Please read the FAQ on checksum errors. You did not specify the downloaded mirror.

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

Cc: cedric.luthi@… removed
Owner: changed from macsforever2000@… to cedric.luthi@…

comment:4 Changed 14 years ago by lsimmonett@…

Apologies for not adding the download mirror. The mirror I have in my sources.conf is rsync://rsync.macports.org/release/ports/ This hasn't been changed since macports was installed so I assume it's the default. It is also the only mirror in that file. I'm new to macports so I hope this is what you need.

I should also add that I've tried port selfupdate and port sync, with port clean after each failed attempt. I still get the same error. Hope this helps.

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

What you are referring to is only for the Portfiles and Portindex. The download mirror is for the actual port source code which varies depending on the port. After you run a clean --all on the port, it will show up in the fetch phase when you try to install again.

comment:6 Changed 14 years ago by lsimmonett@…

The port file is fetched from http://lil.fr.distfiles.macports.org/libxml2 after a port clean --all. It would appear that someone has fixed the checksum issue in the last few hours as I now no longer get the error and libxml2 built and installed without issue now. It might still be worth looking into but I believe someone else has also been looking into this issue and has fixed it.

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

Resolution: worksforme
Status: newclosed

Glad you got it working. The portfile - and hence the checksums in it - have not changed recently. Either the problem was on your end - i.e. a corrupt download - or you got it from a different mirror which was corrupt. The former case is most common.

Note: See TracTickets for help on using tickets.