Bug 2063919

Summary: Packages Perl tests should not generate Provides
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-generatorsAssignee: Jitka Plesnikova <jplesnik>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 45CC: jplesnik, mspacek, perl-devel, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Pisar 2022-03-14 15:59:12 UTC
I noticed that packaged tests in /usr/libexec/... generates Provides because they are matched by perllib.attr:

$ cat /usr/lib/rpm/fileattrs/perllib.attr 
%__perllib_provides     %{_rpmconfigdir}/perl.prov
%__perllib_requires     %{_rpmconfigdir}/perl.req
%__perllib_magic        ^Perl[[:digit:]] module source.*
%__perllib_path         \\.pm$
%__perllib_flags        magic_and_path

I think they were meant to be only covered with perltest.attr:

# cat /usr/lib/rpm/fileattrs/perltest.attr
%__perltest_requires    %{_rpmconfigdir}/perl.req
%__perltest_magic       ^.*[Pp]erl[[:digit:]]* .*$
%__perltest_path        /usr/libexec/.*\\.(pl|pm|t)$
%__perltest_flags       magic_and_path

But perltest.attr is more similar to perl.attr, it's about scripts:

$ cat /usr/lib/rpm/fileattrs/perl.attr 
%__perl_requires        %{_rpmconfigdir}/perl.req
%__perl_magic           ^.*[Pp]erl .*$
%__perl_flags           exeonly

Would it be possible to change perllib.attr to match only files under /usr/{share,lib,lib64}/perl?

Observed with perl-generators-1.13-5.fc36.noarch.

(I find out that filtering those Provides with %__exclude_provides is a problem when the tests involve symlinks to modules in the main package. See perl-Module-Install-TestBase-tests-0.86-24.fc36 which erroneously provides perl(Module::Install::TestBase) <https://koji.fedoraproject.org/koji/buildinfo?buildID=1892296>. I will try to work it around on packaged file level in perl-Module-Install-TestBase.)

Comment 1 Ben Cotton 2022-08-09 13:13:47 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle.
Changing version to 37.

Comment 2 Jitka Plesnikova 2023-05-04 13:23:08 UTC
> Would it be possible to change perllib.attr to match only files under
> /usr/{share,lib,lib64}/perl?
I'll try if using exclude_path in perllib.attr can help. The definition could be:
%__perllib_exclude_path /usr/libexec/.*\\.(pl|pm|t)$$

Comment 3 Aoife Moloney 2023-11-23 00:09:58 UTC
This message is a reminder that Fedora Linux 37 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05.
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 '37'.

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 37 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.

Comment 4 Aoife Moloney 2024-02-15 22:54:44 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 5 Aoife Moloney 2025-04-25 10:02:24 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
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 '40'.

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 40 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.

Comment 6 Aoife Moloney 2026-08-17 13:15:42 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.