freeze PHP5 at specific version
Recently I discovered that PHP 5.3.x broke my Viart installation. It turned out that ZendOptimizer 3.3.0.a cannot function with PHP 5.3.x. Thus I was forced to downgrade down to PHP5-5.2.12_2. Question: How can I force portupgrade not to upgrade to PHP5-5.3.x? I've tried googling and researching ports management manpages to no avail. I noticed that there's a line for Perl in /etc/make.conf that freezes Perl at a specific version (i.e. PERL_VERSION=5.10.1) but I do not see anything similar to that for PHP5. I must be missing something! I do not know the appropriate search keyword for freezing a port at a specific version. ~Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: freeze PHP5 at specific version
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Doug Sampson wrote: Recently I discovered that PHP 5.3.x broke my Viart installation. It turned out that ZendOptimizer 3.3.0.a cannot function with PHP 5.3.x. Thus I was forced to downgrade down to PHP5-5.2.12_2. Question: How can I force portupgrade not to upgrade to PHP5-5.3.x? I've tried googling and researching ports management manpages to no avail. I noticed that there's a line for Perl in /etc/make.conf that freezes Perl at a specific version (i.e. PERL_VERSION=5.10.1) but I do not see anything similar to that for PHP5. I must be missing something! I do not know the appropriate search keyword for freezing a port at a specific version. ~Doug Hi Doug, Have a look at this page: http://myfreebsd.homeunix.net/hints_n_kinks/ports-pkgtools.html. If you add the php port names to the HOLD_PKGS array, that prevents portupgrade from touching them. Hope that helps, 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/ iD8DBQFLyKGx0sRouByUApARAn4FAJ96DDcZu/3tcACFePe1BBLitmo4oACgvjpY fT3m2G7AvkAta/PbYmDpOO8= =7Cho -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: freeze PHP5 at specific version
Have a look at this page: http://myfreebsd.homeunix.net/hints_n_kinks/ports-pkgtools.html. If you add the php port names to the HOLD_PKGS array, that prevents portupgrade from touching them. Bingo! That is what I'm looking for! Say, do I need to list each PHP5 extension in the HOLD_PKG section? For example, I have the following PHP5 extensions on top of the lang/php5 as follows: corvus-root@/usr/ports/databases/php5-sqlite: portversion -v | g php5 php5-5.2.12_2 needs updating (port has 5.3.2) php5-bcmath-5.2.12_2 needs updating (port has 5.3.2) php5-bz2-5.2.12_2 needs updating (port has 5.3.2) php5-ctype-5.2.12_2 needs updating (port has 5.3.2) php5-curl-5.2.12_2needs updating (port has 5.3.2) php5-dba-5.2.12_2 needs updating (port has 5.3.2) php5-dom-5.2.12_2 needs updating (port has 5.3.2) php5-exif-5.2.12_2needs updating (port has 5.3.2) php5-filter-5.2.12_2 needs updating (port has 5.3.2) php5-ftp-5.2.12_2 needs updating (port has 5.3.2) php5-gd-5.2.12_2 needs updating (port has 5.3.2) php5-gettext-5.2.12_2 needs updating (port has 5.3.2) php5-hash-5.2.12_2needs updating (port has 5.3.2) php5-iconv-5.2.12_2 needs updating (port has 5.3.2) php5-json-5.2.12_2needs updating (port has 5.3.2) php5-mbstring-5.2.12_2needs updating (port has 5.3.2) php5-mcrypt-5.2.12_2 needs updating (port has 5.3.2) php5-mhash-5.2.12_2 = up-to-date with port php5-ncurses-5.2.12_2 = up-to-date with port php5-openssl-5.2.12_2 needs updating (port has 5.3.2) php5-pcre-5.2.12_2 = up-to-date with port php5-pdo-5.2.12_2 needs updating (port has 5.3.2) php5-pdo_sqlite-5.2.12_2 needs updating (port has 5.3.2) php5-pgsql-5.2.12_2 needs updating (port has 5.3.2) php5-posix-5.2.12_2 needs updating (port has 5.3.2) php5-pspell-5.2.12_2 needs updating (port has 5.3.2) php5-readline-5.2.12_2needs updating (port has 5.3.2) php5-session-5.2.12_2 needs updating (port has 5.3.2) php5-simplexml-5.2.12_2 needs updating (port has 5.3.2) php5-soap-5.2.12_2needs updating (port has 5.3.2) php5-sockets-5.2.12_2 needs updating (port has 5.3.2) php5-spl-5.2.12_2 = up-to-date with port php5-sqlite-5.2.12_2 needs updating (port has 5.3.2) php5-tidy-5.2.12_2needs updating (port has 5.3.2) php5-tokenizer-5.2.12_2 needs updating (port has 5.3.2) php5-xml-5.2.12_2 needs updating (port has 5.3.2) php5-xmlreader-5.2.12_2 needs updating (port has 5.3.2) php5-xmlrpc-5.2.12_2 needs updating (port has 5.3.2) php5-xmlwriter-5.2.12_2 needs updating (port has 5.3.2) php5-xsl-5.2.12_2 needs updating (port has 5.3.2) php5-zip-5.2.12_2 needs updating (port has 5.3.2) php5-zlib-5.2.12_2needs updating (port has 5.3.2) corvus-root@/usr/ports/databases/php5-sqlite: Is pkgtools a port that I need to install? Another question: I also use portmaster and portmanager. Does these two tools make use of the /usr/local/etc/pkgtools.conf file? ~Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: freeze PHP5 at specific version
On Fri, 16 Apr 2010 13:43:13 -0400, Greg Larkin glar...@freebsd.org articulated: Have a look at this page: http://myfreebsd.homeunix.net/hints_n_kinks/ports-pkgtools.html. If you add the php port names to the HOLD_PKGS array, that prevents portupgrade from touching them. WOT http://www.mywot.com/en/scorecard/myfreebsd.homeunix.net gives a warning when accessing that site. I assume it is harmless, although I wonder why it is doing it. -- Jerry freebsd.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ Self Test for Paranoia: You know you have it when you can't think of anything that's your own fault. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: freeze PHP5 at specific version
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Doug Sampson wrote: Have a look at this page: http://myfreebsd.homeunix.net/hints_n_kinks/ports-pkgtools.html. If you add the php port names to the HOLD_PKGS array, that prevents portupgrade from touching them. Bingo! That is what I'm looking for! Say, do I need to list each PHP5 extension in the HOLD_PKG section? For example, I have the following PHP5 extensions on top of the lang/php5 as follows: corvus-root@/usr/ports/databases/php5-sqlite: portversion -v | g php5 php5-5.2.12_2 needs updating (port has 5.3.2) [...] corvus-root@/usr/ports/databases/php5-sqlite: Is pkgtools a port that I need to install? Another question: I also use portmaster and portmanager. Does these two tools make use of the /usr/local/etc/pkgtools.conf file? ~Doug Hi Doug, This should work, but please test it to make sure: HOLD_PKGS = [ 'bsdpan-*', 'php5*', ] /usr/local/etc/pkgtools.conf is installed as part of the portupgrade port (ports-mgmt/portupgrade or ports-mgmt/portupgrade-devel). portmaster has a -x option where you can specify a glob, like so: portmaster -x 'php5*' -x 'foobar*' ... I have not tested that either, so experimentat on some throwaway port first. For portmanager, it reads pkgtools.conf for setting port build options, but it looks to me like the pkgtools-to-portmanager.rb script converts the contents of HOLD_PKGS to a form that portmanager understands. Cheers, 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/ iD8DBQFLyLA30sRouByUApARApTqAJ9o14/4fv1z5IVYzeKh8jIiGOblIACdHcD1 sdbAUZ4Cz+Nf8yXeW+O2FmM= =sHIe -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org