Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 7/9] package/efl: depend on lua ABI version 5.1
Date: Mon, 27 Jul 2020 21:16:16 +0200	[thread overview]
Message-ID: <20200727191616.GH19818@scaer> (raw)
In-Reply-To: <53cf1b5f-9859-eaeb-f35d-cdfee0d2773c@gmail.com>

On 2020-06-06 18:36 +0200, Romain Naour spake thusly:
> Hi James,
> 
> Le 25/05/2020 ? 02:48, James Hilliard a ?crit?:
> > Since efl is compatible with lua interpreters that provide the
> > version 5.1 ABI we should depend on that instead of unconditionally
> > selecting luajit.
> 
> We had some issues with lua support in previous efl version (1.17.x) [1], can
> you explain in the commit log that it's safe to add back Lua 5.1 support ?
> 
> [1]
> https://git.buildroot.net/buildroot/commit/?id=92f7591eca0d2b4ff827ed90629be94292c8b102

This was 4 years ago, against EFL 1.15. We're now using EFL 1.22, and so
we would need to check that the Lu support is still broken or not. Let's
do that, then, by enabling the build with any Lua 5.1 interpreter, liek
this patch does. Let's wait for the autobuilders to return broken
builds.

Regards,
Yann E. MORIN.

> Best regards,
> Romain
> 
> > 
> > Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> > ---
> >  package/efl/Config.in |  7 +++----
> >  package/efl/efl.mk    | 26 ++++++++++++++++++++------
> >  2 files changed, 23 insertions(+), 10 deletions(-)
> > 
> > diff --git a/package/efl/Config.in b/package/efl/Config.in
> > index ff49161163..b074774790 100644
> > --- a/package/efl/Config.in
> > +++ b/package/efl/Config.in
> > @@ -3,7 +3,7 @@ config BR2_PACKAGE_EFL
> >  	 # g++ issue with 4.4.5, tested with g++ 4.7.2
> >  	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
> >  	depends on BR2_INSTALL_LIBSTDCPP
> > -	depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS # luajit
> > +	depends on BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1
> >  	depends on BR2_TOOLCHAIN_HAS_THREADS # untested without threads
> >  	depends on BR2_USE_MMU
> >  	depends on BR2_USE_WCHAR # use wchar_t
> > @@ -13,7 +13,6 @@ config BR2_PACKAGE_EFL
> >  	select BR2_PACKAGE_JPEG # Emile needs libjpeg
> >  	select BR2_PACKAGE_LIBCURL # Ecore_con_url, runtime dependency
> >  	# https://phab.enlightenment.org/T2728
> > -	select BR2_PACKAGE_LUAJIT # Lua support broken
> >  	select BR2_PACKAGE_LZ4
> >  	select BR2_PACKAGE_ZLIB
> >  	help
> > @@ -302,9 +301,9 @@ comment "SVG loader needs a toolchain w/ gcc >= 4.8"
> >  
> >  endif # BR2_PACKAGE_EFL
> >  
> > -comment "efl needs a toolchain w/ C++, dynamic library, gcc >= 4.7, threads, wchar"
> > +comment "efl needs a toolchain w/ C++, luajit or lua 5.1, dynamic library, gcc >= 4.7, threads, wchar"
> >  	depends on !BR2_INSTALL_LIBSTDCPP \
> >  		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 \
> >  		|| BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
> > -	depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
> > +	depends on !BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1
> >  	depends on BR2_USE_MMU
> > diff --git a/package/efl/efl.mk b/package/efl/efl.mk
> > index d8364ed76f..ba44738e59 100644
> > --- a/package/efl/efl.mk
> > +++ b/package/efl/efl.mk
> > @@ -20,8 +20,8 @@ EFL_LICENSE_FILES = \
> >  
> >  EFL_INSTALL_STAGING = YES
> >  
> > -EFL_DEPENDENCIES = host-pkgconf host-efl host-luajit dbus freetype \
> > -	jpeg luajit lz4 zlib
> > +EFL_DEPENDENCIES = host-pkgconf host-efl dbus freetype \
> > +	jpeg lz4 zlib
> >  
> >  # Configure options:
> >  # --disable-lua-old: build elua for the target.
> 
> Don't forget to update/remove the comment.
> 
> > @@ -38,11 +38,9 @@ EFL_CONF_OPTS = \
> >  	--with-eldbus_codegen=$(HOST_DIR)/bin/eldbus-codegen \
> >  	--with-elementary-codegen=$(HOST_DIR)/bin/elementary_codegen \
> >  	--with-elm-prefs-cc=$(HOST_DIR)/bin/elm_prefs_cc \
> > -	--with-elua=$(HOST_DIR)/bin/elua \
> >  	--with-eolian-gen=$(HOST_DIR)/bin/eolian_gen \
> >  	--disable-image-loader-jp2k \
> >  	--with-net-control=none \
> > -	--disable-lua-old \
> >  	--disable-sdl \
> >  	--disable-spectre \
> >  	--disable-xinput22 \
> > @@ -92,6 +90,16 @@ else
> >  EFL_CONF_OPTS += --disable-fribidi
> >  endif
> >  
> > +ifeq ($(BR2_PACKAGE_LUAJIT),y)
> > +EFL_CONF_OPTS += \
> > +	--with-elua=$(HOST_DIR)/usr/bin/elua \
> > +	--disable-lua-old
> > +EFL_DEPENDENCIES += host-luajit luajit
> > +else ifeq ($(BR2_PACKAGE_LUA),y)
> > +EFL_CONF_OPTS += --enable-lua-old
> > +EFL_DEPENDENCIES += host-lua lua
> > +endif
> > +
> >  ifeq ($(BR2_PACKAGE_GSTREAMER1)$(BR2_PACKAGE_GST1_PLUGINS_BASE),yy)
> >  EFL_CONF_OPTS += --enable-gstreamer1
> >  EFL_DEPENDENCIES += gstreamer1 gst1-plugins-base
> > @@ -320,7 +328,6 @@ HOST_EFL_DEPENDENCIES = \
> >  	host-libglib2 \
> >  	host-libjpeg \
> >  	host-libpng \
> > -	host-luajit \
> >  	host-zlib
> >  
> >  # Configure options:
> > @@ -351,7 +358,6 @@ HOST_EFL_CONF_OPTS += \
> >  	--disable-libmount \
> >  	--disable-libraw \
> >  	--disable-librsvg \
> > -	--disable-lua-old \
> >  	--disable-multisense \
> >  	--disable-physics \
> >  	--disable-poppler \
> > @@ -379,6 +385,14 @@ else
> >  HOST_EFL_CONF_OPTS += --disable-cxx-bindings
> >  endif
> >  
> > +ifeq ($(BR2_PACKAGE_LUAJIT),y)
> > +HOST_EFL_CONF_OPTS += --disable-lua-old
> > +HOST_EFL_DEPENDENCIES += host-luajit
> > +else ifeq ($(BR2_PACKAGE_LUA),y)
> > +HOST_EFL_CONF_OPTS += --enable-lua-old
> > +HOST_EFL_DEPENDENCIES += host-lua
> > +endif
> > +
> >  # Always disable upower system module from host as it's
> >  # not useful and would try to use the output/host/var
> >  # system bus which is non-existent and does not contain
> > 
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2020-07-27 19:16 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-25  0:48 [Buildroot] [PATCH v3 1/9] package/luainterpreter: add abi version options James Hilliard
2020-05-25  0:48 ` [Buildroot] [PATCH v3 2/9] package/sysdig: depend on lua ABI version 5.1 James Hilliard
2020-05-25  0:48 ` [Buildroot] [PATCH v3 3/9] package/collectd: depend on luainterpreter for lua support James Hilliard
2020-05-25  7:10   ` Thomas Petazzoni
2020-05-25  8:05     ` James Hilliard
2020-05-25  0:48 ` [Buildroot] [PATCH v3 4/9] package/solarus: depend on lua ABI version 5.1 James Hilliard
2020-05-25  0:48 ` [Buildroot] [PATCH v3 5/9] package/luaposix: select bit32 based " James Hilliard
2020-05-25  0:48 ` [Buildroot] [PATCH v3 6/9] package/minetest: do not select luajit James Hilliard
2020-06-06 17:05   ` Romain Naour
2020-06-06 22:43     ` James Hilliard
2020-07-27 20:11       ` Yann E. MORIN
2020-07-27 20:39         ` James Hilliard
2020-05-25  0:48 ` [Buildroot] [PATCH v3 7/9] package/efl: depend on lua ABI version 5.1 James Hilliard
2020-06-06 16:36   ` Romain Naour
2020-07-27 19:16     ` Yann E. MORIN [this message]
2020-07-27 19:19   ` Yann E. MORIN
2020-07-27 19:23     ` James Hilliard
2020-07-27 19:29       ` Yann E. MORIN
2020-07-27 19:36         ` James Hilliard
2020-07-27 19:44           ` Yann E. MORIN
2020-05-25  0:48 ` [Buildroot] [PATCH v3 8/9] package/prosody: don't depend on !lua 5.3 James Hilliard
2020-05-25  0:48 ` [Buildroot] [PATCH v3 9/9] package/luajit: depend on !BR2_PACKAGE_LUA James Hilliard
2020-07-27 20:37   ` Yann E. MORIN
2020-07-27 21:12     ` James Hilliard
2020-06-06 21:59 ` [Buildroot] [PATCH v3 1/9] package/luainterpreter: add abi version options Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200727191616.GH19818@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox