From owner-freebsd-ports@FreeBSD.ORG Tue Feb 4 09:25:02 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 EBC58EA7 for ; Tue, 4 Feb 2014 09:25:02 +0000 (UTC) Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ACE441608 for ; Tue, 4 Feb 2014 09:25:02 +0000 (UTC) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id 5E3D7BDC3E; Tue, 4 Feb 2014 10:25:01 +0100 (CET) Received: from atuin.in.mat.cc (atuin.in.mat.cc [79.143.241.205]) by prod2.absolight.net (Postfix) with ESMTPA id 47CE1BDC24; Tue, 4 Feb 2014 10:25:01 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by atuin.in.mat.cc (Postfix) with ESMTP id 8060ECDAAD82; Tue, 4 Feb 2014 10:25:00 +0100 (CET) Date: Tue, 04 Feb 2014 10:24:59 +0100 From: Mathieu Arnold To: Jeffrey Bouquet Subject: Re: [FreeBSD-Ports-Announce] Time to bid farewell to the old pkg_ tools Message-ID: <73E02EB58968DBA833719619@atuin.in.mat.cc> In-Reply-To: <52F05D20.7090803@yahoo.com> References: <201402032124.s13LOS4r042824@fire.js.berklix.net> <52F01A75.7050409@FreeBSD.org> <52F05D20.7090803@yahoo.com> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 09:25:03 -0000 +--On 3 f=C3=A9vrier 2014 19:23:12 -0800 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" | grep | p5 | sort | uniq | xargs -J % portmaster -d -B -P -i -g % && yell || yell |=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. So, you want a command going to upgrade all p5- ports that install files that contain 5.12 in their path. I'm not sure what it's supposed to be doing in the end, but it certainly won't help you going from one perl version to the other, you're missing every port that installs perl modules and is not named p5 something (like, say, net-snmp) and every port that links with, say, libperl.so (like, say, vim) If you want to do that with pkg, and do it that way, you can have a look at what : pkg query %ro lang/perl5.12 and feed that to portmaster. But the easiest way to do it would be to do, say : portmaster -o lang/perl5.16 lang/perl5.12 portmaster -r perl5- Now, I would do : pkg set -o perl5.12:perl5.16 pkg upgrade (possibly with -f depending on what it says without it) But that's just me :-) --=20 Mathieu Arnold