%lua_requires behaves differently in F33+

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

 



Hi,

Björn added some useful Lua packaging macros in 
https://bugzilla.redhat.com/show_bug.cgi?id=1447324

One of them, %lua_requires, adds a dependency on either `lua(abi) =
%{lua_version}` or, on EL6 and below, on lua >= current version and lua
< next version.

Somehow this seems to be automatically applied on Fedora 33 and above
-- without adding any manual require on lua(abi)

e.g. lua-lunitx on Fedora 33
https://bodhi.fedoraproject.org/updates/FEDORA-2020-7c23dc64c0

on Fedora 32, though, the macro is not automatically invoked (so the
update below is bad and I need to redo it)
 https://bodhi.fedoraproject.org/updates/FEDORA-2020-9074133de4

In fact, trying to use %lua_requires does not seem to work, with and
without curly braces:

error: line 15: Unknown tag: %lua_requires
error: line 15: Unknown tag: %{lua_requires}

Could someone help explain these two behaviors? I'm working on resuming
the Lua packaging draft so I want to have a canonical example on how
the macros are supposed to be used.

PS Björn -- we should consider moving the macros out of lua-devel and
into lua-rpm-macros, that lua-devel then depends on. That will fix the
inability to get these macros out to EPEL6 and EPEL7 - on those, lua
packages can just BR the macro package directly.

-- 
Michel Alexandre Salim
profile: https://keyoxide.org/michel@xxxxxxxxxxxxxxx
chat via email: https://delta.chat/
GPG key: 5DCE 2E7E 9C3B 1CFF D335 C1D7 8B22 9D2F 7CCC 04F2

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to 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/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux