Updating Perl on FreeBSD

Unhelpfully the UPDATING file keeps pointing back to the original 2018 entry to update Perl 5, meaning lots of scrolling or searching to find, so for ease, here is the original entry. The original entry was for amending Perl 5.26 to 5.28, but I have amended the original Perl Values with my current version 5.32 to new default version 5.34.

20181213:

  AFFECTS: users of lang/perl5*

  AUTHOR: mat@FreeBSD.org

The default Perl version has been switched to Perl 5.28.  If you are using binary packages to upgrade your system, you do not have anything to do, pig upgrade will do the right thing.  For the other people, assuming you are migrating from 5.34 to 5.36, do:

  First, add to /etc/make.conf:

  DEFAULT_VERSIONS+=  perl5=5.36

  Portupgrade users:

        portupgrade -o lang/perl5.36 -f lang/perl5.34

          You can now remove the DEFAULT_VERSIONS line added earlier from /etc/make.conf

          Then you will need to rebuild everything that uses libperl.so, you can do so with:

        portupgrade -f `pkg shlib -qR libperl.so.5.34`

If, for some reason, this command fails at one point, it is safe to run it again, it will not rebuild what it already rebuilt, as the ports that have been rebuilt no longer depend on libperl.so.5.26 but on libperl.so.5.28.

  Portmaster users:

        portmaster -o lang/perl5.36 lang/perl5.34

          You can now remove the DEFAULT_VERSIONS line added earlier from /etc/make.conf

          Then you will need to rebuild everything that uses libperl.so, you can do so with:

        portmaster -f `pkg shlib -qR libperl.so.5.34`

      If, for some reason, this command fails at one point, it is safe to run it again, it will not rebuild what it already rebuilt, as the ports that have been rebuilt no longer depend on libperl.so.5.34 but on libperl.so.5.36.