Re: Heads up: lua-lpeg 1.0.1 in Rawhide; lua no longer in mock root by default?

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

 



On Sat, Jan 14, 2017 at 09:24:40PM -0800, Michel Alexandre Salim wrote:
> Hi all,
> 
> Just a heads-up: I just built lua-lpeg 1.0.1 for Rawhide. The release notes
> does not seem to suggest any significant API change, but just to be sure we
> should probably let it sit in Rawhide for a while.
> 
> On the packaging side, turns out Lua is not available by default in the
> mock root, and a lot of our Lua packages try to detect the version of Lua
> used during the build by using this expansion:
> 
> 
>   %{!?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.

Zbyszek
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [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