Porting pythonocc-core

I am trying to port pythonocc-core.

I created a jail with freebsd-14.3-RELEASE for this.
The output of make build brings following error:
Code:
14_3_release] Installing gettext-tools-0.23.1_1...
===>   p5-Locale-gettext-1.07 depends on executable: msgfmt - found
===>   Returning to build of p5-Locale-gettext-1.07
===>   p5-Locale-gettext-1.07 depends on package: perl5>=5.40.r<5.41 - found
===>   p5-Locale-gettext-1.07 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)
===>  Configuring for p5-Locale-gettext-1.07
env: /usr/local/bin/perl5.40.3: No such file or directory
*** Error code 127

Stop.
make[15]: stopped in /usr/ports/devel/p5-Locale-gettext
*** Error code 1

Stop.
make[14]: stopped in /usr/ports/misc/help2man
*** Error code 1

Stop.
make[13]: stopped in /usr/ports/misc/help2man
*** Error code 1

Stop.
make[12]: stopped in /usr/ports/print/texinfo
*** Error code 1

Stop.
make[11]: stopped in /usr/ports/print/texinfo
*** Error code 1

Stop.
make[10]: stopped in /usr/ports/devel/m4
*** Error code 1

Stop.
make[9]: stopped in /usr/ports/devel/m4
*** Error code 1

Stop.
make[8]: stopped in /usr/ports/devel/bison
*** Error code 1

Stop.
make[7]: stopped in /usr/ports/devel/bison
*** Error code 1

Stop.
make[6]: stopped in /usr/ports/graphics/graphviz
*** Error code 1

Stop.
make[5]: stopped in /usr/ports/graphics/graphviz
*** Error code 1

Stop.
make[4]: stopped in /usr/ports/devel/doxygen
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/devel/doxygen
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/devel/rapidjson
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/rapidjson
*** Error code 1

Stop.
make: stopped in /usr/ports/cad/pythonocc-core
[root@14_3_release /usr/ports/cad/pythonocc-core]#

Code:
[root@14_3_release /usr/ports/cad/pythonocc-core]# ls /usr/local/bin/perl*
/usr/local/bin/perl*        /usr/local/bin/perlbug*        /usr/local/bin/perldoc5.42.0*  /usr/local/bin/perlthanks*
/usr/local/bin/perl5.40.2@  /usr/local/bin/perlbug5.42.0*  /usr/local/bin/perlivp*        /usr/local/bin/perlthanks5.42.0*
/usr/local/bin/perl5.42.0*  /usr/local/bin/perldoc*        /usr/local/bin/perlivp5.42.0*

The installed Perl 5.40 version is 5.40.2

Having a look at FreshPorts show:
freshport.png


I am a bit surpised, 5.40.2 exists as package and is installed with pkg install git.
What could be a workaround for this?
 
The installed Perl 5.40 version is 5.40.2
No, it's 5.42.0, /usr/local/bin/perl5.40.2@ is a symlink and probably a dangling one now. Look at ls -l /usr/local/bin/perl*

Ah, I think I see where you went wrong. You've mixed quarterly packages (where Perl 5.40 is the default) with a recent (aka latest) ports tree (where 5.42 is the default).

 
I installed perl 5.42 after (with pkg install) to try to solve the problem.

Code:
[root@14_3_release /usr/ports/cad/pythonocc-core]# ls -l /usr/local/bin/perl*
.rwxr-xr-x 7.2k root wheel  9 Aug 03:10 /usr/local/bin/perl*
lrwxr-xr-x    - root wheel  9 Aug 03:10 /usr/local/bin/perl5.40.2 -> perl*
.rwxr-xr-x 7.2k root wheel 11 Aug 05:27 /usr/local/bin/perl5.42.0*
.rwxr-xr-x  46k root wheel  9 Aug 03:09 /usr/local/bin/perlbug*
.rwxr-xr-x  46k root wheel 11 Aug 05:27 /usr/local/bin/perlbug5.42.0*
.rwxr-xr-x  274 root wheel  9 Aug 03:09 /usr/local/bin/perldoc*
.rwxr-xr-x  286 root wheel 11 Aug 05:27 /usr/local/bin/perldoc5.42.0*
.rwxr-xr-x  11k root wheel  9 Aug 03:09 /usr/local/bin/perlivp*
.rwxr-xr-x  11k root wheel 11 Aug 05:27 /usr/local/bin/perlivp5.42.0*
.rwxr-xr-x  46k root wheel  9 Aug 03:09 /usr/local/bin/perlthanks*
.rwxr-xr-x  46k root wheel 11 Aug 05:27 /usr/local/bin/perlthanks5.42.0*
 
Looking at it again, the confusion is probably caused by the port being updated to 5.40.3 but the packages haven't been built yet (or at least not distributed). Packages will always lag a little behind the ports tree as it takes time to build and distribute.

Last quarterly build started yesterday, finished 25 hours later, it included a package for Perl 5.40.3: https://pkg-status.freebsd.org/beefy20/build.html?mastername=142amd64-quarterly&build=5e9ac41ee645

In case you don't have IPv6:
Screenshot 2025-08-20 184332.png

Looks like those haven't been pushed to the package mirrors yet, or is in the process of doing so.
 
Back
Top