Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Sep 2015 09:29:00 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        freebsd-ports@freebsd.org
Subject:   Migrating from perl5-5.20 to perl5.22 using custom packages?
Message-ID:  <20150905162900.GR17650@albert.catwhisker.org>

next in thread | raw e-mail | index | archive | help

--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
<http://www.catwhisker.org/~david/FreeBSD/convert_i386_amd64.html>.)

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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150905162900.GR17650>