From owner-freebsd-ports@FreeBSD.ORG Tue Feb 4 07:06:10 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 55721522 for ; Tue, 4 Feb 2014 07:06:10 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D32551A29 for ; Tue, 4 Feb 2014 07:06:09 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.8/8.14.8) with ESMTP id s1475wLf055813 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 4 Feb 2014 07:06:04 GMT (envelope-from matthew@FreeBSD.org) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk s1475wLf055813 Authentication-Results: smtp.infracaninophile.co.uk/s1475wLf055813; dkim=none reason="no signature"; dkim-adsp=none Message-ID: <52F0914D.9070507@FreeBSD.org> Date: Tue, 04 Feb 2014 07:05:49 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Jeffrey Bouquet Subject: Re: [FreeBSD-Ports-Announce] Time to bid farewell to the old pkg_ tools References: <201402032124.s13LOS4r042824@fire.js.berklix.net> <52F01A75.7050409@FreeBSD.org> <52F05D20.7090803@yahoo.com> In-Reply-To: <52F05D20.7090803@yahoo.com> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="07HNarqRORig20UdpUXxOXiWpbK0TsrhR" X-Virus-Scanned: clamav-milter 0.98 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DCC_CHECK autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Feb 2014 07:06:10 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --07HNarqRORig20UdpUXxOXiWpbK0TsrhR Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 04/02/2014 03:23, Jeffrey Bouquet wrote: > /# find /var/db/pkg -type d -name "p5*" | xargs -J % find -type f -name= > "+CONTENTS" -exec grep -H "5.12" {} \; | grep pm | gtr -s \/ "\n" | gre= p > p5 | sort | uniq | xargs -J % portmaster -d -B -P -i -g % && yell || ye= ll >=20 > That pipe, corrected ( the working version includes an incrementing | > head -NN | thru hundreds of p5 upgrades, 15-25 at a time, > so easy completion of the upgrade with > only a repeat with the up arrow and a minor edit ,) handily upgraded a= > /perl5/ subdirectory to > the default on several installs. Which is a remarkably complicated equivalent to: pkg set -o perl5.12:perl5.16 pkg install -fR perl5.16 I'm sure though if you really must have fun with pipelines that you could start with: pkg query %ro perl5 but working out how to divide that into chunks and feed into portmaster is up to you. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --07HNarqRORig20UdpUXxOXiWpbK0TsrhR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJS8JFWXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT0BgP/3yI6XuIJZnhSZS0tujgyOac RmaPVLlgYl5U4I4dDEc+woT4ci1+YmqHszX6d77ScSHLd+eP1GsVkT4qYlHsSddI RpndcftQ8eDaItrHYoV+KdYw/QXVs/6En89bdXcWV/31TX7fONBXPJDd4X3xh7cX WcAhV7ZYI6z7KKLeIYy63VQMMtbHTUOXUogBYpa7hFwDk716n/2QFLXCXfjq8P5B r4iK3h+tu8/HcCACo1WhKflw/Vw/7yzHB94swVsXmhoI6BWHDEdM905qFKfu2E4I ydR8UcMtQ5dJsJmaabB9Fn+hgmBuDP0SiUtD8WGHTcBH/wLYJJx2BuDuM5DNRTyB PvZnp0hyn3K3GYg5AsU40t9WPgBBH+kKiJcICIGCRnShw9SpdbQ4qBAMsFgTFItl CHLYXS/B37HyKQTiydfPyhzxSRSMckHwfEX3YJi6V+3t3kWsy0OxVUYgykdhQnpo 8b6ochEe2zK7/UAveTbIKvTdqW1tHFy/4781kDUEys6sO7zReAuTazOnMsULCB7C Ebjcooc5iSYZDVJXskCQ4OKmDk6MTFjNI7Ua0wMmp3xJh3yxVzVZwF5EWvQNjC7k lviE2m7IjNP+dWPV5glbovhfssG9pjsro93XHfjo7Hee6rNYeSrU+rr8OTvg+mxK vuYamzXlpYQi1G0rxQEp =VaAr -----END PGP SIGNATURE----- --07HNarqRORig20UdpUXxOXiWpbK0TsrhR--