Upgrade Perl from 5.36. to 5.38

Hi,

what is the easiest way to update perl version from 5.36 to 5.38?
# portupgrade perl5-5.36.3_1
[Reading data from pkg(8) ... - 277 packages found - done]
** Port deleted on 2025-05-29: lang/perl5.36
Has expired: Support end three years after .0 release, please upgrade to a more recent version of Perl
** Listing the failed packages (-:ignore
All packages compiled from ports, perl too.
 
As always in such cases, see /usr/ports/UPDATING, newer perl entries will point you to 20231017 one that has complete upgrade process description.
 
so I have to do the following options:
# cat /usr/ports/UPDATING | grep perl
AFFECTS: users of lang/perl5.*
portmaster -a should handle all the upgrade properly. In case not please
run as an unprivileged user. You can also check if xrdp is properly
portmaster -a should handle all the upgrade properly. In case not please
AFFECTS: users of lang/perl5*
DEFAULT_VERSIONS+= perl5=5.36
portupgrade -o lang/perl5.38 -f lang/perl5.36
Then you will need to rebuild everything that uses libperl.so, you
portupgrade -f `pkg shlib -qR libperl.so.5.34`
ports that have been rebuilt no longer depend on libperl.so.5.34 but
on libperl.so.5.36.
Do I need to add the entry DEFAULT_VERSIONS+= perl5=5.38 to /etc/make.conf
 
Do I need to add the entry DEFAULT_VERSIONS+= perl5=5.38 to /etc/make.conf
You need to read the entire entry (don't just grep perl) and use complete instructions adapting the versions for your case.
 
Do I need to add the entry DEFAULT_VERSIONS+= perl5=5.38 to /etc/make.conf
FYI, the default version of perl has been updated to 5.40: /usr/ports/UPDATING
Code:
20250514:
  AFFECTS: users of lang/perl5.*
  AUTHOR: mat@FreeBSD.org

  The default Perl version has been switched to 5.40.

  See entry 20231017 for updating instructions.
Edit "DEFAULT_VERSIONS" from entry 20231017 accordingly.
 
Back
Top