Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2239 closed defect (fixed)

fortune 4.6.2-RELEASE fails checksum

Reported by: toby@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

I just installed DarwinPorts into my $HOME and attempted to build fortune (which, for some reason, OS X doesn't include). This resolved the dependency for libcompat, fetched it and built it, but when it got to fortune, fortune-4.6.2-RELEASE.tar.bz2 failed the checksum, despite me manually verifying the checksum in the Portfile. Here is the output:

system:~> port install fortune ---> Fetching fortune ---> Attempting to fetch fortune-4.6.2-RELEASE.tar.bz2 from http://distfiles-od.opendarwin.org/ ---> Verifying checksum(s) for fortune Error: No checksum set for fortune-4.6.2-RELEASE.tar.bz2 Error: Target com.apple.checksum returned: Unable to verify file checksums system:~>

In /opt/local/var/db/dports/distfiles/fortune, there is only the fortune-4.6.2-RELEASE.tar.bz2 file. The MD5 sum of the file is:

system:/opt/local/var/db/dports/distfiles/fortune> md5 fortune-4.6.2-RELEASE.tar.bz2 MD5 (fortune-4.6.2-RELEASE.tar.bz2) = 99166e1c47d4b60c865a31d59d359b16 system:/opt/local/var/db/dports/distfiles/fortune>

This matches what is listed in ~/darwinports/dports/games/fortune/Portfile as the MD5 sum of the tarball exactly (first line in the checksums section).

Previously, I had installed a2ps, coreutils, epic4, lft (and psutils and libcompat as a result of these choices). I followed the standard procedure for installing DarwinPorts; checked it out of anoncvs and ./ configure;make;sudo make install and then put /opt/local/bin in my path and restarted the terminal emulator. No problems with the installation of any of the other above-listed software, either. Afterwards, I always port clean and distclean to save some space.

Any clues?

Change History (3)

comment:1 Changed 15 years ago by thomas+opendarwin@…

This bug is very strange. First off, it installs fine on my Mac OS X 10.3.5 machine with xCode 1.2 and DarwinPorts as of 25 June 2004. It crashes with the same error however on my Mac OS X 10.3.5 machine with xCode 1.5 and DarwinPorts as of 25 Sept 2004. I suspect this is a regression with a newer version of DarwinPorts.

The fortune Portfile has many checksums included:

checksums ${distname}${extract.suffix} md5 99166e1c47d4b60c865a31d59d359b16 \

fortune-starwars.tgz md5 2f4443470a5d7bcb7c5efde501f8e6f5 \ fortune-mod-futurama-0.2.tar.gz md5 6fd2cfa2fd8285ff5aabb5e1236107bf \ fortune-mod-dune-quotes.2.0.1.tar.gz md5 5821793a7754ca07a18c5c08656b7371 \ fortune-fgump.tgz md5 d9d8e6ba103898e2fe6736378d352398 \ fortune-mod-calvin-0.1.1.tar.gz md5 e0dc2036b731aafdee4989e9d1d8ec2a \ homer-quotes.tar.gz md5 ca7ed106f5e828f826eea1d759e00fa0 \ ralph-quotes.tar.gz m5 9fcdffff609dc5524ee9999846a40bf0 \ cbg-quotes.tar.gz md5 6de1139cf55bb71758ba9e3a01f05354 \ fortune-simpsons-chalkboard.tgz md5 1602ec6df3336a7e01f857b8419c8df1

If you remove any one of those additional checksums used by the variants, the fortune port builds fine on both machines. Please note the ralph-quotes file has an 'm5' checksum instead of an 'md5' checksum. Fixing this bug did not seem to affect the outcome.

comment:2 Changed 15 years ago by mww@…

just added some missing checksums and fixed the 'm5' string to 'md5'

comment:3 Changed 15 years ago by toby@…

Resolution: fixed
Status: newclosed

Committed a fix to portchecksum.tcl that should take care of this.

Note: See TracTickets for help on using tickets.