Skip to contentSkip to conversation

ibus: no need for -native recipe

PATCH New Ross Burton 1 participant 2 messages Oct 1

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ibus: no need for -native recipe

We were building ibus-native for the unicode-parser tool that is needed at build time. However, ibus can correctly build that (and other tools) in cross-compiled environments since 1.5.29[1], so there's no need to have a native recipe anymore.

[1] ibus 18f0d9f5 ("configure: Fix cross compiling")

---
 .../recipes-support/ibus/ibus-native.bb       | 35 -------------------
 meta-gnome/recipes-support/ibus/ibus.bb       |  6 ----
 2 files changed, 41 deletions(-)
 delete mode 100644 meta-gnome/recipes-support/ibus/ibus-native.bb
meta-gnome/recipes-support/ibus/ibus-native.bb deleted +0 -35
deleted file mode 100644
index 7ba9b57617..0000000000
@@ -1,35 +0,0 @@
-require ${BPN}.inc
-
-inherit native
-
-DEPENDS += " \
-    glib-2.0-native \
-    dbus-native \
-    iso-codes \
-"
-
-PACKAGECONFIG = ""
-
-# for allarch iso-codes
-EXTRA_NATIVE_PKGCONFIG_PATH = ":${RECIPE_SYSROOT}${datadir_native}/pkgconfig"
-# for allarch unicode-ucd - just to make configure happy
-EXTRA_OECONF += "--with-ucd-dir=${RECIPE_SYSROOT}${datadir_native}/unicode/ucd"
-
-do_compile() {
-    cd src
-    # seems by moving to src we break dependency tracking so build what's
-    # necessary step by step
-    oe_runmake ibusenumtypes.h
-    oe_runmake ibusmarshalers.h
-    oe_runmake ibusresources.h
-    oe_runmake ibusenumtypes.c
-    oe_runmake unicode-parser
-}
-
-do_install() {
-    install -d ${D}/${libdir}
-    install -m 755 ${S}/src/.libs/libibus-*.so* ${D}/${libdir}
-
-    install -d ${D}/${bindir}
-    install -m 755 ${S}/src/.libs/unicode-parser ${D}/${bindir}
-}
meta-gnome/recipes-support/ibus/ibus.bb +0 -6
index 08a7804ea9..99056a83d4 100644
@@ -1,7 +1,6 @@
 require ${BPN}.inc
 
 DEPENDS += " \
-    ${BPN}-native \
     glib-2.0-native \
     glib-2.0 \
     dbus \
@@ -26,11 +25,6 @@ do_compile:prepend() {
     export GIR_EXTRA_LIBS_PATH="${B}/src/.libs"
 }
 
-do_configure:prepend() {
-    # run native unicode-parser
-    sed -i 's:$(builddir)/unicode-parser:unicode-parser:g' ${S}/src/Makefile.am
-}
-
 FILES:${PN} += " \
     ${datadir}/dbus-1 \
     ${datadir}/GConf \
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/2 ibus: merge bb/inc

Now that ibus-native doesn't exist, there's no need to have split .bb and .inc files.

---
 meta-gnome/recipes-support/ibus/ibus.bb       | 41 -------------------
 .../ibus/{ibus.inc => ibus_1.5.34.bb}         | 41 +++++++++++++++----
 2 files changed, 32 insertions(+), 50 deletions(-)
 delete mode 100644 meta-gnome/recipes-support/ibus/ibus.bb
 rename meta-gnome/recipes-support/ibus/{ibus.inc => ibus_1.5.34.bb} (61%)
meta-gnome/recipes-support/ibus/ibus.bb deleted +0 -41
deleted file mode 100644
index 99056a83d4..0000000000
@@ -1,41 +0,0 @@
-require ${BPN}.inc
-
-DEPENDS += " \
-    glib-2.0-native \
-    glib-2.0 \
-    dbus \
-    iso-codes \
-"
-
-inherit gtk-icon-cache bash-completion features_check
-
-# for unicode-ucd
-EXTRA_OECONF += "--with-ucd-dir=${STAGING_DATADIR}/unicode/ucd"
-
-PACKAGECONFIG ??= " \
-    dconf vala \
-    ${@bb.utils.contains_any('DISTRO_FEATURES', [ 'wayland', 'x11' ], 'gtk3 gtk4', '', d)} \
-    ${@bb.utils.filter('DISTRO_FEATURES', 'systemd wayland x11', d)} \
-    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libnotify', '', d)} \
-"
-
-REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'gtk4', 'opengl', '', d)}"
-
-do_compile:prepend() {
-    export GIR_EXTRA_LIBS_PATH="${B}/src/.libs"
-}
-
-FILES:${PN} += " \
-    ${datadir}/dbus-1 \
-    ${datadir}/GConf \
-    ${datadir}/glib-2.0 \
-    ${libdir}/gtk-2.0 \
-    ${libdir}/gtk-3.0 \
-    ${libdir}/gtk-4.0 \
-    ${systemd_user_unitdir} \
-"
-
-FILES:${PN}-dev += " \
-    ${datadir}/gettext \
-"
-RDEPENDS:${PN} += "python3-core"
meta-gnome/recipes-support/ibus/ibus_1.5.34.bb renamed from meta-gnome/recipes-support/ibus/ibus.inc +32 -9

67 lines not on this page · raw message

Signature · 1 line
2.43.0