From owner-freebsd-ports@FreeBSD.ORG Sat Sep 15 00:59:07 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED775106564A for ; Sat, 15 Sep 2012 00:59:06 +0000 (UTC) (envelope-from bryan@shatow.net) Received: from secure.xzibition.com (secure.xzibition.com [173.160.118.92]) by mx1.freebsd.org (Postfix) with ESMTP id 7AAC88FC0C for ; Sat, 15 Sep 2012 00:59:06 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sweb; b=iJzv43 0Ny1zTLRc3isqJ1nDREp2gw82dSElBFl2T9aOdqVr7JA+l6NlqWmW/kxq4+DOb8R DpgwYHnZy+xJj9OkxbcJynJBTjNs/HG78Ao4P+C6/eYuIEsHbyssrNWl7o4ecnBW IID1uxgMZDnjNp6PHDOuE1t835vMpPlhv8J1w= DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sweb; bh=3gVbqghgiOIB akgUjBwv8lWqAMlaDwKPVhBqTxJb4eM=; b=PzN1vc3SHZMT+BAqnuS5qCaZ3xg+ 05RGRhiXKcHYDGC12q3JXLip4xFD8E6vWEpZs5Wl8axFK4MLBWxl2bdqzacCmsJi XAuSGPIT6uQEBl3tHV+/gSa0qYpjGa7IHIY1uOkts+ixhP6ThGqBQhjofr0ItrU0 o5Z5MRGaxeo9jdk= Received: (qmail 91292 invoked from network); 14 Sep 2012 19:58:58 -0500 Received: from unknown (HELO ?10.10.0.115?) (bryan@shatow.net@10.10.0.115) by sweb.xzibition.com with ESMTPA; 14 Sep 2012 19:58:58 -0500 Message-ID: <5053D2A6.2030405@shatow.net> Date: Fri, 14 Sep 2012 19:58:14 -0500 From: Bryan Drewery User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: David Wolfskill References: <20120914223800.GG3357@albert.catwhisker.org> In-Reply-To: <20120914223800.GG3357@albert.catwhisker.org> X-Enigmail-Version: 1.4.4 OpenPGP: id=3C9B0CF9; url=http://www.shatow.net/bryan/bryan.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Need a reality check: "portmaster --list-origins" misses entries? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Sep 2012 00:59:07 -0000 On 9/14/2012 5:38 PM, David Wolfskill wrote: > I am tentatively planning on rebuilding the installed ports on my laptop > under stable/9 (vs. their current stable/8) on Sunday, to take advantage > of several hours of travel time expected. > > In preparation for this, I was reviewing the steps listed at the end of > portmaster(8) "Using portmaster to do a complete reinstallation of all > your ports" (which I have used to good effect in the past -- e.g., in > the migration from 7-STABLE to 8-STABLE). > > As a reality check, I created the output of "portmaster --list-origins", > with the intent to re-order the entries (and remove several that were > brought in merely as dependencies -- and that I'd happily do without, > were it feasible). > > I was thus surprised to fail to find "subversion" listed; a further > reality check showed that the output was (only) 181 lines long; compare: > > d134(9.1-P)[8] portmaster --list-origins | wc -l > 181 IIUC this is the list of all ports that are not required by another port. So 'subversion' is being required by another port. Assuming you also copy your /var/db/options over to the new machine, and install every port listed in '--list-origins', you should end up with the same 796 ports installed as those 181 will install all of the other ports. > d134(9.1-P)[9] ls /var/db/pkg/ | wc -l > 796 > d134(9.1-P)[10] find /var/db/pkg -type f -name +CONTENTS -print0 | xargs -0 grep -hw ORIGIN | sed -e 's/^@comment ORIGIN://' | wc -l > 796 > d134(9.1-P)[11] > > The machine in question was running: > > FreeBSD g1-227.catwhisker.org 8.3-STABLE FreeBSD 8.3-STABLE #453 240462M: Thu Sep 13 04:25:26 PDT 2012 root@g1-227.catwhisker.org:/common/S1/obj/usr/src/sys/CANARY i386 > > when the ports were last updated, and is presently running: > > FreeBSD g1-227.catwhisker.org 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #245 240493M: Fri Sep 14 05:13:23 PDT 2012 root@g1-227.catwhisker.org:/usr/obj/usr/src/sys/CANARY i386 > > > My ports tree is at r304266; the installed ports are all up-to-date > with respect to that. > > Aam I doing something obviously silly or stupid? > > Thanks.... > > Peace, > david > -- Regards, Bryan Drewery bdrewery@freenode/EFNet