Dear all,

How are you? I hope all is well with you. I need help please. I’m on a mission 
to update the perl5 port to provide the latest version of Perl (5.40.1).

I have modified the original Portfile to have

version: 5.40.1

I provided a new row in the perl5.versions_info set:

5.40 1  0 c0688de859abdd8c8d1cedf83bb2a2607f1c572a  
02f8c45bb379ed0c3de7514fad48c714fd46be8f0b536bfd5320050165a1ee26  19783191

I took the RDM160 and SHA256 checksum values from the output of the command:

openssl dgst -rmd160 perl-5.40.1.tar.gz
openssl dust -sha256 perl-5.40.1.tar.gz

The size of the tar file I copied from the output of stat:

stat perl-5.40.1.tar.gz

I added a new value to perl5.branches variable:

perl5.branches: 5.34 5.36 5.38 5.40

I didn’t modify the perl5.default_branch variable.

Finally, I try to make a test installation of the new port variant with

sudo port -d install perl5 +perl5_40

This fails with ‘Dependency perl5.40 not found’. Obviously, I missed something 
in the Portfile. Could you please direct me, to what I missed? I will attached 
the modified Portfile to this email. Thank you and have a wonderful day ahead!

Please find the full output of the port install command below:

DEBUG: Opening port in directory: 
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/perl5
DEBUG: OS darwin/20.6.0 (macOS 11.7.10) arch i386
DEBUG: Re-registering default for configure.universal_args
DEBUG: Sourcing PortGroup perl5 1.0 from 
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/perl5-1.0.tcl
DEBUG: Sourcing PortGroup clang_dependency 1.0 from 
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/clang_dependency-1.0.tcl
DEBUG: universal_variant is false, so not adding the default universal variant
DEBUG: Executing variant perl5_40 provides perl5_40
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback 
portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback 
portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: dropping privileges: euid changed to 502, egid changed to 501.
DEBUG: Starting logging for perl5 @5.40.1_0+perl5_40
DEBUG: macOS 11.7.10 (darwin/20.6.0) arch i386
DEBUG: MacPorts 2.10.5
DEBUG: Xcode 13.2, CLT 12.5.1.0.1.1623191612
DEBUG: SDK 11
DEBUG: MACOSX_DEPLOYMENT_TARGET: 11.0
DEBUG: Fetching perl5-5.40.1_0+perl5_40.any_any.noarch.tbz2 archive size
--->  Computing dependencies for perl5
DEBUG: perl5 has no conflicts
DEBUG: Searching for dependency: perl5.40
DEBUG: Didn't find receipt, going to depspec file for: perl5.40
Error: Dependency 'perl5.40' not found.
Error: Follow https://guide.macports.org/#project.tickets if you believe there 
is a bug.
Error: Processing of port perl5 failed

—
Best wishes,
Maxim

Attachment: Portfile
Description: Binary data


Maxim Abalenkov \\ maxim.abalen...@gmail.com
+44 7 486 486 505 \\ www.maxim.abalenkov.uk

Reply via email to