Php5 won't install, patches fail?
Ryan Schmidt
ryandesign at macports.org
Tue May 8 20:51:53 PDT 2007
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.
More information about the macports-users
mailing list