From owner-freebsd-stable@FreeBSD.ORG Fri Sep 19 05:15:33 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 323BD16A4B3 for ; Fri, 19 Sep 2003 05:15:33 -0700 (PDT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id A644043F3F for ; Fri, 19 Sep 2003 05:15:31 -0700 (PDT) (envelope-from freebsd-stable@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1A0KAH-0007DK-00 for ; Fri, 19 Sep 2003 14:15:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A0KAG-0007DC-00 for ; Fri, 19 Sep 2003 14:15:08 +0200 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1A0KAa-0005l5-00 for ; Fri, 19 Sep 2003 14:15:28 +0200 From: Clemens Fischer Date: Fri, 19 Sep 2003 14:09:12 +0200 Lines: 32 Message-ID: <4qz9t1xd.fsf_-_@ID-23066.news.dfncis.de> References: <4.3.2.7.2.20030828133145.0313d860@localhost> <200308280638.AAA19221@lariat.org> <4.3.2.7.2.20030828202159.0306e7f0@localhost> <200308302249.03680.wes@softweyr.com> <20030915175635.GA38835@laptop.lambertfam.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (berkeley-unix) Cancel-Lock: sha1:utM44Ea9NW8b+fMRqrS/Z/kg3Rk= Sender: news Subject: Re: portupgrade with many old ports X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2003 12:15:33 -0000 * 2003-09-15 Scott Lambert: > On Sat, Sep 13, 2003 at 01:42:28PM +0200, Clemens Fischer wrote: >> >> i have some ports/packages in production from the time when >> packages didn't have ORIGIN lines in /var/db/pkg/*. what would be >> the best use (options) to run portupgrade(1) with? i get lots of >> warnings that scare me off. > > pkgdb -F > > Fixup all the ORIGINs and then use portupgrade normally. It will be > a pain but you only have to do it once per machine. i'm amazed how easy this turned out to be with the help of pkgdbs "guessing" feature, but i think the documentation needs additions. pkgdb(1) had not escaped me, but when trying it i just wasn't prepared and didn't know how to answer the questions. the docs should mention what information is needed: ports have an ORIGIN showing where they live in the ports hierarchy; the database records dependancies (which ports need which other ports); and samples of every kind of question it may ask and what info pkgdb(1) needs to have them answered in a sensible way. it helps to know what can happen to make it fail on trying to guess correct values: (i) ports may not exist anymore, but other ports may still depend on what's installed, (ii) ports may provide facilities that no "modern" port seems to be requiring. clemens