From owner-freebsd-ports@FreeBSD.ORG Tue Feb 21 17:42:35 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F0C416A420 for ; Tue, 21 Feb 2006 17:42:35 +0000 (GMT) (envelope-from dave-lists-freebsd-ports@weller-fahy.com) Received: from outbound.mailhop.org (outbound.mailhop.org [63.208.196.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EAF443D48 for ; Tue, 21 Feb 2006 17:42:34 +0000 (GMT) (envelope-from dave-lists-freebsd-ports@weller-fahy.com) Received: from p508a0030.dip0.t-ipconnect.de ([80.138.0.48] helo=weller-fahy.com) by outbound.mailhop.org with esmtpa (Exim 4.51) id 1FBbWz-000GrZ-76 for freebsd-ports@freebsd.org; Tue, 21 Feb 2006 12:42:33 -0500 Received: (qmail 24959 invoked by uid 1001); 21 Feb 2006 17:42:31 -0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 80.138.0.48 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: sinecure Date: Tue, 21 Feb 2006 18:42:31 +0100 From: "David J. Weller-Fahy" To: freebsd-ports@freebsd.org Message-ID: <20060221174207.GB33617@weller-fahy.com> Mail-Followup-To: freebsd-ports@freebsd.org References: <43BCF31F.8050900@FreeBSD.org> <20060214213514.GB20841@leia.lambermont.dyndns.org> <20060219143913.GA868@weller-fahy.com> <20060219145045.GB868@weller-fahy.com> <20060220204242.GD31008@leia.lambermont.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060220204242.GD31008@leia.lambermont.dyndns.org> X-URL-Me: http://weller-fahy.com X-Accept-Language: en X-Location: Germany, =?iso-8859-1?Q?H=F6ngen=2C_Pfarre?= =?iso-8859-1?Q?r-Meising-Stra=DFe?= User-Agent: Mutt/1.5.11 Subject: Re: portmaster [was: New /bin/sh based script to manage ports] 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: Tue, 21 Feb 2006 17:42:35 -0000 * Hans Lambermont [2006-02-20 21:43 +0100]: > > David J. Weller-Fahy wrote: > > > Hrm... would something like the attached script be sufficient? it > > > outputs a tree-like view of what will be updated. It's not very > > > complex, and doesn't take into account things like removing ports > > > already ouput from any future output, but it works for me. > > Nice work ! The output grows very quicky with the missing hash-like > filter. Here's a snippet of the well over 1000 lines of output I get: > > [snip output] Thanks! Yes, it does grow fairly rapidly. > Is there a way to implement a perl-like hash filter in sh land to > clean this up ? Hrmmm... IIUC then changing the output from: #v+ >ctorrent-1.3.4_1::ctorrent-1.3.4_2 >ca-roots-1.1::ca-roots-1.2 >ldconfig_compat-1.0_5::ldconfig_compat-1.0_6 >perl-5.8.7_2::perl-5.8.8 >p5-Net-DNS-0.55::p5-Net-DNS-0.56 :>perl-5.8.7_2::perl-5.8.8 ::>perl-5.8.7_2::perl-5.8.8 ::>perl-5.8.7_2::perl-5.8.8 :::>perl-5.8.7_2::perl-5.8.8 ::>perl-5.8.7_2::perl-5.8.8 >samba-3.0.21a,1::samba-3.0.21b,1 ::>perl-5.8.7_2::perl-5.8.8 :::>perl-5.8.7_2::perl-5.8.8 ::::>perl-5.8.7_2::perl-5.8.8 :::>perl-5.8.7_2::perl-5.8.8 :>perl-5.8.7_2::perl-5.8.8 ::>perl-5.8.7_2::perl-5.8.8 :::>perl-5.8.7_2::perl-5.8.8 ::>perl-5.8.7_2::perl-5.8.8 >w3m-0.5.1_3::w3m-0.5.1_4 #v- To output like: #v+ >ctorrent-1.3.4_1::ctorrent-1.3.4_2 >ca-roots-1.1::ca-roots-1.2 >ldconfig_compat-1.0_5::ldconfig_compat-1.0_6 >perl-5.8.7_2::perl-5.8.8 >p5-Net-DNS-0.55::p5-Net-DNS-0.56 >samba-3.0.21a,1::samba-3.0.21b,1 >w3m-0.5.1_3::w3m-0.5.1_4 #v- Would satisfy the above requirement. In other words, any port that has already been shown would not be shown again. > As a next step to such a filter I would suggest to reverse the > dependency output, so that the build order gets shown. Ok, so instead of printing: #v+ >samba-3.0.21a,1::samba-3.0.21b,1 >w3m-0.5.1_3::w3m-0.5.1_4 :>boehm-gc-6.6_1::boehm-gc-6.6_2 ::>libtool-1.3.5_1::libtool-1.3.5_2 #v- The output should be (ignoring samba dependencies): #v+ >samba-3.0.21a,1::samba-3.0.21b,1 ::>libtool-1.3.5_1::libtool-1.3.5_2 :>boehm-gc-6.6_1::boehm-gc-6.6_2 >w3m-0.5.1_3::w3m-0.5.1_4 #v- To accurately reflect the build order, correct? > What do you think of this ? It makes sense, assuming that I understand your intent. Let me know if I do, and if not, then we'll try to reach understanding. ;] Regards, -- dave [ please don't CC me ]