From owner-freebsd-questions@FreeBSD.ORG Fri Apr 16 18:45: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 268901065670 for ; Fri, 16 Apr 2010 18:45: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 029818FC15 for ; Fri, 16 Apr 2010 18:45:15 +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 1O2qXR-0001y3-MT for freebsd-questions@freebsd.org; Fri, 16 Apr 2010 14:45:14 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 65CD93E7E4DE for ; Fri, 16 Apr 2010 14:45:13 -0400 (EDT) Message-ID: <4BC8B037.3040604@FreeBSD.org> Date: Fri, 16 Apr 2010 14:45:11 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: FreeBSD Questions 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.1 (/) Subject: Re: freeze PHP5 at specific version 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: Fri, 16 Apr 2010 18:45:16 -0000 -----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-----