Opened 14 years ago

Closed 14 years ago

#22175 closed defect (invalid)

php5 fails on checksum

Reported by: nefar@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: jyrkiwahlstedt
Port: php5

Description

# port sync
[root@naruto]--(09:17:07)
[~/km/km3/local]# port install php5
--->  Computing dependencies for php5
--->  Verifying checksum(s) for php5
Error: Checksum (md5) mismatch for php-5.3.0.tar.bz2
Error: Checksum (sha1) mismatch for php-5.3.0.tar.bz2
Error: Checksum (rmd160) mismatch for php-5.3.0.tar.bz2
Error: Target org.macports.checksum returned: Unable to verify file checksums
Error: Status 1 encountered during processing.
[root@naruto]--(09:17:11)
[~/km/km3/local]# date
Tue Oct 20 09:17:13 PDT 2009

Change History (7)

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

Cc: jwa@… added
Owner: changed from macports-tickets@… to ryandesign@…

Have you read the relevant FAQ entry? The most important bit of info is which mirror the file was downloaded from.

comment:2 Changed 14 years ago by nefar@…

No I hadn't, but the FAQ says to open a bug in trac, which is what I did. So where does that leave me now?

Have you tried compiling it yourself? It wouldn't take much to verify the issue.

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

Resolution: invalid
Status: newclosed
Summary: php fails on checksumphp5 fails on checksum

The issue is not compilation, but checksum verification. You did not receive the same file I did when creating the port. There are many reasons why that might have occurred, as the FAQ says.

I have now fetched the file from each of the mirrors that offer it, and they are all identical and match the checksums in the portfile. Thus, the most likely explanation is the reason listed first in the FAQ entry: you got a corrupted download, and should delete it and try again:

sudo port clean --all php5
sudo port install php5

comment:4 Changed 14 years ago by nefar@…

I did that more than once after the initial update to this ticket. I'm still experiencing issues. Regardless, the FAQ entry still said to file a bug, so I hope that at least is not under dispute.

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

Resolution: invalid
Status: closedreopened

The FAQ entry should say to file a bug if there is something that needs to be changed in the portfile, but so far I don't think there is. Perhaps the wording in the FAQ entry needs to be clarified.

What file do you have at /opt/local/var/macports/distfiles/php5/php-5.3.0.tar.bz2? Is it a bzip2 file (as determined by the "file" command)? How big is it in bytes? Does it decompress (using "bunzip2")? Or is it perhaps an HTML page? If so, what does it say?

comment:6 Changed 14 years ago by nefar@…

$ file  /opt/local/var/macports/distfiles/php5/php-5.3.0.tar.bz2
/opt/local/var/macports/distfiles/php5/php-5.3.0.tar.bz2: bzip2 compressed data, block size = 900k
$ md5   /opt/local/var/macports/distfiles/php5/php-5.3.0.tar.bz2
MD5 (/opt/local/var/macports/distfiles/php5/php-5.3.0.tar.bz2) = 846760cd655c98dfd86d6d97c3d964b0
$ ls -l   /opt/local/var/macports/distfiles/php5/php-5.3.0.tar.bz2
-rw-r--r--  1 root  admin   9.6M Oct 20 13:03 /opt/local/var/macports/distfiles/php5/php-5.3.0.tar.bz2

I guess you can mark it as invalid again. Btw, I did nothing to effect the checksum. (I had originally deleted the download dir in distfiles because Id idn;t know about clean --all) but that's the only difference.

I tried building it again, and now it worked. I guess this can be marked as invalid again.

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

Resolution: invalid
Status: reopenedclosed

Ok. Maybe there was a temporary network issue causing the file to be downloaded improperly before.

Note: See TracTickets for help on using tickets.