Skip to contentSkip to conversation

libpeas: Disable lua support on architectures without luajit port

PATCH New Khem Raj 1 participant 2 messages Dec 18, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 libpeas: Disable lua support on architectures without luajit port

---
 meta-gnome/recipes-gnome/libpeas/libpeas_2.0.5.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-gnome/recipes-gnome/libpeas/libpeas_2.0.5.bb +5 -0
index 8c7d364765..557831da6e 100644
@@ -11,6 +11,11 @@ SRC_URI += "file://disable-lgi-check.patch"
 SRC_URI[archive.sha256sum] = "376f2f73d731b54e13ddbab1d91b6382cf6a980524def44df62add15489de6dd"
 
 PACKAGECONFIG ?= "python3 gjs lua51 ${@bb.utils.contains('DISTRO_FEATURES', 'gobject-introspection', 'vala', '', d)}"
+PACKAGECONFIG:remove:riscv32 = "lua51"
+PACKAGECONFIG:remove:riscv64 = "lua51"
+PACKAGECONFIG:remove:powerpc64 = "lua51"
+PACKAGECONFIG:remove:powerpc64le = "lua51"
+
 PACKAGECONFIG[python3] = "-Dpython3=true,-Dpython3=false,python3-pygobject,python3-pygobject"
 PACKAGECONFIG[gjs] = "-Dgjs=true,-Dgjs=false,gjs mozjs-128"
 PACKAGECONFIG[lua51] = "-Dlua51=true,-Dlua51=false,luajit luajit-native,lua-lgi"
author
#1 lore raw

PATCH 1/1 lua-lgi: Disable on architecture without luajit port

---
 meta-oe/recipes-support/lgi/lua-lgi_0.9.2.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-oe/recipes-support/lgi/lua-lgi_0.9.2.bb +6 -0
index 1584a931c7..8b436668dc 100644
@@ -22,3 +22,9 @@ inherit meson pkgconfig
 EXTRA_OEMESON += "--buildtype release -Dtests=false"
 
 FILES:${PN} = "${libdir} ${datadir}"
+
+# ppc64/riscv64/riscv32 is not supported on luajit
+COMPATIBLE_HOST:riscv32 = "null"
+COMPATIBLE_HOST:riscv64 = "null"
+COMPATIBLE_HOST:powerpc64 = "null"
+COMPATIBLE_HOST:powerpc64le = "null"