Solved Updating perl5.36 to perl5.40.

Hello.
My system FreeBSD 13.4-RELEASE-p5 amd64.
# cat /etc/make.conf
CPUTYPE?=nocona
MAKE_JOBS_NUMBER=6
NO_GAMES=true
NO_INET6=true
NO_BLUETOOTH=true
NO_SHAREDOCS=true
OPTIONS_UNSET=DOCS X11 IPV6 BLUETOOTH GAMES SMB CUPS EXAMPLES


I do everything according to the instructions.
How to fix?

1. portupgrade -o lang/perl5.40 -f lang/perl5.36
# pkg version -v | grep perl
perl5.40-5.40.2_2 = up-to-date with index

2. portupgrade -f `pkg shlib -qR libperl.so.5.36`
(cd /usr/include && /usr/bin/env LD_LIBRARY_PATH=/usr/ports/lang/perl5.40/work/perl-5.40.2 /usr/ports/lang/perl5.40/work/perl-5.40.2/perl -I /usr/ports/lang/perl5.40/work/perl-5.40.2/lib /usr/ports/lang/perl5.40/work/stage/usr/local/bin/h2ph -d /usr/ports/lang/perl5.40/work/stage/usr/local/lib/perl5/site_perl/mach/5.40 *.h machine/*.h sys/*.h >/dev/null)
/usr/bin/find /usr/ports/lang/perl5.40/work/stage -name '*.so*' -type f | while read f; do /bin/chmod 644 $f; /usr/bin/strip $f; /bin/chmod 444 $f; done
install -m 0644 /usr/ports/lang/perl5.40/work/perl-man.conf /usr/ports/lang/perl5.40/work/stage/usr/local/etc/man.d/perl5.conf
====> Compressing man pages (compress-man)
===> Installing ldconfig configuration file
===> Installing for perl5-5.40.2_2
===> Checking if perl5 is already installed
===> Registering installation for perl5-5.40.2_2 as automatic
[test] Installing perl5-5.40.2_2...
pkg-static: perl5-5.40.2_2 conflicts with perl5.40-5.40.2_2 (installs files into the same place). Problematic file: /usr/local/bin/perl5.40.2
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/lang/perl5.40
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/lang/perl5.40
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/security/p5-GSSAPI
*** Error code 1

Stop.
make: stopped in /usr/ports/security/p5-GSSAPI
egrep: empty (sub)expression
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20250614-48289-9q03hf env UPGRADE_TOOL=portupgrade UPGRADE_PORT=p5-GSSAPI-0.28_2 UPGRADE_PORT_VER=0.28_2 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! devel/p5-Clone (p5-Clone-0.47) (unknown build error)
! www/p5-HTML-Parser (p5-HTML-Parser-3.83) (unknown build error)
! security/p5-Net-SSLeay (p5-Net-SSLeay-1.94) (unknown build error)
! devel/p5-File-FcntlLock (p5-File-FcntlLock-0.22) (unknown build error)
* mail/exim (exim-4.98.2)
! security/p5-GSSAPI (p5-GSSAPI-0.28_2) (unknown build error)
 
Fixed update error.

1 delete perl5.40
2 add entry to /etc/make.conf DEFAULT_VERSIONS+= perl5=5.40
3 install perl5.40
4 remove DEFAULT_VERSIONS+= perl5=5.40 entry from /etc/make.conf
5 portupgrade -f `pkg shlib -qR libperl.so.5.36`
 
Back
Top