package/rpm: support lua v5.3+
authorJames Knight <james.d.knight@live.com>
Sun, 12 Sep 2021 00:42:13 +0000 (20:42 -0400)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 12 Sep 2021 07:48:58 +0000 (09:48 +0200)
The version bump [1] for the rpm package to v4.17 added the newly
required dependency to Lua; however, the change limited support to only
v5.3 (and not higher). Correcting support for v5.3 or higher by making
a dependency on the Lua package and omitting older versions which are
not supported (specifically, the v5.1 series)

[1]: 429e247b869027f6ecd4efa0f31bccd2765e3875

Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/rpm/Config.in

index adaf7c96ec2ea9e60f394a301a0a143b797a992e..8730e15200268661646f56bac5b8366993d5f844 100644 (file)
@@ -1,6 +1,6 @@
 comment "rpm needs a toolchain w/ dynamic library, threads and lua >= 5.3"
        depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS \
-               || !BR2_PACKAGE_LUA_5_3
+               || !BR2_PACKAGE_LUA || BR2_PACKAGE_LUA_5_1
        depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
        depends on BR2_USE_MMU
 
@@ -8,7 +8,7 @@ config BR2_PACKAGE_RPM
        bool "rpm"
        depends on !BR2_STATIC_LIBS # dlfcn.h
        depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
-       depends on BR2_PACKAGE_LUA_5_3
+       depends on BR2_PACKAGE_LUA && !BR2_PACKAGE_LUA_5_1
        depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on BR2_USE_MMU # fork()
        select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_LIBGCRYPT