Bug 2165567

Summary: Upgrade perl-Sub-Exporter-Lexical to 1.000
Product: [Fedora] Fedora Reporter: Jitka Plesnikova <jplesnik>
Component: perl-Sub-Exporter-LexicalAssignee: Ralf Corsepius <rc040203>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: paul, perl-devel, ppisar, rc040203
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://metacpan.org/release/Sub-Exporter-Lexical
Whiteboard:
Fixed In Version: perl-Sub-Exporter-Lexical-1.000-1.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-09 08:49:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2184280    
Bug Blocks:    

Description Jitka Plesnikova 2023-01-30 12:39:50 UTC
Latest Fedora delivers 0.092292 version. Upstream released 0.100000. When you have free time, please upgrade it.

Comment 1 Ralf Corsepius 2023-01-30 14:13:48 UTC
This package refuses to build on all versions of Fedora, because upstream claims

"There is no functioning lexical exporter between perl v5.20 and v5.38"

Comment 2 Paul Howarth 2023-01-31 12:06:18 UTC
The reasoning for this looks to be that the upstream Lexical-Var distribution (which contains Lexical::Sub, and provides support for lexical exports in the absence of native support, i.e. prior to 5.37.2) hasn't been updated for the best part of a decade and is broken with Perl 5.22 onwards. The Fedora perl-Lexical-Var package includes a patch to fix this (see also https://rt.cpan.org/Public/Bug/Display.html?id=115992), as does the CPAN distribution Alt::Lexical::Var::ButSupportModernPerl.

The approach taken in Exporter::Tiny, which recently added lexical export support, is to check for the availability of Lexical::Sub at runtime and use it if available. It adds a "recommends" dependency on Lexical::Sub or Alt::Lexical::Var::ButSupportModernPerl (depending on the perl version) in the Makefile.PL to support that. The Fedora package just has a build dep (for testing) of perl(Lexical::Sub) and a Recommends: for it at runtime. Maybe Sub::Exporter::Lexical could do something similar?

Comment 3 Ben Cotton 2023-02-07 15:12:20 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 4 Jitka Plesnikova 2023-04-03 12:49:32 UTC
Latest Fedora delivers 0.092292 version. Upstream released 1.000. When you have free time, please upgrade it.

Comment 5 Ralf Corsepius 2023-04-04 06:00:44 UTC
AFAIU, Sub-Exporter-Lexical-1.000 requires 
perl(Lexical::Sub) (rsp. perl-Lexical-Var) >= 0.10 
or perl >= v5.37.2

ATM, no Fedora release provides such a perl and only rawhide provides perl(Lexical::Sub) >= 0.10

=> it's impossible to upgrade perl-Sub-Exporter-Lexical on Fedora < f39.

I'll build perl-Sub-Exporter-Lexical for rawhide and file upgrade requests for perl-Lexical-Var for Fedoras < f39

Comment 6 Aoife Moloney 2024-05-07 15:56:28 UTC
This message is a reminder that Fedora Linux 38 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 38 on 2024-05-21.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '38'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 38 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.