downgrade php5

Greg Larkin glarkin at FreeBSD.org
Thu Apr 15 01:08:58 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

doug schmidt wrote:
> On Wed, Apr 14, 2010 at 6:47 PM, Greg Larkin <glarkin at freebsd.org> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> doug schmidt wrote:
>>> On Wed, Apr 14, 2010 at 5:08 PM, Greg Larkin <glarkin at freebsd.org> wrote:
>>>> Hi Doug,
>>>>
>>>> For any port that is no longer present in the tree because it's bundled
>>>> with PHP 5.3.2, please use these commands to restore them:
>>>>
>>>>    export CVS_RSH=ssh    # or "setenv CVS_RSH ssh" if csh
>>>>    cd /usr/ports
>>>>    cvs -d :ext:anoncvs at anoncvs1.FreeBSD.org:/home/ncvs co -D
>>>> '2009-03-31' -d devel/php5-pcre ports/devel/php5-pcre
>>>>
>>>> Repeat the "cvs co" as necessary by changing "devel/php5-pcre" to the
>>>> other <category>/<portname> values that you need.
>>>>
>>> Hi Greg,
>>> Seems to be complaining about devel directory;
>>>
>>> [root at test /usr/ports]# cvs -d
>>> :ext:anoncvs at anoncvs1.FreeBSD.org:/home/ncvs co -D '2009-03-31' -d
>>> devel/php5-pcre ports/devel/php5-pcre
>>> cvs [checkout aborted]: could not change directory to requested
>>> checkout directory `devel': No such file or directory
>>> [root at test /usr/ports]# ls -ld devel
>>> drwxr-xr-x  3212 root  wheel  75264 Apr 13 14:15 devel
>>>
>>> thanks.
>>> doug
>>>
>> Hi Doug,
>>
>> Sorry about that - I thought the -d option accepted multi-level
>> directories.  This works:
>>
>>    cd /usr/ports/devel
>>    cvs -d :ext:anoncvs at anoncvs1.FreeBSD.org:/home/ncvs co -D
>> '2009-03-31' -d php5-pcre ports/devel/php5-pcre
>>
>> Hope that helps,
>> Greg
> 
> Greg, that did the trick for php5-pcre.
> 
> Moving along with php5-extensions install, I now have an issue with php5-zip
> getting patched. The same error comes up with make install of php5-extensions,
> so I tried doing a checkout of previous date;
> 
> [root at test /usr/ports/archivers]# cvs -d
> :ext:anoncvs at anoncvs1.FreeBSD.org:/home/ncvs co -D '2009-03-31' -d
> php5-zip ports/archivers/php5-zip
> ? php5-zip/files
> cvs checkout: Updating php5-zip
> U php5-zip/Makefile
> cvs checkout: Updating php5-zip/files
> [root at test /usr/ports/archivers]# cd php5-zip
> [root at test /usr/ports/archivers/php5-zip]# make install
> => php-5.2.12.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/.
> => Attempting to fetch from http://dk.php.net/distributions/.
> php-5.2.12.tar.bz2                            100% of 8862 kB  338 kBps 00m00s
> ===>  Extracting for php5-zip-5.2.12_2
> => MD5 Checksum OK for php-5.2.12.tar.bz2.
> => SHA256 Checksum OK for php-5.2.12.tar.bz2.
> ===>  Patching for php5-zip-5.2.12_2
> ===>  Applying FreeBSD patches for php5-zip-5.2.12_2
> 1 out of 1 hunks failed--saving rejects to config.m4.rej
> => Patch patch-config.m4 failed to apply cleanly.
> *** Error code 1
> 
> Stop in /usr/ports/archivers/php5-zip.
> 
> thanks for your help on this.
> doug

Hi Doug,

I just realized I should have specified 2010-04-01 as the checkout date,
just to be a bit safer.

php5-zip still exists in the ports tree, and a new patch file was
imported for the 5.3.2 upgrade.  For any directory that you check out
with the datestamp, make sure to do an "rm -rf" on it first to ensure
that you don't have a mix of old and new files.

After you do that, php5-zip should compile cleanly.

Regards,
Greg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvGZyUACgkQ0sRouByUApBAmQCgvNKipGH2svtd8e/XXQkJ21x6
8MMAoMiLfNMN/ypMAHgOWB2SaJk+OpWr
=viZR
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list