Skip to contentSkip to conversation

tekui: relax dynamic library dependency

PATCH New Francois Perrad 3 participants 5 messages Jul 7, 2016 – Jul 8, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tekui: relax dynamic library dependency

tekui doesn't really require these Lua modules.
These modules are added because they increase the user experience with demo/examples.

---
 package/tekui/Config.in | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
package/tekui/Config.in +6 -8
index 1203667..5f461ec 100644
@@ -1,11 +1,10 @@
 config BR2_PACKAGE_TEKUI
 	bool "tekui"
 	select BR2_PACKAGE_FREETYPE
-	select BR2_PACKAGE_LUAFILESYSTEM	# runtime only
-	select BR2_PACKAGE_LUAEXPAT		# runtime only
-	select BR2_PACKAGE_LUASOCKET		# runtime only
-	select BR2_PACKAGE_LUAPOSIX		# runtime only
-	depends on !BR2_STATIC_LIBS
+	select BR2_PACKAGE_LUAFILESYSTEM if !BR2_STATIC_LIBS	# runtime only (demo/examples)
+	select BR2_PACKAGE_LUAEXPAT if !BR2_STATIC_LIBS		# runtime only (demo/examples)
+	select BR2_PACKAGE_LUASOCKET if !BR2_STATIC_LIBS		# runtime only (demo/examples)
+	select BR2_PACKAGE_LUAPOSIX if !BR2_STATIC_LIBS		# runtime only (demo/examples)
 	depends on BR2_PACKAGE_HAS_LUAINTERPRETER
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	help
@@ -16,6 +15,5 @@ config BR2_PACKAGE_TEKUI
 
 	  http://tekui.neoscientists.org/
 
-comment "tekui needs a Lua interpreter and a toolchain w/ threads, dynamic library"
-	depends on !BR2_PACKAGE_HAS_LUAINTERPRETER || !BR2_TOOLCHAIN_HAS_THREADS || \
-		BR2_STATIC_LIBS
+comment "tekui needs a Lua interpreter and a toolchain w/ threads"
+	depends on !BR2_PACKAGE_HAS_LUAINTERPRETER || !BR2_TOOLCHAIN_HAS_THREADS
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 tekui: relax dynamic library dependency

Hello,

Quoted 4 lines · Francois Perrad

tekui doesn't really require these Lua modules.
These modules are added because they increase the user experience with demo/examples.

Then perhaps there should be a sub-option to enable the demo/examples?

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 tekui: relax dynamic library dependency

2016-07-07 21:32 GMT+02:00 Thomas Petazzoni
<[email protected]>:

Quoted 10 lines

Hello,

Quoted 4 lines · Francois Perrad

tekui doesn't really require these Lua modules.
These modules are added because they increase the user experience with demo/examples.

Then perhaps there should be a sub-option to enable the demo/examples?

A sub-option "Demo" is usual in BR.
But with TekUI, the sub-option will be "Dependencies for Demo". It sounds bad.

Fran?ois

Quoted 11 lines

Thanks,

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#3 lore raw

PATCH 1/1 tekui: relax dynamic library dependency

Hello,

Quoted 3 lines · Fran?ois Perrad

A sub-option "Demo" is usual in BR.
But with TekUI, the sub-option will be "Dependencies for Demo". It sounds bad.

Why would the sub-option be named "Dependencies for Demo" ?

If the tekui build system automatically detects the availability of those dependencies to build/install the demos, then it is just fine:
you can have a sub-option called "Install demos" that adds the necessary dependencies.

Or is tekui installing the demos unconditionally, and then they are potentially broken on the target due to missing dependencies ?

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#4 lore raw

PATCH 1/1 tekui: relax dynamic library dependency

In reply to Francois Perrad

Forget this patch.

TekUI requires dynamic library.

Fran?ois

2016-07-07 19:01 GMT+02:00 Francois Perrad <[email protected]>:

Quoted 44 lines

tekui doesn't really require these Lua modules.
These modules are added because they increase the user experience with demo/examples.

---
 package/tekui/Config.in | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
package/tekui/Config.in +4 -5
index 1203667..5f461ec 100644
@@ -1,11 +1,10 @@
 config BR2_PACKAGE_TEKUI
        bool "tekui"
        select BR2_PACKAGE_FREETYPE
-       select BR2_PACKAGE_LUAFILESYSTEM        # runtime only
-       select BR2_PACKAGE_LUAEXPAT             # runtime only
-       select BR2_PACKAGE_LUASOCKET            # runtime only
-       select BR2_PACKAGE_LUAPOSIX             # runtime only
-       depends on !BR2_STATIC_LIBS
+       select BR2_PACKAGE_LUAFILESYSTEM if !BR2_STATIC_LIBS    # runtime
 only (demo/examples)
+       select BR2_PACKAGE_LUAEXPAT if !BR2_STATIC_LIBS         # runtime
 only (demo/examples)
+       select BR2_PACKAGE_LUASOCKET if !BR2_STATIC_LIBS                #
 runtime only (demo/examples)
+       select BR2_PACKAGE_LUAPOSIX if !BR2_STATIC_LIBS         # runtime

only (demo/examples)
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
depends on BR2_TOOLCHAIN_HAS_THREADS
help

package/tekui/Config.in +0 -1
@@ -16,6 +15,5 @@ config BR2_PACKAGE_TEKUI
 
          http://tekui.neoscientists.org/
 
-comment "tekui needs a Lua interpreter and a toolchain w/ threads,

dynamic library"
- depends on !BR2_PACKAGE_HAS_LUAINTERPRETER ||
!BR2_TOOLCHAIN_HAS_THREADS || \

package/tekui/Config.in +2 -1
-               BR2_STATIC_LIBS
+comment "tekui needs a Lua interpreter and a toolchain w/ threads"
+       depends on !BR2_PACKAGE_HAS_LUAINTERPRETER ||
Quoted 5 lines

!BR2_TOOLCHAIN_HAS_THREADS
--
2.7.4

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160708/48e6aa8d/attachment.html>