{"id":510,"date":"2023-08-22T23:29:20","date_gmt":"2023-08-22T22:29:20","guid":{"rendered":"https:\/\/www.farcorfe.org.uk\/?page_id=510"},"modified":"2023-08-22T23:29:20","modified_gmt":"2023-08-22T22:29:20","slug":"updating-perl-on-freebsd","status":"publish","type":"page","link":"https:\/\/www.farcorfe.org.uk\/?page_id=510","title":{"rendered":"Updating Perl on FreeBSD"},"content":{"rendered":"\n<p>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. <\/p>\n\n\n\n<p>20181213:<\/p>\n\n\n\n<p>&nbsp; AFFECTS: users of lang\/perl5*<\/p>\n\n\n\n<p>&nbsp; AUTHOR: mat@FreeBSD.org<\/p>\n\n\n\n<p>The default Perl version has been switched to Perl 5.28.&nbsp; If you are using binary packages to upgrade your system, you do not have anything to do, pig upgrade will do the right thing.&nbsp; For the other people, assuming you are migrating from 5.34 to 5.36, do:<\/p>\n\n\n\n<p>&nbsp; First, add to \/etc\/make.conf:<\/p>\n\n\n\n<p>&nbsp; DEFAULT_VERSIONS+=&nbsp; perl5=5.36<\/p>\n\n\n\n<p>&nbsp; Portupgrade users:<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; portupgrade -o lang\/perl5.36 -f lang\/perl5.34<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; You can now remove the DEFAULT_VERSIONS line added earlier from \/etc\/make.conf<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Then you will need to rebuild everything that uses libperl.so, you can do so with:<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; portupgrade -f `pkg shlib -qR libperl.so.5.34`<\/p>\n\n\n\n<p> 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.<\/p>\n\n\n\n<p>&nbsp; Portmaster users:<\/p>\n\n\n\n<p>\u00a0 \u00a0 \u00a0 \u00a0 portmaster -o lang\/perl5.36 lang\/perl5.34<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; You can now remove the DEFAULT_VERSIONS line added earlier from \/etc\/make.conf<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Then you will need to rebuild everything that uses libperl.so, you can do so with:<\/p>\n\n\n\n<p>\u00a0 \u00a0 \u00a0 \u00a0 portmaster -f `pkg shlib -qR libperl.so.5.34`<\/p>\n\n\n\n<p>\u00a0 \u00a0 \u00a0 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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.farcorfe.org.uk\/?page_id=510\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Updating Perl on FreeBSD&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-510","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.farcorfe.org.uk\/index.php?rest_route=\/wp\/v2\/pages\/510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.farcorfe.org.uk\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.farcorfe.org.uk\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.farcorfe.org.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.farcorfe.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=510"}],"version-history":[{"count":0,"href":"https:\/\/www.farcorfe.org.uk\/index.php?rest_route=\/wp\/v2\/pages\/510\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.farcorfe.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}