Replace versioned MODULE_COMPAT_ requires by generators

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

 



Hi,

I am preparing replacement of versioned MODULE_COMPAT_ requires by dependency generators.
More details about the change can be found in mail thread [1].

The dependency generator, which I have prepared for Fedora, does not work for EPEL.

I would like to help maintainers who prefer one version of the spec file for all releases,
if it is possible.


Could be the following file added to the package epel-rpm-macros (or anything like this) for EPEL 9?
$ cat perlcompat.attr
%__perlcompat_requires() %{lua:
    local path = rpm.expand('%1')
    local perl_ver = rpm.expand('%{perl_version}')
    if path:match('.+%.so$') and perl_ver ~= "" then
       print('perl(:MODULE_COMPAT_' .. perl_ver .. ')')
    else
       print('perl-libs')
    end
}
%__perlcompat_path ^(%{perl_vendorarch}|%{perl_vendorlib}|%{perl_privlib}|%{perl_archlib})/.+

But I don't know how to do it for EPEL 7/8, because the above file doesn't work.
It ends with error [2]:
error: Couldn't exec perl-libs: No such file or directory

Do you have any idea if there is any other way how to provide
maintainers this functionality for EPEL 7/8?

Thanks for any advice,
Jitka


[1] https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx/thread/CGJYXUYNYRAFT5FOMEIJCCYAPXGTL3NY/
[2] https://download.copr.fedorainfracloud.org/results/jplesnik/perl-epel/centos-stream+epel-next-8-x86_64/05078720-perl-Data-Dumper/builder-live.log.gz
-- 
Jitka Plesnikova
Senior Software Engineer
Red Hat
_______________________________________________
epel-devel mailing list -- epel-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to epel-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/epel-devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

[Index of Archives]     [Fedora Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Announce]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux