Skip to contentSkip to conversation

Adjust for switching default build system for gnomebase

PATCH New Khem Raj 1 participant 7 messages Nov 13, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

v3 cover Adjust for switching default build system for gnomebase

Its changing from autools -> meson in gnomebase class in core, however not all recipes can/have migrated to meson therefore demand autotools explicitly when needed

---
Changes in v3:
- librest: use autotools to build.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- toscoterm: Delete recipe.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Khem Raj (6):
meta-networking: Use autotools make system
meta-oe: Use autotools make system
toscoterm: Skip recipe, slated for removal
loudmouth: Upgrade to 1.5.4
toscoterm: Delete recipe
librest: Use autotools make system

 meta-gnome/recipes-gnome/rest/librest_0.8.1.bb     |  1 +
 .../networkmanager-fortisslvpn_1.4.0.bb            |  1 +
 .../networkmanager-openconnect_1.2.8.bb            |  1 +
 .../networkmanager-openvpn_1.10.2.bb               |  1 +
 .../04-use-pkg-config-for-gnutls.patch             | 25 -------------------
 .../loudmouth/loudmouth-1.4.3/glib-2.32.patch      | 12 ---------
 .../loudmouth/loudmouth_1.4.3.bb                   | 21 ----------------
 .../loudmouth/loudmouth_1.5.4.bb                   | 16 ++++++++++++
 .../packagegroups/packagegroup-meta-oe.bb          |  1 -
 meta-oe/recipes-devtools/glade/glade_3.22.2.bb     |  2 +-
 meta-oe/recipes-gnome/gtk+/gtkmm_2.24.5.bb         |  1 +
 meta-oe/recipes-support/toscoterm/toscoterm_git.bb | 29 ----------------------
 12 files changed, 22 insertions(+), 89 deletions(-)

---
base-commit: 6f26ff340bc9d07e7bdf6f4f75b2c81935230069
change-id: 20231112-kraj-pu-3b9ab728b087

Best regards,

Signature · 1 line
Khem Raj <[email protected]>
author
#1 lore raw

PATCH v3 1/6 meta-networking: Use autotools make system

OE-core is switching to default to meson for gnome recipes

---
 .../networkmanager/networkmanager-fortisslvpn_1.4.0.bb                   | 1 +
 .../networkmanager/networkmanager-openconnect_1.2.8.bb                   | 1 +
 .../recipes-connectivity/networkmanager/networkmanager-openvpn_1.10.2.bb | 1 +
 3 files changed, 3 insertions(+)
meta-networking/recipes-connectivity/networkmanager/networkmanager-fortisslvpn_1.4.0.bb +1 -0
index a251e8bf3d..a15c69b601 100644
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
 
 DEPENDS = "glib-2.0-native libxml2-native networkmanager ppp"
 
+GNOMEBASEBUILDCLASS = "autotools"
 inherit gnomebase gettext useradd
 
 SRC_URI = " \
meta-networking/recipes-connectivity/networkmanager/networkmanager-openconnect_1.2.8.bb +1 -0
index c978defbbf..ee19afbd11 100644
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=186e8b54342da4f753a62b7748c947db"
 
 DEPENDS = "glib-2.0-native intltool-native libxml2 networkmanager openconnect"
 
+GNOMEBASEBUILDCLASS = "autotools"
 inherit gnomebase useradd
 
 SRC_URI = "${GNOME_MIRROR}/NetworkManager-openconnect/${@gnome_verdir("${PV}")}/NetworkManager-openconnect-${PV}.tar.xz"
meta-networking/recipes-connectivity/networkmanager/networkmanager-openvpn_1.10.2.bb +1 -0
index a9afe3a7e4..cdef11c89c 100644
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=100d5a599bead70ddcd70dcd73f2e29c"
 
 DEPENDS = "dbus dbus-glib networkmanager openvpn intltool-native glib-2.0-native"
 
+GNOMEBASEBUILDCLASS = "autotools"
 inherit gnomebase useradd gettext systemd
 
 SRC_URI = "${GNOME_MIRROR}/NetworkManager-openvpn/${@gnome_verdir("${PV}")}/NetworkManager-openvpn-${PV}.tar.xz"
Signature · 1 line
2.42.1
author
#2 lore raw

PATCH v3 2/6 meta-oe: Use autotools make system

In reply to Khem Raj

OE-core is switching to default to meson for gnome recipes

---
 meta-oe/recipes-connectivity/loudmouth/loudmouth_1.4.3.bb | 1 +
 meta-oe/recipes-devtools/glade/glade_3.22.2.bb            | 2 +-
 meta-oe/recipes-gnome/gtk+/gtkmm_2.24.5.bb                | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-connectivity/loudmouth/loudmouth_1.4.3.bb +1 -0
index 7b5eecf54d..0593469a45 100644
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c4f38aef94828f6b280e00d1173be689"
 
 DEPENDS = "glib-2.0 libcheck openssl libidn"
 
+GNOMEBASEBUILDCLASS = "autotools"
 inherit gnomebase gtk-doc
 
 PR = "r2"
meta-oe/recipes-devtools/glade/glade_3.22.2.bb +1 -1
index 28b1279390..3936e04c6d 100644
@@ -8,7 +8,7 @@ DEPENDS = "gtk+3 glib-2.0 libxml2 intltool-native \
            gnome-common-native \
            autoconf-archive-native \
 "
-
+GNOMEBASEBUILDCLASS = "autotools"
 inherit features_check autotools pkgconfig gnomebase gobject-introspection mime-xdg
 
 # xfce4 depends on libwnck3, gtk+3 and libepoxy need to be built with x11 PACKAGECONFIG.
meta-oe/recipes-gnome/gtk+/gtkmm_2.24.5.bb +1 -0
index 54e75a20d3..87b0f5e65d 100644
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d8045f3b8f929c1cb29a1e3fd737b499 \
 
 DEPENDS = "atkmm pangomm glibmm gtk+ cairomm"
 
+GNOMEBASEBUILDCLASS = "autotools"
 inherit gnomebase features_check
 
 REQUIRED_DISTRO_FEATURES = "x11"
Signature · 1 line
2.42.1
author
#3 lore raw

PATCH v3 3/6 toscoterm: Skip recipe, slated for removal

In reply to Khem Raj

It needs to be brought forward to work with latest, it fails to build with vte9 0.74.1 in meta-oe

Cc Otavio Salvador <[email protected]>
---
 meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | 1 -
 meta-oe/recipes-support/toscoterm/toscoterm_git.bb         | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +0 -1
index 639388dece..fafa247772 100644
@@ -891,7 +891,6 @@ RDEPENDS:packagegroup-meta-oe-support ="\
     pcsc-lite \
     pcsc-tools \
     sharutils \
-    ${@bb.utils.contains("DISTRO_FEATURES", "x11", "toscoterm", "", d)} \
     sg3-utils \
     ${@bb.utils.contains("DISTRO_FEATURES", "x11", "uim", "", d)} \
     uchardet \
meta-oe/recipes-support/toscoterm/toscoterm_git.bb +2 -0
index b9f26051a1..654e886cab 100644
@@ -27,3 +27,5 @@ do_install() {
 }
 
 RDEPENDS:${PN}:append:libc-glibc = " glibc-gconv-ibm437"
+
+SKIP_RECIPE[toscoterm] ?= "Needs porting to work with latest vte9 >= 0.74.1"
Signature · 1 line
2.42.1
author
#4 lore raw

PATCH v3 4/6 loudmouth: Upgrade to 1.5.4

In reply to Khem Raj

License-Update: Update the postal address of the FSF [1]

Drop patches not needed anymore.

[1] https://github.com/mcabber/loudmouth/commit/c1f7ffdeb1f9f78eeb377bd28c7be8c146161327

---
 .../04-use-pkg-config-for-gnutls.patch             | 25 ----------------------
 .../loudmouth/loudmouth-1.4.3/glib-2.32.patch      | 12 -----------
 .../loudmouth/loudmouth_1.4.3.bb                   | 22 -------------------
 .../loudmouth/loudmouth_1.5.4.bb                   | 16 ++++++++++++++
 4 files changed, 16 insertions(+), 59 deletions(-)
meta-oe/recipes-connectivity/loudmouth/loudmouth-1.4.3/04-use-pkg-config-for-gnutls.patch deleted +0 -25
deleted file mode 100644
index 0fc87abd09..0000000000
@@ -1,25 +0,0 @@
-Upstream-Status: Pending
-
-Description: use pkg-config to detect gnutls
-Debian: http://bugs.debian.org/529835
-Origin: http://groups.google.com/group/loudmouth-dev/browse_thread/thread/3f78255837048daf#
-
---- a/configure.ac.orig	2009-08-16 20:29:36.000000000 +0200
-+++ b/configure.ac	2009-08-16 20:30:43.000000000 +0200
-@@ -146,10 +146,12 @@ AC_ARG_WITH(openssl-libs,
- enable_ssl=no
- if test "x$ac_ssl" = "xgnutls"; then
-   dnl Look for GnuTLS
--  AM_PATH_LM_LIBGNUTLS($GNUTLS_REQUIRED, have_libgnutls=yes, have_libgnutls=no)
--  if test "x$have_libgnutls" = "xyes"; then
--    CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
--    LIBS="$LIBS $LIBGNUTLS_LIBS"
-+  PKG_CHECK_MODULES(GNUTLS, gnutls >= $GNUTLS_REQUIRED, have_gnutls=yes, have_gnutls=no)
-+  if test "x$have_gnutls" = "xyes"; then 
-+    AC_SUBST(ASYNCNS_CFLAGS)
-+    AC_SUBST(ASYNCNS_LIBS)
-+    CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
-+    LIBS="$LIBS $GNUTLS_LIBS"
-     AC_DEFINE(HAVE_GNUTLS, 1, [whether to use GnuTSL support.])
-     enable_ssl=GnuTLS
-   else
meta-oe/recipes-connectivity/loudmouth/loudmouth-1.4.3/glib-2.32.patch deleted +0 -12
deleted file mode 100644
index 921aded943..0000000000
@@ -1,12 +0,0 @@
-Upstream-Status: Pending
-
---- loudmouth-1.4.3.orig/loudmouth/lm-error.c	2008-10-29 21:48:15.000000000 +0100
-+++ loudmouth-1.4.3/loudmouth/lm-error.c	2012-05-06 08:27:07.455739440 +0200
-@@ -19,7 +19,6 @@
-  */
- 
- #include <config.h>
--#include <glib/gerror.h>
- #include "lm-error.h"
- 
- /**
meta-oe/recipes-connectivity/loudmouth/loudmouth_1.4.3.bb deleted +0 -22
deleted file mode 100644
index 0593469a45..0000000000
@@ -1,22 +0,0 @@
-DESCRIPTION = "Loudmouth is a lightweight and easy-to-use C library for programming with the Jabber protocol."
-HOMEPAGE = "http://www.loudmouth-project.org/"
-
-LICENSE = "LGPL-2.1-only"
-LIC_FILES_CHKSUM = "file://COPYING;md5=c4f38aef94828f6b280e00d1173be689"
-
-DEPENDS = "glib-2.0 libcheck openssl libidn"
-
-GNOMEBASEBUILDCLASS = "autotools"
-inherit gnomebase gtk-doc
-
-PR = "r2"
-
-SRC_URI += "file://04-use-pkg-config-for-gnutls.patch \
-            file://glib-2.32.patch"
-
-SRC_URI[archive.md5sum] = "55339ca42494690c3942ee1465a96937"
-SRC_URI[archive.sha256sum] = "95a93f5d009b71ea8193d994aa11f311bc330a3efe1b7cd74dc48f11c7f929e3"
-GNOME_COMPRESS_TYPE="bz2"
-
-EXTRA_OECONF = "--with-ssl=openssl"
-
meta-oe/recipes-connectivity/loudmouth/loudmouth_1.5.4.bb new file +16 -0
new file mode 100644
index 0000000000..f67c46b428
@@ -0,0 +1,16 @@
+DESCRIPTION = "Loudmouth is a lightweight and easy-to-use C library for programming with the Jabber protocol."
+HOMEPAGE = "http://www.loudmouth-project.org/"
+
+LICENSE = "LGPL-2.1-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
+
+DEPENDS = "glib-2.0 libcheck openssl libidn"
+
+GNOMEBASEBUILDCLASS = "autotools"
+
+inherit gnomebase gtk-doc
+
+SRC_URI = "https://github.com/mcabber/${BPN}/releases/download/${PV}/${BP}.tar.bz2"
+SRC_URI[sha256sum] = "31cbc91c1fddcc5346b3373b8fb45594e9ea9cc7fe36d0595e8912c47ad94d0d"
+
+EXTRA_OECONF = "--with-ssl=openssl --with-compile-warnings=no"
Signature · 1 line
2.42.1
author
#5 lore raw

PATCH v3 5/6 toscoterm: Delete recipe

In reply to Khem Raj
Cc Otavio Salvador <[email protected]>
---
 meta-oe/recipes-support/toscoterm/toscoterm_git.bb | 31 ----------------------
 1 file changed, 31 deletions(-)
meta-oe/recipes-support/toscoterm/toscoterm_git.bb deleted +0 -31
deleted file mode 100644
index 654e886cab..0000000000
@@ -1,31 +0,0 @@
-SUMMARY = "A very small and simple terminal emulator"
-SECTION = "x11/applications"
-DEPENDS = "vte9"
-
-LICENSE = "GPL-3.0-only"
-LIC_FILES_CHKSUM = "file://main.c;start_line=5;end_line=16;md5=9ae4bf20caf291afa94530026bd15229"
-
-# 0.2 version
-SRCREV = "8586d617aed19fc75f5ae1e07270752c1b2f9a30"
-SRC_URI = "git://github.com/OSSystems/toscoterm.git;branch=master;protocol=https"
-
-S = "${WORKDIR}/git"
-
-inherit features_check gitpkgv pkgconfig
-
-REQUIRED_DISTRO_FEATURES = "x11"
-
-do_compile() {
-    oe_runmake \
-        CC="${CC}" \
-        CFLAGS="`pkg-config --cflags vte`${CFLAGS}" \
-        LDFLAGS="`pkg-config --libs vte` ${LDFLAGS}"
-}
-
-do_install() {
-    oe_runmake PREFIX="${prefix}" DESTDIR="${D}" install
-}
-
-RDEPENDS:${PN}:append:libc-glibc = " glibc-gconv-ibm437"
-
-SKIP_RECIPE[toscoterm] ?= "Needs porting to work with latest vte9 >= 0.74.1"
Signature · 1 line
2.42.1
author
#6 lore raw

PATCH v3 6/6 librest: Use autotools make system

In reply to Khem Raj

OE-core is switching to default to meson for gnome recipes

---
 meta-gnome/recipes-gnome/rest/librest_0.8.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta-gnome/recipes-gnome/rest/librest_0.8.1.bb +1 -0
index 23849783cc..51dc44cc4d 100644
@@ -13,6 +13,7 @@ DEPENDS = " \
     libxml2-native \
 "
 
+GNOMEBASEBUILDCLASS = "autotools"
 inherit gnomebase gobject-introspection vala pkgconfig
 
 GNOMEBN = "rest"
Signature · 1 line
2.42.1