All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/4] package/efl: switch to luajit support
@ 2016-04-27 20:46 Romain Naour
  2016-04-27 20:46 ` [Buildroot] [PATCH 2/4] package/efl: bump to 1.17.0 Romain Naour
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Romain Naour @ 2016-04-27 20:46 UTC (permalink / raw)
  To: buildroot

In efl 1.15.x, Lua "old" support is broken with Lua 5.2+ [1].

With the patch added in efl 1.16 to fixes this issue, libevas fail to link with
the following error:

CCLD bin/ecore_evas/ecore_evas_convert
host-efl-1.16.1/src/lib/evas/.libs/libevas.so: undefined reference to `luaL_openlib'
collect2: error: ld returned 1 exit status
Makefile:19021: recipe for target 'bin/ecore_evas/ecore_evas_convert' failed

Since 9ba8d1cce4ab00307827083bae234d87b37fb967, the luajit support can be
enabled in efl package.
In order to update the efl stack to 1.17, switch to luajit support and remove
Lua "old" support since it's not fixed upstream yet. But the drawback is the
efl stack depends implicitely on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS.

[1] https://phab.enlightenment.org/T2728

Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
 package/efl/Config.in |  6 +++---
 package/efl/efl.mk    | 17 +++++++++--------
 2 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/package/efl/Config.in b/package/efl/Config.in
index 88e2c36..c8e17d2 100644
--- a/package/efl/Config.in
+++ b/package/efl/Config.in
@@ -3,7 +3,7 @@ config BR2_PACKAGE_EFL
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on BR2_PACKAGE_HAS_UDEV # libudev
 	# https://phab.enlightenment.org/T2728
-	depends on BR2_PACKAGE_LUA_5_1 # needs lua 5.1, broken with 5.2+
+	depends on BR2_PACKAGE_LUAJIT # Lua support broken with 5.2+
 	depends on BR2_TOOLCHAIN_HAS_THREADS # untested without threads
 	depends on BR2_USE_MMU
 	depends on BR2_USE_WCHAR # use wchar_t
@@ -186,6 +186,6 @@ comment "efl needs udev /dev management and a toolchain w/ C++, dynamic library,
 		|| BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
 	depends on BR2_USE_MMU
 
-comment "efl needs lua 5.1"
-	depends on !BR2_PACKAGE_LUA_5_1
+comment "efl needs luajit"
+	depends on !BR2_PACKAGE_LUAJIT
 	depends on BR2_USE_MMU
diff --git a/package/efl/efl.mk b/package/efl/efl.mk
index 2ea2592..916999d 100644
--- a/package/efl/efl.mk
+++ b/package/efl/efl.mk
@@ -19,8 +19,8 @@ EFL_LICENSE_FILES = \
 
 EFL_INSTALL_STAGING = YES
 
-EFL_DEPENDENCIES = host-pkgconf host-efl dbus freetype jpeg lua udev \
-	util-linux zlib
+EFL_DEPENDENCIES = host-pkgconf host-efl host-luajit dbus freetype \
+	jpeg luajit udev util-linux zlib
 
 # Regenerate the autotools:
 #  - to fix an issue in eldbus-codegen: https://phab.enlightenment.org/T2718
@@ -29,19 +29,20 @@ EFL_GETTEXTIZE = YES
 
 # Configure options:
 # --disable-cxx-bindings: disable C++11 bindings.
+# --disable-lua-old: build elua for the target.
 # --disable-sdl: disable sdl2 support.
 # --disable-systemd: disable systemd support.
 # --disable-xinput22: disable X11 XInput v2.2+ support.
-# --enable-lua-old: disable Elua and remove luajit dependency.
 # --with-opengl=none: disable opengl support.
 EFL_CONF_OPTS = \
 	--with-edje-cc=$(HOST_DIR)/usr/bin/edje_cc \
+	--with-elua=$(HOST_DIR)/usr/bin/elua \
 	--with-eolian-gen=$(HOST_DIR)/usr/bin/eolian_gen \
 	--disable-cxx-bindings \
+	--disable-lua-old \
 	--disable-sdl \
 	--disable-systemd \
 	--disable-xinput22 \
-	--enable-lua-old \
 	--with-opengl=none
 
 # Disable untested configuration warning.
@@ -227,7 +228,7 @@ $(eval $(autotools-package))
 # * host-freetype: for libevas
 # * host-libglib2: for libecore
 # * host-libjpeg, host-libpng: for libevas image loader
-# * host-lua: disable luajit dependency
+# * host-luajit for Elua tool for the host
 HOST_EFL_DEPENDENCIES = \
 	host-pkgconf \
 	host-dbus \
@@ -235,7 +236,7 @@ HOST_EFL_DEPENDENCIES = \
 	host-libglib2 \
 	host-libjpeg \
 	host-libpng \
-	host-lua \
+	host-luajit \
 	host-zlib
 
 # Configure options:
@@ -246,10 +247,10 @@ HOST_EFL_DEPENDENCIES = \
 # --disable-gstreamer1: remove dependency on gtreamer 1.0.
 # --disable-libeeze: remove libudev dependency.
 # --disable-libmount: remove dependency on host-util-linux libmount.
+# --disable-lua-old: build elua for the host.
 # --disable-physics: remove Bullet dependency.
 # --enable-image-loader-gif=no: disable Gif dependency.
 # --enable-image-loader-tiff=no: disable Tiff dependency.
-# --enable-lua-old: disable Elua and remove luajit dependency.
 # --with-crypto=none: remove dependencies on openssl or gnutls.
 # --with-x11=none: remove dependency on X.org.
 #   Yes I really know what I am doing.
@@ -261,13 +262,13 @@ HOST_EFL_CONF_OPTS += \
 	--disable-gstreamer1 \
 	--disable-libeeze \
 	--disable-libmount \
+	--disable-lua-old \
 	--disable-multisense \
 	--disable-physics \
 	--enable-image-loader-gif=no \
 	--enable-image-loader-jpeg=yes \
 	--enable-image-loader-png=yes \
 	--enable-image-loader-tiff=no \
-	--enable-lua-old \
 	--with-crypto=none \
 	--with-glib=yes \
 	--with-opengl=none \
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 2/4] package/efl: bump to 1.17.0
  2016-04-27 20:46 [Buildroot] [PATCH 1/4] package/efl: switch to luajit support Romain Naour
@ 2016-04-27 20:46 ` Romain Naour
  2016-04-29 12:39   ` Gustavo Zacarias
  2016-04-27 20:46 ` [Buildroot] [PATCH 3/4] package/elementary: " Romain Naour
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 13+ messages in thread
From: Romain Naour @ 2016-04-27 20:46 UTC (permalink / raw)
  To: buildroot

Autoreconf has been fixed upstream.
Update the untested configuration warning option.

Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
 package/efl/efl.hash |  4 ++--
 package/efl/efl.mk   | 11 +++--------
 2 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/package/efl/efl.hash b/package/efl/efl.hash
index 6673bb5..4afee33 100644
--- a/package/efl/efl.hash
+++ b/package/efl/efl.hash
@@ -1,2 +1,2 @@
-# From https://download.enlightenment.org/rel/libs/efl/efl-1.15.3.tar.xz.sha256
-sha256	3bac40e6294288034bd7f8902088bf1169cf376f6fd25b7a49854ab561630642	efl-1.15.3.tar.xz
+# From https://download.enlightenment.org/rel/libs/efl/efl-1.17.0.tar.xz.sha256
+sha256	c13540bad764d014fea2c079fad8fcca62e5c229994d43aa4eb692d2c9b73afe	efl-1.17.0.tar.xz
diff --git a/package/efl/efl.mk b/package/efl/efl.mk
index 916999d..b1f1d90 100644
--- a/package/efl/efl.mk
+++ b/package/efl/efl.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-EFL_VERSION = 1.15.3
+EFL_VERSION = 1.17.0
 EFL_SOURCE = efl-$(EFL_VERSION).tar.xz
 EFL_SITE = http://download.enlightenment.org/rel/libs/efl
 EFL_LICENSE = BSD-2c, LGPLv2.1+, GPLv2+
@@ -22,11 +22,6 @@ EFL_INSTALL_STAGING = YES
 EFL_DEPENDENCIES = host-pkgconf host-efl host-luajit dbus freetype \
 	jpeg luajit udev util-linux zlib
 
-# Regenerate the autotools:
-#  - to fix an issue in eldbus-codegen: https://phab.enlightenment.org/T2718
-EFL_AUTORECONF = YES
-EFL_GETTEXTIZE = YES
-
 # Configure options:
 # --disable-cxx-bindings: disable C++11 bindings.
 # --disable-lua-old: build elua for the target.
@@ -47,7 +42,7 @@ EFL_CONF_OPTS = \
 
 # Disable untested configuration warning.
 ifeq ($(BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG),)
-EFL_CONF_OPTS += --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-aba
+EFL_CONF_OPTS += --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-abb
 endif
 
 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),y)
@@ -273,6 +268,6 @@ HOST_EFL_CONF_OPTS += \
 	--with-glib=yes \
 	--with-opengl=none \
 	--with-x11=none \
-	--enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-aba
+	--enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-abb
 
 $(eval $(host-autotools-package))
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 3/4] package/elementary: bump to 1.17.0
  2016-04-27 20:46 [Buildroot] [PATCH 1/4] package/efl: switch to luajit support Romain Naour
  2016-04-27 20:46 ` [Buildroot] [PATCH 2/4] package/efl: bump to 1.17.0 Romain Naour
@ 2016-04-27 20:46 ` Romain Naour
  2016-04-27 20:46 ` [Buildroot] [PATCH 4/4] package/enlightenment: bump to 0.20.7 Romain Naour
  2016-06-09 21:44 ` [Buildroot] [PATCH 1/4] package/efl: switch to luajit support Thomas Petazzoni
  3 siblings, 0 replies; 13+ messages in thread
From: Romain Naour @ 2016-04-27 20:46 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
 package/elementary/elementary.hash | 4 ++--
 package/elementary/elementary.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/elementary/elementary.hash b/package/elementary/elementary.hash
index ecdbc8e..cc8d886 100644
--- a/package/elementary/elementary.hash
+++ b/package/elementary/elementary.hash
@@ -1,2 +1,2 @@
-# From https://download.enlightenment.org/rel/libs/elementary/elementary-1.15.3.tar.xz.sha256
-sha256	474a9175061021ce8cbcfdbde6162316fc0d927b21118d1ab549377ebc802a93	elementary-1.15.3.tar.xz
+# From https://download.enlightenment.org/rel/libs/elementary/elementary-1.17.0.tar.xz.sha256
+sha256	6a6a5883939eab8d87179c7980c0dbd6b53d82bf460a161045a891694d036b2b	elementary-1.17.0.tar.xz
diff --git a/package/elementary/elementary.mk b/package/elementary/elementary.mk
index 7de0c7b..7fed4fb 100644
--- a/package/elementary/elementary.mk
+++ b/package/elementary/elementary.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-ELEMENTARY_VERSION = 1.15.3
+ELEMENTARY_VERSION = 1.17.0
 ELEMENTARY_SOURCE = elementary-$(ELEMENTARY_VERSION).tar.xz
 ELEMENTARY_SITE = http://download.enlightenment.org/rel/libs/elementary
 ELEMENTARY_LICENSE = LGPLv2.1
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 4/4] package/enlightenment: bump to 0.20.7
  2016-04-27 20:46 [Buildroot] [PATCH 1/4] package/efl: switch to luajit support Romain Naour
  2016-04-27 20:46 ` [Buildroot] [PATCH 2/4] package/efl: bump to 1.17.0 Romain Naour
  2016-04-27 20:46 ` [Buildroot] [PATCH 3/4] package/elementary: " Romain Naour
@ 2016-04-27 20:46 ` Romain Naour
  2016-06-09 21:44 ` [Buildroot] [PATCH 1/4] package/efl: switch to luajit support Thomas Petazzoni
  3 siblings, 0 replies; 13+ messages in thread
From: Romain Naour @ 2016-04-27 20:46 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
 package/enlightenment/enlightenment.hash | 4 ++--
 package/enlightenment/enlightenment.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/enlightenment/enlightenment.hash b/package/enlightenment/enlightenment.hash
index 66bdb49..0084233 100644
--- a/package/enlightenment/enlightenment.hash
+++ b/package/enlightenment/enlightenment.hash
@@ -1,2 +1,2 @@
-# From https://phab.enlightenment.org/phame/live/3/post/e19_14_release/
-sha256	8906e762f0d953752bfe002663280a855da9bb74acf613424c517b78a8dde407	enlightenment-0.19.14.tar.xz
+# From https://www.enlightenment.org/news/e20_7_release
+sha256	7cdee85928488bdeb07ab22f31c1aaf58e27ca365d327968cfed6a5f83ade181	enlightenment-0.20.7.tar.xz
diff --git a/package/enlightenment/enlightenment.mk b/package/enlightenment/enlightenment.mk
index a756361..c906104 100644
--- a/package/enlightenment/enlightenment.mk
+++ b/package/enlightenment/enlightenment.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-ENLIGHTENMENT_VERSION = 0.19.14
+ENLIGHTENMENT_VERSION = 0.20.7
 ENLIGHTENMENT_SOURCE = enlightenment-$(ENLIGHTENMENT_VERSION).tar.xz
 ENLIGHTENMENT_SITE = http://download.enlightenment.org/rel/apps/enlightenment
 ENLIGHTENMENT_LICENSE = BSD-2c
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 2/4] package/efl: bump to 1.17.0
  2016-04-27 20:46 ` [Buildroot] [PATCH 2/4] package/efl: bump to 1.17.0 Romain Naour
@ 2016-04-29 12:39   ` Gustavo Zacarias
  2016-04-29 20:26     ` Romain Naour
  0 siblings, 1 reply; 13+ messages in thread
From: Gustavo Zacarias @ 2016-04-29 12:39 UTC (permalink / raw)
  To: buildroot

On 27/04/16 17:46, Romain Naour wrote:

> Autoreconf has been fixed upstream.
> Update the untested configuration warning option.
>
> Signed-off-by: Romain Naour <romain.naour@gmail.com>

Hi Romain.
host-efl is failing to build in my tests:

   ELUA     lib/ecore_con/ecore_con_base.eo.lua
ERR<2199>:elua lib/elua/elua.c:647 _elua_errmsg() ../src/bin/elua/elua: 
...t/build/host-efl-1.17.0/src/bindings/luajit/eina/log.lua:53: 
libeina.so: cannot open shared object file: No such file or directory
stack traceback:
         [C]: in function 'error'
 
...put/build/host-efl-1.17.0/src/scripts/elua/core/util.lua:162: in 
function 'lib_load'
         ...t/build/host-efl-1.17.0/src/bindings/luajit/eina/log.lua:53: 
in function <...t/build/host-efl-1.17.0/src/bindings/luajit/eina/log.lua:52>
         [C]: in function 'init_module'
         ...t/build/host-efl-1.17.0/src/bindings/luajit/eina/log.lua:63: 
in function 'loader'
         ...t/build/host-efl-1.17.0/src/scripts/elua/core/module.lua:94: 
in function 'require'
         ...ild/host-efl-1.17.0/src/scripts/elua/modules/lualian.lua:5: 
in function 'loader'
         ...t/build/host-efl-1.17.0/src/scripts/elua/core/module.lua:94: 
in function 'require'
         .../build/host-efl-1.17.0/src/scripts/elua/apps/lualian.lua:4: 
in main chunk
         [C]: at 0x00401460
Makefile:40673: recipe for target 'lib/ecore_con/ecore_con_base.eo.lua' 
failed

libeina.so in fact doesn't exist in the host dir, however it does inside 
the host-efl build dir in src/lib/eina/.libs/libeina.so
Got any ideas to look into/try?

Regards.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 2/4] package/efl: bump to 1.17.0
  2016-04-29 12:39   ` Gustavo Zacarias
@ 2016-04-29 20:26     ` Romain Naour
  2016-04-30 12:22       ` Gustavo Zacarias
  0 siblings, 1 reply; 13+ messages in thread
From: Romain Naour @ 2016-04-29 20:26 UTC (permalink / raw)
  To: buildroot

Hello Gustavo,

Le 29/04/2016 ? 14:39, Gustavo Zacarias a ?crit :
> On 27/04/16 17:46, Romain Naour wrote:
> 
>> Autoreconf has been fixed upstream.
>> Update the untested configuration warning option.
>>
>> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> 
> Hi Romain.
> host-efl is failing to build in my tests:
> 
>   ELUA     lib/ecore_con/ecore_con_base.eo.lua
> ERR<2199>:elua lib/elua/elua.c:647 _elua_errmsg() ../src/bin/elua/elua:
> ...t/build/host-efl-1.17.0/src/bindings/luajit/eina/log.lua:53: libeina.so:
> cannot open shared object file: No such file or directory
> stack traceback:
>         [C]: in function 'error'
> 
> ...put/build/host-efl-1.17.0/src/scripts/elua/core/util.lua:162: in function
> 'lib_load'
>         ...t/build/host-efl-1.17.0/src/bindings/luajit/eina/log.lua:53: in
> function <...t/build/host-efl-1.17.0/src/bindings/luajit/eina/log.lua:52>
>         [C]: in function 'init_module'
>         ...t/build/host-efl-1.17.0/src/bindings/luajit/eina/log.lua:63: in
> function 'loader'
>         ...t/build/host-efl-1.17.0/src/scripts/elua/core/module.lua:94: in
> function 'require'
>         ...ild/host-efl-1.17.0/src/scripts/elua/modules/lualian.lua:5: in
> function 'loader'
>         ...t/build/host-efl-1.17.0/src/scripts/elua/core/module.lua:94: in
> function 'require'
>         .../build/host-efl-1.17.0/src/scripts/elua/apps/lualian.lua:4: in main
> chunk
>         [C]: at 0x00401460
> Makefile:40673: recipe for target 'lib/ecore_con/ecore_con_base.eo.lua' failed
> 
> libeina.so in fact doesn't exist in the host dir, however it does inside the
> host-efl build dir in src/lib/eina/.libs/libeina.so
> Got any ideas to look into/try?

Weird, I'm able to build host-efl here... let me retry again.
Can you share your Buildroot config and the host-efl config.log ?

Can you try to autoreconf the efl package ?
EFL_AUTORECONF = YES
EFL_GETTEXTIZE = YES

Thanks for testing :)

Best regards,
Romain
> 
> Regards.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 2/4] package/efl: bump to 1.17.0
  2016-04-29 20:26     ` Romain Naour
@ 2016-04-30 12:22       ` Gustavo Zacarias
  2016-04-30 14:56         ` Romain Naour
  0 siblings, 1 reply; 13+ messages in thread
From: Gustavo Zacarias @ 2016-04-30 12:22 UTC (permalink / raw)
  To: buildroot

On 29/04/16 17:26, Romain Naour wrote:

> Weird, I'm able to build host-efl here... let me retry again.
> Can you share your Buildroot config and the host-efl config.log ?
>
> Can you try to autoreconf the efl package ?
> EFL_AUTORECONF = YES
> EFL_GETTEXTIZE = YES

Hi Romain.
It fails the same, so https://www.zacarias.com.ar/host-efl-config.log
and https://www.zacarias.com.ar/efl-defconfig.txt
Thanks!
Regards.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 2/4] package/efl: bump to 1.17.0
  2016-04-30 12:22       ` Gustavo Zacarias
@ 2016-04-30 14:56         ` Romain Naour
  2016-04-30 23:04           ` Romain Naour
  0 siblings, 1 reply; 13+ messages in thread
From: Romain Naour @ 2016-04-30 14:56 UTC (permalink / raw)
  To: buildroot

Hi Gustavo,

Le 30/04/2016 14:22, Gustavo Zacarias a ?crit :
> On 29/04/16 17:26, Romain Naour wrote:
> 
>> Weird, I'm able to build host-efl here... let me retry again.
>> Can you share your Buildroot config and the host-efl config.log ?
>>
>> Can you try to autoreconf the efl package ?
>> EFL_AUTORECONF = YES
>> EFL_GETTEXTIZE = YES
> 
> Hi Romain.
> It fails the same, so https://www.zacarias.com.ar/host-efl-config.log
> and https://www.zacarias.com.ar/efl-defconfig.txt

I'm unable to reproduce your issue :-(

But probably the issue is here:
USE_EVAS_LIBS='  [...] -lfreetype -L/usr/lib -lluajit-5.1 '

It seems that it doesn't use the luajit library from host-luajit package...
Otherwise I don't know.

Best regards,
Romain

> Thanks!
> Regards.
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 2/4] package/efl: bump to 1.17.0
  2016-04-30 14:56         ` Romain Naour
@ 2016-04-30 23:04           ` Romain Naour
  2016-05-01 13:18             ` Gustavo Zacarias
  0 siblings, 1 reply; 13+ messages in thread
From: Romain Naour @ 2016-04-30 23:04 UTC (permalink / raw)
  To: buildroot

Hi Gustavo,

Le 30/04/2016 ? 16:56, Romain Naour a ?crit :
> Hi Gustavo,
> 
> Le 30/04/2016 14:22, Gustavo Zacarias a ?crit :
>> On 29/04/16 17:26, Romain Naour wrote:
>>
>>> Weird, I'm able to build host-efl here... let me retry again.
>>> Can you share your Buildroot config and the host-efl config.log ?
>>>
>>> Can you try to autoreconf the efl package ?
>>> EFL_AUTORECONF = YES
>>> EFL_GETTEXTIZE = YES
>>
>> Hi Romain.
>> It fails the same, so https://www.zacarias.com.ar/host-efl-config.log
>> and https://www.zacarias.com.ar/efl-defconfig.txt
> 
> I'm unable to reproduce your issue :-(
> 
> But probably the issue is here:
> USE_EVAS_LIBS='  [...] -lfreetype -L/usr/lib -lluajit-5.1 '
> 
> It seems that it doesn't use the luajit library from host-luajit package...
> Otherwise I don't know.

The .pc file is manually generated in the luajit Makefile, so it give a wrong
path for host-luajit.

$ host/usr/bin/pkgconf --cflags luajit
/usr/include/luajit-2.0

It should be:
$ host/usr/bin/pkgconf --cflags luajit
[...]output/host/usr/include/luajit-2.0

Can you try with this patch ?

diff --git a/package/luajit/luajit.mk b/package/luajit/luajit.mk
index 623bfcc..0aab04d 100644
--- a/package/luajit/luajit.mk
+++ b/package/luajit/luajit.mk
@@ -75,5 +75,11 @@ define HOST_LUAJIT_INSTALL_CMDS
        $(MAKE) PREFIX="/usr" DESTDIR="$(HOST_DIR)" LDCONFIG=true -C $(@D) install
 endef

+define HOST_LUAJIT_FIX_PC_FILE
+       sed -i -e "s|^prefix=.*|prefix=$(HOST_DIR)/usr|"
$(HOST_DIR)/usr/lib/pkgconfig/luajit.pc
+endef
+
+HOST_LUAJIT_POST_INSTALL_HOOKS = HOST_LUAJIT_FIX_PC_FILE
+
 $(eval $(generic-package))
 $(eval $(host-generic-package))

Best regards,
Romain
> 
> Best regards,
> Romain
> 
>> Thanks!
>> Regards.
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
> 

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 2/4] package/efl: bump to 1.17.0
  2016-04-30 23:04           ` Romain Naour
@ 2016-05-01 13:18             ` Gustavo Zacarias
  2016-05-07 10:09               ` Romain Naour
  0 siblings, 1 reply; 13+ messages in thread
From: Gustavo Zacarias @ 2016-05-01 13:18 UTC (permalink / raw)
  To: buildroot

On 30/04/16 20:04, Romain Naour wrote:


> The .pc file is manually generated in the luajit Makefile, so it give a wrong
> path for host-luajit.
>
> $ host/usr/bin/pkgconf --cflags luajit
> /usr/include/luajit-2.0
>
> It should be:
> $ host/usr/bin/pkgconf --cflags luajit
> [...]output/host/usr/include/luajit-2.0
>
> Can you try with this patch ?
>
> diff --git a/package/luajit/luajit.mk b/package/luajit/luajit.mk
> index 623bfcc..0aab04d 100644
> --- a/package/luajit/luajit.mk
> +++ b/package/luajit/luajit.mk
> @@ -75,5 +75,11 @@ define HOST_LUAJIT_INSTALL_CMDS
>          $(MAKE) PREFIX="/usr" DESTDIR="$(HOST_DIR)" LDCONFIG=true -C $(@D) install
>   endef
>
> +define HOST_LUAJIT_FIX_PC_FILE
> +       sed -i -e "s|^prefix=.*|prefix=$(HOST_DIR)/usr|"
> $(HOST_DIR)/usr/lib/pkgconfig/luajit.pc
> +endef
> +
> +HOST_LUAJIT_POST_INSTALL_HOOKS = HOST_LUAJIT_FIX_PC_FILE
> +
>   $(eval $(generic-package))
>   $(eval $(host-generic-package))
>
> Best regards,
> Romain

Hi Romain.
It doesn't help, the problem seems to be that efl is picking up the 
distro luajit (which i have installed) over any other alternative.
I'll try to cook a patch on my side.
Regards.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 2/4] package/efl: bump to 1.17.0
  2016-05-01 13:18             ` Gustavo Zacarias
@ 2016-05-07 10:09               ` Romain Naour
  0 siblings, 0 replies; 13+ messages in thread
From: Romain Naour @ 2016-05-07 10:09 UTC (permalink / raw)
  To: buildroot

Hi Gustavo, Thomas, All

Le 01/05/2016 ? 15:18, Gustavo Zacarias a ?crit :
> On 30/04/16 20:04, Romain Naour wrote:
> 
> 
>> The .pc file is manually generated in the luajit Makefile, so it give a wrong
>> path for host-luajit.
>>
>> $ host/usr/bin/pkgconf --cflags luajit
>> /usr/include/luajit-2.0
>>
>> It should be:
>> $ host/usr/bin/pkgconf --cflags luajit
>> [...]output/host/usr/include/luajit-2.0
>>
>> Can you try with this patch ?
>>
>> diff --git a/package/luajit/luajit.mk b/package/luajit/luajit.mk
>> index 623bfcc..0aab04d 100644
>> --- a/package/luajit/luajit.mk
>> +++ b/package/luajit/luajit.mk
>> @@ -75,5 +75,11 @@ define HOST_LUAJIT_INSTALL_CMDS
>>          $(MAKE) PREFIX="/usr" DESTDIR="$(HOST_DIR)" LDCONFIG=true -C $(@D)
>> install
>>   endef
>>
>> +define HOST_LUAJIT_FIX_PC_FILE
>> +       sed -i -e "s|^prefix=.*|prefix=$(HOST_DIR)/usr|"
>> $(HOST_DIR)/usr/lib/pkgconfig/luajit.pc
>> +endef
>> +
>> +HOST_LUAJIT_POST_INSTALL_HOOKS = HOST_LUAJIT_FIX_PC_FILE
>> +
>>   $(eval $(generic-package))
>>   $(eval $(host-generic-package))
>>
>> Best regards,
>> Romain
> 
> Hi Romain.
> It doesn't help, the problem seems to be that efl is picking up the distro
> luajit (which i have installed) over any other alternative.
> I'll try to cook a patch on my side.
> Regards.

Gustavo, any progress on your side ?

I tried with and without luajit (from the distro) installed on a Fedora 23 and
Debian 8 system, I can't reproduce your build issue.

Also I fixed the host-luajit issue [1] since then.

Thomas, do you think it's too late for this series ?

Best regards,
Romain

[1]
https://git.busybox.net/buildroot/commit/?id=e05a5b8e342f94aae7d79fe648003dd1a65ebc41


> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 1/4] package/efl: switch to luajit support
  2016-04-27 20:46 [Buildroot] [PATCH 1/4] package/efl: switch to luajit support Romain Naour
                   ` (2 preceding siblings ...)
  2016-04-27 20:46 ` [Buildroot] [PATCH 4/4] package/enlightenment: bump to 0.20.7 Romain Naour
@ 2016-06-09 21:44 ` Thomas Petazzoni
  2016-06-11 13:57   ` Thomas Petazzoni
  3 siblings, 1 reply; 13+ messages in thread
From: Thomas Petazzoni @ 2016-06-09 21:44 UTC (permalink / raw)
  To: buildroot

Romain,

On Wed, 27 Apr 2016 22:46:51 +0200, Romain Naour wrote:
> In efl 1.15.x, Lua "old" support is broken with Lua 5.2+ [1].
> 
> With the patch added in efl 1.16 to fixes this issue, libevas fail to link with
> the following error:
> 
> CCLD bin/ecore_evas/ecore_evas_convert
> host-efl-1.16.1/src/lib/evas/.libs/libevas.so: undefined reference to `luaL_openlib'
> collect2: error: ld returned 1 exit status
> Makefile:19021: recipe for target 'bin/ecore_evas/ecore_evas_convert' failed
> 
> Since 9ba8d1cce4ab00307827083bae234d87b37fb967, the luajit support can be
> enabled in efl package.
> In order to update the efl stack to 1.17, switch to luajit support and remove
> Lua "old" support since it's not fixed upstream yet. But the drawback is the
> efl stack depends implicitely on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS.
> 
> [1] https://phab.enlightenment.org/T2728
> 
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> ---
>  package/efl/Config.in |  6 +++---
>  package/efl/efl.mk    | 17 +++++++++--------
>  2 files changed, 12 insertions(+), 11 deletions(-)

I've applied this series of four patches, and did just one change:
modified this patch (1/4) to select luajit instead of using a "depends
on". But with the following defconfig:

BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-arm-full-2016.05-2-g5dabb45.tar.bz2"
BR2_TOOLCHAIN_EXTERNAL_GCC_4_8=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_10=y
BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
# BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set
BR2_TOOLCHAIN_EXTERNAL_INET_RPC=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_INIT_NONE=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_EFL=y
# BR2_TARGET_ROOTFS_TAR is not set

The build fails with:

  CC       lib/ector/gl/lib_ector_libector_la-ector_gl_shader.lo
In file included from ../src/lib/ector/ector_private.h:6,
                 from lib/ector/gl/ector_renderer_gl_gradient_radial.c:9:
../src/lib/ector/ector_gl_internal.h:778: error: redefinition of typedef 'GLshort'
../src/lib/ector/gl/Ector_GL.h:16: note: previous declaration of 'GLshort' was here
../src/lib/ector/ector_gl_internal.h:783: error: redefinition of typedef 'GLuint'
../src/lib/ector/gl/Ector_GL.h:15: note: previous declaration of 'GLuint' was here
make[5]: *** [lib/ector/gl/lib_ector_libector_la-ector_renderer_gl_gradient_radial.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
In file included from ../src/lib/ector/ector_private.h:6,
                 from lib/ector/gl/ector_renderer_gl_gradient_linear.c:9:
../src/lib/ector/ector_gl_internal.h:778: error: redefinition of typedef 'GLshort'
../src/lib/ector/gl/Ector_GL.h:16: note: previous declaration of 'GLshort' was here
../src/lib/ector/ector_gl_internal.h:783: error: redefinition of typedef 'GLuint'
../src/lib/ector/gl/Ector_GL.h:15: note: previous declaration of 'GLuint' was here
make[5]: *** [lib/ector/gl/lib_ector_libector_la-ector_renderer_gl_gradient_linear.lo] Error 1
[...]
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/test/buildroot/output/build/host-efl-1.17.0'
make: *** [/home/test/buildroot/output/build/host-efl-1.17.0/.stamp_built] Error 2

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 1/4] package/efl: switch to luajit support
  2016-06-09 21:44 ` [Buildroot] [PATCH 1/4] package/efl: switch to luajit support Thomas Petazzoni
@ 2016-06-11 13:57   ` Thomas Petazzoni
  0 siblings, 0 replies; 13+ messages in thread
From: Thomas Petazzoni @ 2016-06-11 13:57 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 9 Jun 2016 23:44:20 +0200, Thomas Petazzoni wrote:

>   CC       lib/ector/gl/lib_ector_libector_la-ector_gl_shader.lo
> In file included from ../src/lib/ector/ector_private.h:6,
>                  from lib/ector/gl/ector_renderer_gl_gradient_radial.c:9:
> ../src/lib/ector/ector_gl_internal.h:778: error: redefinition of typedef 'GLshort'
> ../src/lib/ector/gl/Ector_GL.h:16: note: previous declaration of 'GLshort' was here
> ../src/lib/ector/ector_gl_internal.h:783: error: redefinition of typedef 'GLuint'
> ../src/lib/ector/gl/Ector_GL.h:15: note: previous declaration of 'GLuint' was here
> make[5]: *** [lib/ector/gl/lib_ector_libector_la-ector_renderer_gl_gradient_radial.lo] Error 1
> make[5]: *** Waiting for unfinished jobs....
> In file included from ../src/lib/ector/ector_private.h:6,
>                  from lib/ector/gl/ector_renderer_gl_gradient_linear.c:9:
> ../src/lib/ector/ector_gl_internal.h:778: error: redefinition of typedef 'GLshort'
> ../src/lib/ector/gl/Ector_GL.h:16: note: previous declaration of 'GLshort' was here
> ../src/lib/ector/ector_gl_internal.h:783: error: redefinition of typedef 'GLuint'
> ../src/lib/ector/gl/Ector_GL.h:15: note: previous declaration of 'GLuint' was here
> make[5]: *** [lib/ector/gl/lib_ector_libector_la-ector_renderer_gl_gradient_linear.lo] Error 1
> [...]
> make[4]: *** [all-recursive] Error 1
> make[3]: *** [all] Error 2
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/test/buildroot/output/build/host-efl-1.17.0'
> make: *** [/home/test/buildroot/output/build/host-efl-1.17.0/.stamp_built] Error 2

As you requested on IRC, here is the host-efl config.log file:

  http://code.bulix.org/3yukrd-101034

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-06-11 13:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-27 20:46 [Buildroot] [PATCH 1/4] package/efl: switch to luajit support Romain Naour
2016-04-27 20:46 ` [Buildroot] [PATCH 2/4] package/efl: bump to 1.17.0 Romain Naour
2016-04-29 12:39   ` Gustavo Zacarias
2016-04-29 20:26     ` Romain Naour
2016-04-30 12:22       ` Gustavo Zacarias
2016-04-30 14:56         ` Romain Naour
2016-04-30 23:04           ` Romain Naour
2016-05-01 13:18             ` Gustavo Zacarias
2016-05-07 10:09               ` Romain Naour
2016-04-27 20:46 ` [Buildroot] [PATCH 3/4] package/elementary: " Romain Naour
2016-04-27 20:46 ` [Buildroot] [PATCH 4/4] package/enlightenment: bump to 0.20.7 Romain Naour
2016-06-09 21:44 ` [Buildroot] [PATCH 1/4] package/efl: switch to luajit support Thomas Petazzoni
2016-06-11 13:57   ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.