Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2010 21:08:53 -0400
From:      Greg Larkin <glarkin@FreeBSD.org>
To:        doug schmidt <douglas.j.schmidt@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: downgrade php5
Message-ID:  <4BC66725.4020709@FreeBSD.org>
In-Reply-To: <i2i320306641004141637hcaee0f29r952ccfbd6e80bc0c@mail.gmail.com>
References:  <x2s320306641004141333l29fbee55x438fef30ff56de44@mail.gmail.com>	 <4BC62EEB.7030806@FreeBSD.org>	 <r2x320306641004141439r40938326r98b15c2efbb746d1@mail.gmail.com>	 <4BC6461B.2060005@FreeBSD.org> <i2i320306641004141637hcaee0f29r952ccfbd6e80bc0c@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

doug schmidt wrote:
> On Wed, Apr 14, 2010 at 6:47 PM, Greg Larkin <glarkin@freebsd.org> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> doug schmidt wrote:
>>> On Wed, Apr 14, 2010 at 5:08 PM, Greg Larkin <glarkin@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@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@test /usr/ports]# cvs -d
>>> :ext:anoncvs@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@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@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@test /usr/ports/archivers]# cvs -d
> :ext:anoncvs@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@test /usr/ports/archivers]# cd php5-zip
> [root@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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BC66725.4020709>