Opened 13 years ago

Closed 13 years ago

#31249 closed defect (invalid)

php5 Download Link Fix (ONE LINE FIX IN DESCRIPTION)

Reported by: TruePath (Peter Gerdes) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: coateconnection (David Coate)
Port: php5

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

the php5 version 5.3.8 is failing to download the source. The following changes should be made to the portfile to get the url correct

In particular master_sites should be changed to http://www.php.net/distributions/ This changes seems to minor to be worth creating a patch for. I hope you (the maintainer) are CCed if I enter you into form here and this is appropriate way to submit.

Original portfile section:

homepage                http://www.php.net/
master_sites            php

distname                php-${version}  

The way it should read:

homepage                http://www.php.net/
master_sites            http://www.php.net/distributions/

distname                php-${version}   

Attachments (1)

Portfile-rrdtool.diff (1.1 KB) - added by TruePath (Peter Gerdes) 13 years ago.
Patch to fix php5 download

Download all attachments as: .zip

Change History (10)

comment:1 Changed 13 years ago by TruePath (Peter Gerdes)

Cc: gerdes@… added

Cc Me!

comment:2 Changed 13 years ago by TruePath (Peter Gerdes)

Cc: gerdes@… removed

Cc Me!

comment:4 Changed 13 years ago by TruePath (Peter Gerdes)

Opps I may still have had it screwed up by putting that last / on distributions. I don't think this was a problem but just to make sure everything is perfectly clear I'm attaching the patch file for the working version.

Changed 13 years ago by TruePath (Peter Gerdes)

Attachment: Portfile-rrdtool.diff added

Patch to fix php5 download

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

Cc: ryandesign@… removed
Description: modified (diff)
Keywords: php5 download removed
Owner: changed from macports-tickets@… to ryandesign@…
Port: @5.3.8 removed
Priority: HighNormal

comment:6 in reply to:  description Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to gerdes@…:

the php5 version 5.3.8 is failing to download the source. The following changes should be made to the portfile to get the url correct

No, the portfile is correct as written. The "php" in "master_sites php" is a reference to the php fetchgroup.

Why did you think this needs to be changed? What error did you experience? The only possible problem I can see is that the uk2.php.net mirror listed in the php fetchgroup appears no longer to exist. In r83973 I have replaced it with the uk3 mirror. Does that help?

comment:7 Changed 13 years ago by coateconnection (David Coate)

I'm having similar problem, Using Macports 2.03 upon running upgrade outdated.

The following ports are currently installed:
  php5 @5.3.6_0+apache2+pear (active)
Macintosh:~ davidcoate$ sudo port upgrade php5
Password:
--->  Computing dependencies for php5
--->  Verifying checksum(s) for php5
Error: Checksum (rmd160) mismatch for php-5.3.8.tar.bz2
Error: Checksum (sha256) mismatch for php-5.3.8.tar.bz2
***
The non-matching file appears to be HTML. See this page for possible reasons
for the checksum mismatch:
<https://trac.macports.org/wiki/MisbehavingServers>
***

After following advice on MisbehavingServers web page, still had same problems. Then I cleaned php5 first and tried again...

Macintosh:~ davidcoate$ sudo port clean php5
Password:
--->  Cleaning php5
Macintosh:~ davidcoate$ sudo port upgrade php5
--->  Computing dependencies for php5
--->  Fetching archive for php5
--->  Attempting to fetch php5-5.3.8_0+apache2+pear.darwin_9.ppc.tbz2 from http://packages.macports.org/php5
--->  Fetching php5
--->  Verifying checksum(s) for php5
Error: Checksum (rmd160) mismatch for php-5.3.8.tar.bz2
Error: Checksum (sha256) mismatch for php-5.3.8.tar.bz2
***
The non-matching file appears to be HTML. See this page for possible reasons
for the checksum mismatch:
<https://trac.macports.org/wiki/MisbehavingServers>
***

Its trying to pull from packages.macports.org and the directory doesn't exit, the server return a 404 error html page to my browser.

same problem?

comment:8 in reply to:  7 Changed 13 years ago by neverpanic (Clemens Lang)

Replying to dlc@…:

Its trying to pull from packages.macports.org and the directory doesn't exit, the server return a 404 error html page to my browser.

packages.macports.org hosts prebuilt binaries which currently do not exist for Leopard -- that means it's normal for your browser to 404 here. The download (or rather checksum) fails at a later step, try running with -v or -d to see the URL of the PHP download that is failing.

same problem?

No. Please do not hijack other people's tickets.

comment:9 in reply to:  7 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: dlc@… added

Replying to dlc@…:

I'm having similar problem,

The original reporter has not given any indication of what problem he is experiencing is so we cannot know whether the problem you're seeing is similar.

Error: Checksum (rmd160) mismatch for php-5.3.8.tar.bz2
Error: Checksum (sha256) mismatch for php-5.3.8.tar.bz2
***
The non-matching file appears to be HTML. See this page for possible reasons
for the checksum mismatch:
<https://trac.macports.org/wiki/MisbehavingServers>
***

And what does the HTML file (/opt/local/var/macports/distfiles/php5/php-5.3.8.tar.bz2) contain?

Its trying to pull from packages.macports.org and the directory doesn't exit, the server return a 404 error html page to my browser.

This is normal and not a problem.

comment:10 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Closing due to lack of information.

Note: See TracTickets for help on using tickets.