Re: %lua_requires behaves differently in F33+

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

 



On Fri, 2020-08-28 at 18:36 -0700, Michel Alexandre Salim wrote:
> 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}
> 
Partially answering this point: this is because %lua_requires is not
available on the system where rpmbuild -bs was invoked to create the
SRPM.

Some languages (e.g. Python) ship $LANG-srpm-macros packages that are
pulled in by redhat-rpm-config to address this.


> 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.
> 
So having lua-rpm-macros with potentially a lua-srpm-macros would help
here.

But this won't even be needed if we can figure out how %lua_requires
get triggered on Fedora 33+ and have it work that way on older releases
too.

Thanks,

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