On 2022-01-21 00:21 EST, Kastus Shchuka wrote:
You got the link /opt/local/bin/perl -> perl5.28 from the default variant of 
perl5 as you did not specify which variant you wanted.

Yep, I understood that, and that's exactly what I would've expected: I just didn't realize that system didn't even have the "meta-port" installed at the beginning of this, and I'm rusty at best on port variants. :^>

You need to install perl5 +perl5_34 if you want 5.34.

That's *precisely* the syntax I was trying to remember. Thank you!

But, I'm confused by the `port info perl5` output after doing that. Is the "[+]" just meant to imply "preferred version" rather than "active version"? That seems… at best confusing…?

[5] (gr@wedge:~)% port info perl5
perl5 @5.28.3 (lang)
Sub-ports:            perl5.16, perl5.18, perl5.20, perl5.22, perl5.24,
                      perl5.26, perl5.28, perl5.30, perl5.32, perl5.34
Variants:             perl5_26, [+]perl5_28, perl5_30, perl5_32,
                      perl5_34

Description:          Wrapper port for Perl 5.x
Homepage:             https://www.perl.org/

Library Dependencies: perl5.28
Platforms:            darwin, freebsd, linux
License:              (Artistic-1 or GPL)
Maintainers:          Email: mo...@macports.org, GitHub: mojca
                      Policy: openmaintainer
[6] (gr@wedge:~)% sudo port install perl5 +perl5_34
--->  Computing dependencies for perl5
--->  Fetching archive for perl5
---> Attempting to fetch perl5-5.28.3_0+perl5_34.darwin_20.noarch.tbz2 from https://packages.macports.org/perl5 ---> Attempting to fetch perl5-5.28.3_0+perl5_34.darwin_20.noarch.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/perl5 ---> Attempting to fetch perl5-5.28.3_0+perl5_34.darwin_20.noarch.tbz2 from https://mse.uk.packages.macports.org/perl5
--->  Fetching distfiles for perl5
--->  Verifying checksums for perl5
--->  Extracting perl5
--->  Configuring perl5
--->  Building perl5
--->  Staging perl5 into destroot
--->  Installing perl5 @5.28.3_0+perl5_34
--->  Deactivating perl5 @5.28.3_0+perl5_28
--->  Cleaning perl5
--->  Activating perl5 @5.28.3_0+perl5_34
--->  Cleaning perl5
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  No broken ports found.
[7] (gr@wedge:~)% port info perl5
perl5 @5.28.3 (lang)
Sub-ports:            perl5.16, perl5.18, perl5.20, perl5.22, perl5.24,
                      perl5.26, perl5.28, perl5.30, perl5.32, perl5.34
Variants:             perl5_26, [+]perl5_28, perl5_30, perl5_32,
                      perl5_34

Description:          Wrapper port for Perl 5.x
Homepage:             https://www.perl.org/

Library Dependencies: perl5.28
Platforms:            darwin, freebsd, linux
License:              (Artistic-1 or GPL)
Maintainers:          Email: mo...@macports.org, GitHub: mojca
                      Policy: openmaintainer
[8] (gr@wedge:~)% which perl
/opt/local/bin/perl
[9] (gr@wedge:~)% perl --version

This is perl 5, version 34, subversion 0 (v5.34.0) built for darwin-thread-multi-2level

Copyright 1987-2021, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

[10] (gr@wedge:~)%



--
Gabriel Rosenkoetter (he/him)
g...@eclipsed.net

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to