From owner-freebsd-questions@FreeBSD.ORG Wed Apr 14 21:09:16 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECCBD106564A for ; Wed, 14 Apr 2010 21:09:16 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id C96768FC08 for ; Wed, 14 Apr 2010 21:09:16 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O29pe-0009fl-2B; Wed, 14 Apr 2010 17:09:15 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id D8B3A3E66606; Wed, 14 Apr 2010 17:09:09 -0400 (EDT) Message-ID: <4BC62EEB.7030806@FreeBSD.org> Date: Wed, 14 Apr 2010 17:08:59 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: doug schmidt References: In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.3 (/) Cc: freebsd-questions@freebsd.org Subject: Re: downgrade php5 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2010 21:09:17 -0000 -----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 / 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-----