From owner-freebsd-ports@freebsd.org Sat Sep 5 16:29:08 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E71559CAE9A for ; Sat, 5 Sep 2015 16:29:08 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B4B06ECE for ; Sat, 5 Sep 2015 16:29:08 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.15.2/8.15.2) with ESMTP id t85GT1Q2082702 for ; Sat, 5 Sep 2015 09:29:01 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.15.2/8.15.2/Submit) id t85GT1nj082701 for freebsd-ports@freebsd.org; Sat, 5 Sep 2015 09:29:01 -0700 (PDT) (envelope-from david) Date: Sat, 5 Sep 2015 09:29:00 -0700 From: David Wolfskill To: freebsd-ports@freebsd.org Subject: Migrating from perl5-5.20 to perl5.22 using custom packages? Message-ID: <20150905162900.GR17650@albert.catwhisker.org> Reply-To: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BoDqKHKmWrz+Gi55" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Sep 2015 16:29:09 -0000 --BoDqKHKmWrz+Gi55 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable For my "development machines (laptop & build machine), I track stable/10 & head daily, and update ports (also daily) under stable/10 using portmaster. There's been a bit of turbulence now and then, but overall, the process generally works. In particular, ports/UPDATING has fairly explicit instructions for performing migrations of this nature -- e.g., extrapolating a bit from the instructions for portmaster users in the 20150513 entry: portmaster -o lang/perl5.22 lang/perl5.20 portmaster -f -D `pkg shlib -R libperl.so.5.20|tail +2` which worked (as shown on my laptop): g1-252(10.2-S)[1] pkg info -o perl\* perl5.22-5.22.0_2 lang/perl5.22 g1-252(10.2-S)[2]=20 Up to a few weeks ago, I had also been using portmaster on my "production" machines. My primary incentive for migrating to using "pkg upgrade" on these systems was their conversion from i386 to amd64 (and the daunting prospect of rebuilding all of those ports -- and having the machines' services disabled during that period. (I documented that experience in .) I have since continued to use poudriere on my build machine on a weekly cycle, then updating FreeBSD base, then the installed packages on the production machines every Sunday since -- which process has been working rather well. Now, however, after having updated my development machines to use Perl5.22, I'd like to do the same for the production machines. The above-referenced ports/UPDATING entry merely states: The default Perl version has been switched to Perl 5.20. If you are using binary packages to upgrade your system, you do not have anything to do, p= kg upgrade will do the right thing.... Fortunately, I have a test machine that is set up like the producton one that has the bulk of the ports/packages installed, so I tried an upgrade cycle on it. The update of FreeBSD from: FreeBSD pogo.catwhisker.org 10.2-BETA1 FreeBSD 10.2-BETA1 #417 r285346M/28= 5355:1001519: Fri Jul 10 04:29:33 PDT 2015 root@freebeast.catwhisker.or= g:/common/S2/obj/usr/src/sys/ALBERT amd64 to FreeBSD pogo.catwhisker.org 10.2-STABLE FreeBSD 10.2-STABLE #465 r287480M/= 287482:1002500: Sat Sep 5 04:17:26 PDT 2015 root@freebeast.catwhisker.= org:/common/S1/obj/usr/src/sys/ALBERT amd64 was (quite) uneventful -- it Just Worked. After the successful reboot, I then stopped services (that relied on installed ports/packages) on the machine and performed "pkg upgrade". While it claimed success and exited with an exit status of 0, it says that what it did with respect to Perl was: perl5: 5.20.2_5 -> 5.20.2_6 which isn't quite what I had in mind. In checking the package repository, I see: freebeast(10.2-S)[9] (cd All; ls -lT perl*) -rw-r--r-- 5 nobody wheel 13746168 Aug 16 04:33:03 2015 perl5-5.20.2_6.t= xz -rw-r--r-- 5 nobody wheel 13935800 Jul 4 14:53:37 2015 perl5.18-5.18.4_= 15.txz -rw-r--r-- 1 nobody wheel 13958800 Sep 5 05:53:23 2015 perl5.22-5.22.0_= 2.txz freebeast(10.2-S)[10]=20 I suppose a bit of housecleaning is in order... but is the existence of the the perl5-5.20.2_6.txz the reason/excuse for not picking up perl5.22-5.22.0_2.txz? What do I need to do to switch to perl5.22 on my production machines? Thanks! Peace, david --=20 David H. Wolfskill david@catwhisker.org Those who would murder in the name of God or prophet are blasphemous coward= s. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --BoDqKHKmWrz+Gi55 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJV6xhMXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RThEMDY4QTIxMjc1MDZFRDIzODYzRTc4 QTY3RjlDOERFRjQxOTNCAAoJEIpn+cje9Bk7MrAP/16MAorp1rNto5qfeEBYyMcO g2KUY+8aVG6Dq736Y0OZOK30FsGQD5Y0t2fIb1jn4vr8oA0ZqkCbFxl43R0fdKrB wB0s6SXrK6I90Szi9w60+AjTigPrmM+I+gQicOYO558VWtTOyKmoLUlSNx0oD8vN RrlOwTpjsCPa5o2B6Df8SD+P8lMglgLkU22vjNwb9qZWrPItJPAzf+bxZkJ8qwq2 HEBM9yPsdWO4nC/CFAH5N1BQZgOm9W9sMEOfJpicoGWBCCj+E/6J6GORSGWHTfYY im0iiQvtNqhc0dQqrEHGObJvOxIXTWQ/AFA/9vR1Zt1HoBVSDyzkfLWoc3+igE71 Y+Z6unxQ5UQCl9jGDFYNbUR/lHg0zqm0ABsjaFvZRO4eW7eCKdj/7s+s/KvNjoYd M8RCnovF/ZUEpGqdhYGeSQmeCq1Wi/uxq9+KUG2xssJlT8qJpu55ZHJNhVKjcdgn 78r1f/f/U0QYi13O7xNvzK7rRDbbTcFdS71mxlTIh/WY/JEPMj9N1OutcvMZ8gS6 l85cY9Di0HRNKlnDfkTDK7C57/YHdhWSRFuJl4S1Wzqs5XvrWmCbNlgUMLNhFtm1 01iGSI1XfuZqHGDrHLRD6KJ4rv7gSkuCDRCPQ6EvsDBTbf1jxIujEoX2UJRLpvQS Thp8OQvDF0p0Wj4+Aid6 =SpRf -----END PGP SIGNATURE----- --BoDqKHKmWrz+Gi55--