Hi! Building the package of port is failed,
and therefore dependent packages ant repo tree
is imposible to build. Here output:
root@ns2:/usr/ports/devel/p5-App-cpanminus # make package
===> Building package for p5-App-cpanminus-1.7039
pkg-static: Unable to access file /usr/ports/devel/p5-App-cpanminus/work/stage/usr/local/share/man/man1/cpanm.1.gz: No such file or directory
*** [do-package] Error code 1
Stop in /usr/ports/devel/p5-App-cpanminus.
The file is actually have path ('/share/' - component is difference):
possible port build system error bug, same error at p5-Net-Server-2.008_1
pkg-static: Unable to access file /usr/ports/net/p5-Net-Server/work/stage/usr/local/share/man/man1/net-server.1.gz: No such file or directory
I'm also affected with this bug for devel/p5-App-cpanminus.
The bug was introduced in this commit: https://github.com/freebsd/freebsd-ports/commit/0a3881946e73bed6ebd8016e2b2ecd90da2b69f1
Specifically here in the pkg-plist file:
Not sure which is the best way to fix it since this change affect all Perl ports.
Hope it gets fixed fast because we use tons of Perl modules.
I found this happens when the obsolete variable PERL_VERSION is defined in make.conf (or elsewhere).
In /usr/ports/Mk/Uses/perl5.mk we have:
This is used to populate PERL5_MAN1 which ends up putting the wrong paths in pkg_plist when %%PERL5_MAN1%% is used.
I fixed this by removing PERL_VERSION from /etc/make.conf. The replacement for this is now DEFAULT_VERSIONS.
The problem originally was on 9.3-RELEASE r279048 immediately after system install from sources with empty /etc/make.conf