I installed MacPorts but later had problems with readline. Turns out something else I'd installed prior to using MacPorts had installed an old version of readline in /usr/local/lib. No problem I think, I'll just remove it. However, it appears that MacPorts built itself against that version because the port command errored out when I moved the readline. Put it back, port works again. So I took the "simple" way out, I moved /opt to a temp directory and reinstalled MacPorts. Then I redid all my port installs. Those were: gperf apache2 subversion +mod_dav_svn mysql5 +server And then: php5 +apache2 +macosx +mysql5 And that bombed: ---> Applying patches to php5 Error: Target com.apple.patch returned: shell command " cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_www_php5/work/php-5.2.2" && patch -p0 < '/opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/www/php5/files/patch-posix.c.diff'" returned error 1 Command output: patching file ext/posix/posix.c Hunk #1 FAILED at 16. Hunk #2 FAILED at 147. Hunk #3 FAILED at 884. Hunk #4 FAILED at 909. 4 out of 4 hunks FAILED -- saving rejects to file ext/posix/posix.c.rej Error: Status 1 encountered during processing. The posix.c.rej file doesn't seem to have anything useful in it (just the chunks of code it was trying to patch, no log/error messages). What I just noticed is that my old (working) copy, which is only from a few days ago, is: php5 @5.2.1_3+apache2+darwin_7+macosx+mysql5 Yet today it's trying to install 5.2.2. Is 5.2.2 not working? How can I force it to install the old version? When I try any variation on: sudo port install php5 @5.2.1_3+apache2+darwin_7+macosx+mysql5 It still downloads and tries to install 5.2.2. Thanks, Jeff __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On May 9, 2007, at 4:14 AM, Jeff Adams wrote:
How can I force it to install the old version?
Making your own Portfile should do the trick. 1) First create a directory, for instance "/tmp/php5/". 2) Then "sudo port edit php5" and you will get the current Portfile (you need to have the EDITOR environment variable set) 3) Modify and save it as "/tmp/php5/Portfile". 4) Then "cd /tmp/php5/". 5) And finally "sudo port install". Note, that "port install" without any package name given uses the Portfile from the current working directory (/tmp/php5/ in our case) or returns an error message if no Portfile is found. Kind regards, -- M. Roszka
On May 8, 2007, at 21:14, Jeff Adams wrote:
php5 +apache2 +macosx +mysql5
And that bombed:
---> Applying patches to php5 Error: Target com.apple.patch returned: shell command " cd "/opt/local/var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_ dports_www_php5/work/php-5.2.2" && patch -p0 < '/opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/www/php5/files/patch- posix.c.diff'" returned error 1 Command output: patching file ext/posix/posix.c Hunk #1 FAILED at 16. Hunk #2 FAILED at 147. Hunk #3 FAILED at 884. Hunk #4 FAILED at 909. 4 out of 4 hunks FAILED -- saving rejects to file ext/posix/posix.c.rej
Error: Status 1 encountered during processing.
The posix.c.rej file doesn't seem to have anything useful in it (just the chunks of code it was trying to patch, no log/error messages).
What I just noticed is that my old (working) copy, which is only from a few days ago, is:
php5 @5.2.1_3+apache2+darwin_7+macosx+mysql5
Yet today it's trying to install 5.2.2. Is 5.2.2 not working? How can I force it to install the old version? When I try any variation on:
sudo port install php5 @5.2.1_3+apache2+darwin_7+macosx+mysql5
It still downloads and tries to install 5.2.2.
Thank you for reporting the problem. My co-maintainer updated the php5 port to 5.2.2 recently. It installed ok for me; I didn't realize the patch was failing. Ah, I see that patch is only used on Mac OS X 10.3.x. I use 10.4.x and I suspect my co-maintainer does too. I'll have to have a look at this situation. If you would like to install an older version, you will have to download an older version of the portfile from the MacPorts Subversion repository and overwrite the existing portfile. However hopefully I can resolve the patch problem shortly and then that won't be necessary.
On May 8, 2007, at 22:51, Ryan Schmidt wrote:
Thank you for reporting the problem. My co-maintainer updated the php5 port to 5.2.2 recently. It installed ok for me; I didn't realize the patch was failing. Ah, I see that patch is only used on Mac OS X 10.3.x. I use 10.4.x and I suspect my co-maintainer does too. I'll have to have a look at this situation.
Looking at the portfile, I now remember. I even left a note in the portfile that the patch should be removed once PHP 5.2.2 was available. I guess my co-maintainer overlooked my note. :-) I've removed the patch so now the port should install properly for you. Just give it 12 hours or so, then "sudo port sync" and then you should be able to install PHP 5.2.2.
participants (3)
-
Jeff Adams
-
Michał Roszka
-
Ryan Schmidt