From owner-freebsd-perl@FreeBSD.ORG Fri Mar 21 19:13:30 2014 Return-Path: Delivered-To: freebsd-perl@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 EB6A1EC5 for ; Fri, 21 Mar 2014 19:13:29 +0000 (UTC) Received: from nm46-vm9.bullet.mail.bf1.yahoo.com (nm46-vm9.bullet.mail.bf1.yahoo.com [216.109.114.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8B8BD66A for ; Fri, 21 Mar 2014 19:13:29 +0000 (UTC) Received: from [98.139.212.149] by nm46.bullet.mail.bf1.yahoo.com with NNFMP; 21 Mar 2014 19:10:32 -0000 Received: from [98.139.211.202] by tm6.bullet.mail.bf1.yahoo.com with NNFMP; 21 Mar 2014 19:10:32 -0000 Received: from [127.0.0.1] by smtp211.mail.bf1.yahoo.com with NNFMP; 21 Mar 2014 19:10:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1395429032; bh=Mta5Wlp5U+3VhIMaL/ZaJYbZiH3M1pyB4uZEDpBt20Q=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=kL3CR3c3A0j8HPHMCY/F9RwoOziSmmqhYuRvXGAGUcpsJooHOEfqkusqDd7ErgohgPc3un/P0D2CAIvgSNB1xD6Id/fssPJQdU711gbwoqLIGDw60VNaqmHlozQvfi3zgL9zyhMvi38bJm0LYgOa8iC76AUcdvf8pvATy+Gycgw= X-Yahoo-Newman-Id: 4024.92709.bm@smtp211.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: j1_giCMVM1kM6Y2PUDBYVCdAqkV9nMcUdcDa2H3FOrC1RGa MJgScoLQX1UZqkOMVYYVIxBzyjCP6bru9ANKN37_Q9HiaivFRZf1Zs3TXfKo 4AHwvbqWeN1Gwe2ylL87z4Ojr5tz8DDuv4tfVRpLtN699adlr_ry7U7nAN_i fcAlUlDdjfI8gmUfncOGdcEBYiwau9l.i3kovwkhhKubOaPIM9m5d22M00_O L.mpUvTSoT7oSfv9W4CbaDrZL.QtpOFgbGK2VZD.xMq6dl.3Ugy6_oKLjH9s 2dVVlzjag30mT5uGckXNGZWeM3AvDBmyibqHoZ6LhP4.YUakl6vbRYLaFwN9 N4QM_fs5zh3Mctn9knd.ccsbNF_EiFMNIP4pZzT7X.V9vtALla1QdeYyt8EC D46opYftZF.ywrpEbTcu0HKA_WPAfChI3NwDtX3BZn_wpbO0KyLAW6dgpoS. HZMVEB6s1GkpKghhMiNeifpSABr_5.C1WhH7MUpHqf3IktkUTp3lvbICrdUx nGIWSSBBD5oOmAlM0M5IPoZGzE8EcXw5rbK5qiMkI9EFzcoeAD8F8uTw9FOc - X-Yahoo-SMTP: 6IZaPQyswBAeyzp3urHRlQfBxGxx4Js3YAIn X-Rocket-Received: from gateway.FBSDbouq.com (jeffreybouquet@66.92.43.99 with plain [98.139.211.125]) by smtp211.mail.bf1.yahoo.com with SMTP; 21 Mar 2014 12:10:31 -0700 PDT Message-ID: <532C8EAD.3050001@yahoo.com> Date: Fri, 21 Mar 2014 12:10:37 -0700 From: Jeffrey Bouquet User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-perl@freebsd.org Subject: perl-after-upgrade script [beta] idea Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2014 19:13:30 -0000 Recently tasked with the daunting 5.12 5.16 upgrade on several installs (v9) that had more than 800 or so p5-* ports, (as well as po4a, asciiquarium, ImageMagick, PDL, ...) and some that could not stage ( or had other requirements as p5-OpenGL needs X to compile in an xterm...) I found it easy to do twenty-at at time. A few days ago I obtained the relevant ports into a text file (the result of a long pipe-find-grep from /var/db/pkg ) and paged thru the text file (tmux top-bottom switch, cntl-b , o) in one pane, constructing a portmaster upgrade command in the other. (lots of typing). All the while, figuring it would be almost maybe as problematic in pkg2ng, but less tab-into-var-db-pkg for spelling corrections, as well as a more difficult reconstruction of the piped - grepped text file to begin with (New pkg commands to learn). Image my surprise upon the next install, adding a modifier (FS) to the awk position in a not-the-same-as-yesterday upgrade, when automagically the ports were constructed within the pipe, more or less a perl-after-upgrade, but twenty at a time ( head -20 , head -40, head -60 within the pipe, which at last count has eleven subsections, the last to signal ("yell") when done so the next twenty could be started. ) .... meaning that it would be useful to everyone IF pkg2ng were not soon to be the default. So my question here, is there someone who could reply to my email address off-list, who runs both v9 and v10, and could perfect the pipe into a perl-after-upgrade script under both legacy and imminent packaging systems, so that it could *maybe* be officially included ( maybe even for python upgrades, etc... it seems to be useful to include site_perl/5.12 in the grep, and a similar subtree exists for python...) making it easier to include instructions for in UPDATING for persons for whom the upgrade (more than several hundred python or ruby or perl ports...) for perl and/or the other ones... could run a script included with the respective ports rather than even typing in the command from instructions. OTOH if needed I could post the pipe to this list, if even so that several persons could put in in widely used freebsd hint sites or repost it, a bit polished, to the forums' script thread. J. Bouquet