From owner-freebsd-questions@FreeBSD.ORG Fri Dec 31 23:35:33 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE33E16A4CE for ; Fri, 31 Dec 2004 23:35:33 +0000 (GMT) Received: from out001.verizon.net (out001pub.verizon.net [206.46.170.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32B5F43D1D for ; Fri, 31 Dec 2004 23:35:33 +0000 (GMT) (envelope-from reso3w83@verizon.net) Received: from ringworm.mechee.com ([4.26.84.7]) by out001.verizon.net ESMTP <20041231233532.FEHQ28025.out001.verizon.net@ringworm.mechee.com>; Fri, 31 Dec 2004 17:35:32 -0600 Received: by ringworm.mechee.com (Postfix, from userid 1001) id A72982CE774; Fri, 31 Dec 2004 15:32:31 -0800 (PST) From: "Michael C. Shultz" To: nbco@screaming.net Date: Fri, 31 Dec 2004 15:32:30 -0800 User-Agent: KMail/1.7.2 References: <200412311749.52424.nbco@screaming.net> In-Reply-To: <200412311749.52424.nbco@screaming.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200412311532.31108.reso3w83@verizon.net> X-Authentication-Info: Submitted using SMTP AUTH at out001.verizon.net from [4.26.84.7] at Fri, 31 Dec 2004 17:35:32 -0600 cc: FreeBSD-questions@freebsd.org Subject: Re: re portmanager, how to prevent upgrade of held ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2004 23:35:33 -0000 On Friday 31 December 2004 09:49 am, nbco wrote: > Hi list, > > I am trying out portmanager-0.2.2, on a 5.3-RELEASE box. > > I have openoffice-1.1.3.20040810 installed. I don't want to upgrade > openoffice at this time, as I don't have the space for a full compile > and will wait for a new package. > > I have set openoffice to be held in pkgtools.conf in /usr/local/etc. > Portupgrade honours this setting. Portmanager doesn't, therefore > every time I attempt to run portmanager it tries to compile > openoffice-1.1.4.20041101_1 > > I have looked at portmanager and cannot find a way to prevent it > updating certain ports, and it doesn't honour the hold_pkgs in > pkgtools.conf. > > Any ideas as to how to make portmanager ignore held ports? > > This problem makes portmanager unusable for me, as it updates > openoffice first, so it never actually gets to the smaller out of > date ports. Portmanager has no way to ignore ports that need updating, but others have also requested this feature so I will implement it in version 0.2.3. It may be a few weeks before it is ready because I am taking advantage of the port freeze and making fairly extensive changes. There is one thing you can do in the mean time as a work around if you still want to use portmanager: If you were to move /var/db/pkg/openoffice-1.1.4.20041101_1 (assuming that is the version you have installed) directory to someplace safe, like in your home directory then portmanager nor any part of the ports system would know openoffice-1.1.4.20041101_1 is installed. This will only work for a port that is not a dependency for another port so only if no other ports depend on openoffice-1.1.4.20041101_1 will this work. When you want to upgrade it then move the directory back to /var/db/pkg. You can also create a ports/local/editors/openoffice-1.1which is a bit more involved and way more elegant, I will be happy to explain only if you are truly interested. -Mike