[Bug 2063919] New: Packages Perl tests should not generate Provides

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2063919

            Bug ID: 2063919
           Summary: Packages Perl tests should not generate Provides
           Product: Fedora
           Version: rawhide
            Status: NEW
         Component: perl-generators
          Assignee: jplesnik@xxxxxxxxxx
          Reporter: ppisar@xxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: jplesnik@xxxxxxxxxx, mspacek@xxxxxxxxxx,
                    perl-devel@xxxxxxxxxxxxxxxxxxxxxxx, ppisar@xxxxxxxxxx
  Target Milestone: ---
    Classification: Fedora



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


-- 
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2063919
_______________________________________________
perl-devel mailing list -- perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to perl-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite Information]

  Powered by Linux