https://bugzilla.redhat.com/show_bug.cgi?id=2246773
Bug ID: 2246773 Summary: perl-Devel-Cover needs to be synchronised to perl version currently installed Product: Fedora Version: 38 Hardware: x86_64 OS: Linux Status: NEW Component: perl-Devel-Cover Keywords: Upgrades Severity: medium Assignee: spotrh@gmail.com Reporter: rwfranks@acm.org QA Contact: extras-qa@fedoraproject.org CC: perl-devel@lists.fedoraproject.org, spotrh@gmail.com Target Milestone: --- Classification: Fedora
Perl test programs using Devel::Cover emit a warning when running on the "wrong" version of perl.
This happens for each and every test script.
A package dependency needs to be added to force a rebuild of perl-Devel-Cover whenever the perl interpreter is updated.
Reproducible: Always
Steps to Reproduce: 1. tar xvzf Net-DNS-1.40.tar.gz 2. perl Makefile.PL 3. make test_cover Actual Results: PERL_DL_NONLAZY=1 HARNESS_OPTIONS=j1:c "/usr/bin/perl" "-It" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-install.t ............. This version of Devel::Cover was built with Perl version 5.036000. It is now being run with Perl version 5.036001. Attempting to make adjustments, but you may find that some of your modules do not have coverage data collected. You may need to alter the +-inc, +-ignore and +-select options.
t/00-install.t ............. 1/210 # # Filename not in MANIFEST: lib/Net/DNS/RR/DLV.pm t/00-install.t ............. ok t/00-load.t ................ This version of Devel::Cover was built with Perl version 5.036000. It is now being run with Perl version 5.036001. Attempting to make adjustments, but you may find that some of your modules do not have coverage data collected. You may need to alter the +-inc, +-ignore and +-select options.
...
Expected Results: PERL_DL_NONLAZY=1 HARNESS_OPTIONS=j1:c "/usr/bin/perl" "-It" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-install.t ............. ok t/00-load.t ................ # # These tests were run using: # Net::DNS 1.40 ...
In this particular case there seem to be no ill effects, but there have been occasions in the past where the version mismatch has rendered Devel::Cover unusable.
https://bugzilla.redhat.com/show_bug.cgi?id=2246773
Jitka Plesnikova jplesnik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jplesnik@redhat.com Doc Type|--- |If docs needed, set a value
--- Comment #1 from Jitka Plesnikova jplesnik@redhat.com --- It will be useful to add run-time dependency on perl version used for build.
Requires: perl(:VERSION) = %(eval "`perl -V:version`"; echo ${version:-0})
https://bugzilla.redhat.com/show_bug.cgi?id=2246773
--- Comment #2 from Dick Franks rwfranks@acm.org --- Q: Is the perl version available to the build process necessarily the same as the perl included in the distribution?
https://bugzilla.redhat.com/show_bug.cgi?id=2246773
--- Comment #3 from Jitka Plesnikova jplesnik@redhat.com --- (In reply to Dick Franks from comment #2)
Q: Is the perl version available to the build process necessarily the same as the perl included in the distribution?
No, but it could help us to find out the packages, which need to be rebuild when we update perl to new minor version. Or it can by find as Fails to install package and then new BZ FTI will be reported asap.
https://bugzilla.redhat.com/show_bug.cgi?id=2246773
--- Comment #4 from Dick Franks rwfranks@acm.org ---
If you know the path to the perl RPM spec for the distribution, the required exactly matching version number could be extracted using this one-liner:
perl -ne 'print qq(version="$1"\n) if /perl_version\s+([\d.]+)/' perl.spec
https://bugzilla.redhat.com/show_bug.cgi?id=2246773
Michal Josef Spacek mspacek@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mspacek@redhat.com
--- Comment #5 from Michal Josef Spacek mspacek@redhat.com --- (In reply to Dick Franks from comment #4)
If you know the path to the perl RPM spec for the distribution, the required exactly matching version number could be extracted using this one-liner:
perl -ne 'print qq(version="$1"\n) if /perl_version\s+([\d.]+)/'
perl.spec
This is not helpful, you cannot look to perl.spec file.
I prepared PR for it: https://src.fedoraproject.org/rpms/perl-Devel-Cover/pull-request/1
https://bugzilla.redhat.com/show_bug.cgi?id=2246773
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
--- Comment #6 from Fedora Update System updates@fedoraproject.org --- FEDORA-2023-993d665cef has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-993d665cef
https://bugzilla.redhat.com/show_bug.cgi?id=2246773
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |CLOSED Resolution|--- |ERRATA Fixed In Version| |perl-Devel-Cover-1.40-4.fc4 | |0 Last Closed| |2023-11-22 12:54:39
--- Comment #7 from Fedora Update System updates@fedoraproject.org --- FEDORA-2023-993d665cef has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.
perl-devel@lists.fedoraproject.org