Date: Wed, 14 Apr 2010 17:08:59 -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: <4BC62EEB.7030806@FreeBSD.org> In-Reply-To: <x2s320306641004141333l29fbee55x438fef30ff56de44@mail.gmail.com> References: <x2s320306641004141333l29fbee55x438fef30ff56de44@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 doug schmidt wrote: > After upgrading to php 5.3.2, we have a few in house applications that > broke and our developers will not be able to work this out for at > least another week or so, so I need to downgrade back to 5.2.12 in the > mean time. > > I've used portdowngrade lang/php5 and lang/php5-extensions, during > make install of php5-extensions it fails on php5-filter > > [...] > ===> Verifying install for /usr/local/lib/php/20060613/filter.so in > /usr/ports/security/php5-filter > ===> Building for php5-filter-5.2.12_2 > /bin/sh /usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/libtool > --mode=compile cc -I. > -I/usr/ports/security/php5-filter/work/php-5.2.12/ext/filter > -DPHP_ATOM_INC -I/usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/include > -I/usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/main > -I/usr/ports/security/php5-filter/work/php-5.2.12/ext/filter > -I/usr/local/include/php -I/usr/local/include/php/main > -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend > -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib > -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c > /usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/logical_filters.c > -o logical_filters.lo > cc -I. -I/usr/ports/security/php5-filter/work/php-5.2.12/ext/filter > -DPHP_ATOM_INC -I/usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/include > -I/usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/main > -I/usr/ports/security/php5-filter/work/php-5.2.12/ext/filter > -I/usr/local/include/php -I/usr/local/include/php/main > -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend > -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib > -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c > /usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/logical_filters.c > -fPIC -DPIC -o .libs/logical_filters.o > /usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/logical_filters.c:25:31: > error: ext/pcre/php_pcre.h: No such file or directory > /usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/logical_filters.c: > In function 'php_filter_validate_regexp': > /usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/logical_filters.c:412: > error: 'pcre' undeclared (first use in this function) > /usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/logical_filters.c:412: > error: (Each undeclared identifier is reported only once > /usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/logical_filters.c:412: > error: for each function it appears in.) > /usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/logical_filters.c:412: > error: 're' undeclared (first use in this function) > /usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/logical_filters.c:413: > error: 'pcre_extra' undeclared (first use in this function) > /usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/logical_filters.c: > In function 'php_filter_validate_email': > /usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/logical_filters.c:477: > error: 'pcre' undeclared (first use in this function) > /usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/logical_filters.c:477: > error: 're' undeclared (first use in this function) > /usr/ports/security/php5-filter/work/php-5.2.12/ext/filter/logical_filters.c:478: > error: 'pcre_extra' undeclared (first use in this function) > *** Error code 1 > 1 error > *** Error code 1 > > Stop in /usr/ports/security/php5-filter. > *** Error code 1 > > Stop in /usr/ports/lang/php5-extensions. > *** Error code 1 > > Stop in /usr/ports/lang/php5-extensions. > > Since some ports have been removed as they are bundled with 5.3.2, how > can I get this downgraded properly. (devel/php5-pcre is no longer > in the ports tree). > 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. I checked the source code to portdowngrade to see if it could restore a removed port, but didn't see a way to do that. I'm rusty in C/C++, but maybe someone can prepare a patch to handle that case, too. Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLxi7r0sRouByUApARAhGHAKChl5GLL7kTO7nrr5uxhb6zyM4fHwCfdcRe aj3NPo8i1umuTpt7r2jrs/E= =G9ph -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BC62EEB.7030806>