​Hi Zbigniew,​

On Sun, Jan 15, 2017 at 9:51 AM, Zbigniew Jędrzejewski-Szmek <
zbys...@in.waw.pl> wrote:

> >   %{!?luaver: %global luaver %(lua -e "print(string.sub(_VERSION, 5))")}
> >
> > This now fails because the lua binary is not available when mock rebuilds
> > the SRPM. For anyone updating other Lua packages the following works:
> >
> >   %{!?luaver: %global luaver %(test -x /usr/bin/lua && lua -e
> > "print(string.sub(_VERSION, 5))" || echo 5.3)}
>
> It looks like something that could be put into a macro distributed by lua.
> It's a bit too long and too lua-version-specific to be hardcoded into
> individual packages.
>
> Certainly, ​I'll work on it and post it for review soon. Modelling it
after the Python macros would be a good idea.

Any idea how hard it would be to get the macro shipped in RHEL's lua as
well, so we don't need ugly ifdefs for packages that target both Fedora and
EPEL?

​Best regards,​


​-- ​
Michel Alexandre Salim
profile:    https://keybase.io/michel_slm
GPG key ID: 4AF554ABA36A937A
​


> Zbyszek
> _______________________________________________
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
>
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to