Skip to contentSkip to conversation

package/luajit: depend on !BR2_PACKAGE_LUA

PATCH Applied James Hilliard 3 participants 3 messages May 3, 2022 – May 28, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/luajit: depend on !BR2_PACKAGE_LUA

We can't enable lua and luajit at the same time as they both provide the virtual luainterpreter package.

Fixes:
package/luajit/luajit.mk:80: *** Configuration error: both "luajit" and "lua" are selected as providers for virtual package "luainterpreter". Only one provider can be selected at a time. Please fix your configuration. Stop.

---
 package/luajit/Config.in | 2 ++
 package/snort3/Config.in | 2 ++
 2 files changed, 4 insertions(+)
package/luajit/Config.in +2 -0
index 3111a2548f..f27099e80c 100644
@@ -14,6 +14,8 @@ config BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
 config BR2_PACKAGE_LUAJIT
 	bool "luajit"
 	depends on !BR2_STATIC_LIBS # dlopen
+	# Luajit conflicts with the regular lua package
+	depends on !BR2_PACKAGE_LUA
 	# Luajit is only available for some target architectures, and
 	# has some complexity wrt 32/64. See luajit.mk for details.
 	depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
package/snort3/Config.in +2 -0
index dcc29b820a..9b96e7cb58 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_SNORT3
 	bool "snort3"
+	depends on !BR2_PACKAGE_LUA # luajit
 	depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS # luajit
 	depends on !(BR2_PACKAGE_DAQ || BR2_PACKAGE_SNORT)
 	depends on BR2_USE_MMU # fork()
@@ -34,6 +35,7 @@ config BR2_PACKAGE_SNORT3
 	  https://www.snort.org/snort3
 
 comment "snort3 needs a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 4.9"
+	depends on !BR2_PACKAGE_LUA
 	depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
 	depends on !(BR2_PACKAGE_DAQ || BR2_PACKAGE_SNORT)
 	depends on BR2_USE_MMU
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 7 lines · James Hilliard

We can't enable lua and luajit at the same time as they both provide the virtual luainterpreter package.

Fixes:
package/luajit/luajit.mk:80: *** Configuration error: both "luajit" and "lua" are selected as providers for virtual package "luainterpreter". Only one provider can be selected at a time. Please fix your configuration. Stop.

Applied to master, thanks.

Regards,
Arnout

Quoted 30 lines
---
  package/luajit/Config.in | 2 ++
  package/snort3/Config.in | 2 ++
  2 files changed, 4 insertions(+)
package/luajit/Config.in +2 -0
index 3111a2548f..f27099e80c 100644
@@ -14,6 +14,8 @@ config BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
  config BR2_PACKAGE_LUAJIT
  	bool "luajit"
  	depends on !BR2_STATIC_LIBS # dlopen
+	# Luajit conflicts with the regular lua package
+	depends on !BR2_PACKAGE_LUA
  	# Luajit is only available for some target architectures, and
  	# has some complexity wrt 32/64. See luajit.mk for details.
  	depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
package/snort3/Config.in +1 -0
index dcc29b820a..9b96e7cb58 100644
@@ -1,5 +1,6 @@
  config BR2_PACKAGE_SNORT3
  	bool "snort3"
+	depends on !BR2_PACKAGE_LUA # luajit
  	depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS # luajit
  	depends on !(BR2_PACKAGE_DAQ || BR2_PACKAGE_SNORT)
  	depends on BR2_USE_MMU # fork()

package/snort3/Config.in config BR2_PACKAGE_SNORT3 · line 41

Quoted 7 lines
package/snort3/Config.in +1 -0
@@ -34,6 +35,7 @@ config BR2_PACKAGE_SNORT3
  	  https://www.snort.org/snort3
 
  comment "snort3 needs a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 4.9"
+	depends on !BR2_PACKAGE_LUA
  	depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
  	depends on !(BR2_PACKAGE_DAQ || BR2_PACKAGE_SNORT)
  	depends on BR2_USE_MMU

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to James Hilliard
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"James" == James Hilliard <[email protected]> writes:

We can't enable lua and luajit at the same time as they both provide the virtual luainterpreter package.

Quoted 7 lines

Fixes:
package/luajit/luajit.mk:80: *** Configuration error: both "luajit" and "lua" are selected as providers for virtual package "luainterpreter". Only one provider can be selected at a time. Please fix your configuration. Stop.

Committed to 2022.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot