* [Buildroot] [git commit] luajit: only available on x86(-64) hosts
2017-11-06 9:12 ` Thomas Petazzoni
@ 2017-11-06 18:01 ` François Perrad
2017-11-06 20:07 ` Peter Korsgaard
2017-11-06 22:56 ` Arnout Vandecappelle
1 sibling, 1 reply; 5+ messages in thread
From: François Perrad @ 2017-11-06 18:01 UTC (permalink / raw)
To: buildroot
moarvm could be build without any host lua (Lua or LuaJIT),
it embeds its own minilua for bootstrapping.
see https://patchwork.ozlabs.org/patch/601314/
Fran?ois
2017-11-06 10:12 GMT+01:00 Thomas Petazzoni <
thomas.petazzoni@free-electrons.com>:
> Hello,
>
> On Sun, 5 Nov 2017 16:51:59 +0100, Arnout Vandecappelle
> (Essensium/Mind) wrote:
>
> > diff --git a/package/luajit/Config.in b/package/luajit/Config.in
> > index 1a27c43..6b9c6e6 100644
> > --- a/package/luajit/Config.in
> > +++ b/package/luajit/Config.in
> > @@ -1,5 +1,8 @@
> > config BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
> > bool
> > + # -m32 flag is used for 32bit builds and host-luajit has
> > + # limited architecture support
> > + depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
> > default y if BR2_i386 || \
> > (BR2_x86_64 && BR2_HOSTARCH='x86_64') || \
> > BR2_powerpc || BR2_arm || BR2_armeb || \
>
> I said it during the review, and apparently my comment was not taken
> into account: I'm not entirely happy with this change, because it's
> really host-luajit that has an architecture dependency, and not luajit.
> So all packages that use host-luajit (without needing luajit) should
> also have this dependency. I know the only package in this situation
> today was moarvm, and it was fixed, but only because I pointed out this
> problem, which will pop up again in the future if we keep this
> implementation.
>
> Perhaps we should have package/luajit/Config.in.host with just a blind
> BR2_PACKAGE_HOST_LUAJIT_ARCH_SUPPORTS, and make
> BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS depend on it. Yes, I'm being pedantic
> here, but the fact that moarvm was initially overlooked is a good
> indication that a clearer dependency would be useful.
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux and Kernel engineering
> http://free-electrons.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20171106/a594cb97/attachment.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [git commit] luajit: only available on x86(-64) hosts
2017-11-06 9:12 ` Thomas Petazzoni
2017-11-06 18:01 ` François Perrad
@ 2017-11-06 22:56 ` Arnout Vandecappelle
1 sibling, 0 replies; 5+ messages in thread
From: Arnout Vandecappelle @ 2017-11-06 22:56 UTC (permalink / raw)
To: buildroot
On 06-11-17 10:12, Thomas Petazzoni wrote:
> Hello,
>
> On Sun, 5 Nov 2017 16:51:59 +0100, Arnout Vandecappelle
> (Essensium/Mind) wrote:
>
>> diff --git a/package/luajit/Config.in b/package/luajit/Config.in
>> index 1a27c43..6b9c6e6 100644
>> --- a/package/luajit/Config.in
>> +++ b/package/luajit/Config.in
>> @@ -1,5 +1,8 @@
>> config BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
>> bool
>> + # -m32 flag is used for 32bit builds and host-luajit has
>> + # limited architecture support
>> + depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
>> default y if BR2_i386 || \
>> (BR2_x86_64 && BR2_HOSTARCH='x86_64') || \
>> BR2_powerpc || BR2_arm || BR2_armeb || \
>
> I said it during the review, and apparently my comment was not taken
> into account:
Yes, sorry about that. I had read it too quickly and interpreted it as just
saying that moarvm had to be fixed as well.
> I'm not entirely happy with this change, because it's
> really host-luajit that has an architecture dependency, and not luajit.
> So all packages that use host-luajit (without needing luajit) should
> also have this dependency. I know the only package in this situation
> today was moarvm, and it was fixed, but only because I pointed out this
> problem, which will pop up again in the future if we keep this
> implementation.
>
> Perhaps we should have package/luajit/Config.in.host with just a blind
> BR2_PACKAGE_HOST_LUAJIT_ARCH_SUPPORTS, and make
> BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS depend on it.
Sounds like a great idea, go for it!
Regards,
Arnout
> Yes, I'm being pedantic
> here, but the fact that moarvm was initially overlooked is a good
> indication that a clearer dependency would be useful.
>
> Thomas
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
^ permalink raw reply [flat|nested] 5+ messages in thread