Skip to contentSkip to conversation

libxfce4util and xfce4-dev-tools upgrades

PATCH New Khem Raj 1 participant 3 messages Nov 27

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

cover libxfce4util and xfce4-dev-tools upgrades

xfce4-dev-tools 4.21.3 moved to meson; libxfce4util 4.21.1 is a bug fix release.

Khem Raj (2):
libxfce4util: upgrade 4.21.0 -> 4.21.1
xfce4-dev-tools: upgrade 4.21.2 -> 4.21.3

 ...4util_4.21.0.bb => libxfce4util_4.21.1.bb} |  2 +-
 ...0001-Run-native-xdt-csource-on-tests.patch | 30 +++++++++----------
 ...ls_4.21.2.bb => xfce4-dev-tools_4.21.3.bb} | 18 +++++------
 3 files changed, 25 insertions(+), 25 deletions(-)
 rename meta-xfce/recipes-xfce/libxfce4util/{libxfce4util_4.21.0.bb => libxfce4util_4.21.1.bb} (82%)
 rename meta-xfce/recipes-xfce/xfce4-dev-tools/{xfce4-dev-tools_4.21.2.bb => xfce4-dev-tools_4.21.3.bb} (55%)
author
#1 lore raw

PATCH 1/2 libxfce4util: upgrade 4.21.0 -> 4.21.1

Adds systemd wrappers for SuspendThenHibernate, makes gobject- introspection scan warnings non-fatal, fixes a gi scan break caused by a missing prefix, and bumps build requirements for Xfce 4.22.

AI-Generated: Uses Claude Code

---
 .../{libxfce4util_4.21.0.bb => libxfce4util_4.21.1.bb}          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-xfce/recipes-xfce/libxfce4util/{libxfce4util_4.21.0.bb => libxfce4util_4.21.1.bb} (82%)
meta-xfce/recipes-xfce/libxfce4util/libxfce4util_4.21.1.bb renamed from meta-xfce/recipes-xfce/libxfce4util/libxfce4util_4.21.0.bb +1 -1
similarity index 82%
rename from meta-xfce/recipes-xfce/libxfce4util/libxfce4util_4.21.0.bb
rename to meta-xfce/recipes-xfce/libxfce4util/libxfce4util_4.21.1.bb
index c8c98d8022..e484a9e27d 100644
@@ -11,4 +11,4 @@ GTKDOC_MESON_OPTION = "gtk-doc"
 
 inherit xfce gtk-doc gobject-introspection vala
 
-SRC_URI[sha256sum] = "205677cb96b778e5079eeac80f3a636d2a909b08fcf2aa05bfe4513c69c27f29"
+SRC_URI[sha256sum] = "509e0ead3bc98c4f04b79069be7521b7cc35b63702262e148c5364b5a08e2e9a"
author
#2 lore raw

PATCH 2/2 xfce4-dev-tools: upgrade 4.21.2 -> 4.21.3

In reply to Khem Raj

Upstream replaced autotools with meson. The m4 macros still install to ${datadir}/aclocal; the copy in ${datadir}/xfce4/dev-tools/m4macros is gone, which nothing in the layers uses.

Switch to meson, fetch the .tar.xz now published, and add docbook-xsl-stylesheets-native for the xdt-csource man page that is now generated. Rework the xdt-csource test patch for meson, strip host tool paths from xfce-do-release, and drop the manual aclocal install. The upstream check uses the default version directory scan.

AI-Generated: Uses Claude Code

---
 ...0001-Run-native-xdt-csource-on-tests.patch | 30 +++++++++----------
 ...ls_4.21.2.bb => xfce4-dev-tools_4.21.3.bb} | 18 +++++------
 2 files changed, 24 insertions(+), 24 deletions(-)
 rename meta-xfce/recipes-xfce/xfce4-dev-tools/{xfce4-dev-tools_4.21.2.bb => xfce4-dev-tools_4.21.3.bb} (55%)
meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools/0001-Run-native-xdt-csource-on-tests.patch +15 -15
index 74b1679ab4..e34ff7b16c 100644
@@ -6,28 +6,28 @@ MIME-Version: 1.0
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 8bit
 
-Tests cannot be opted out so let them pass.
+Tests cannot be opted out so let them pass; use the native xdt-csource
+in cross builds.
 
 Upstream-Status: Inappropriate [OE specific]
 
 Signed-off-by: Andreas Müller <[email protected]>
+Signed-off-by: Khem Raj <[email protected]>
 ---
- tests/Makefile.am | 2 +-
+ tests/meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
-diff --git a/tests/Makefile.am b/tests/Makefile.am
-index fa0832c..7c46bbf 100644
---- a/tests/Makefile.am
-+++ b/tests/Makefile.am
-@@ -26,7 +26,7 @@ DISTCLEANFILES = test-xdt-csource-data.c
- BUILT_SOURCES = test-xdt-csource-data.c
+diff --git a/tests/meson.build b/tests/meson.build
+--- a/tests/meson.build
++++ b/tests/meson.build
+@@ -5,7 +5,7 @@ test_xdt_csource_data = custom_target(
+     'data' / 'data.txt',
+   ],
+   output: 'test-xdt-csource-data.c',
+-  command: [xdt_csource, '--extern', '--build-list', 'data_bin', '@INPUT0@', 'data_txt', '@INPUT1@'],
++  command: [find_program('xdt-csource', native: true), '--extern', '--build-list', 'data_bin', '@INPUT0@', 'data_txt', '@INPUT1@'],
+   capture: true,
+ )
  
- test-xdt-csource-data.c: Makefile $(srcdir)/data/data.bin $(srcdir)/data/data.txt
--	$(top_builddir)/xdt-csource/xdt-csource --extern --build-list data_bin $(srcdir)/data/data.bin data_txt $(srcdir)/data/data.txt > test-xdt-csource-data.c
-+	xdt-csource --extern --build-list data_bin $(srcdir)/data/data.bin data_txt $(srcdir)/data/data.txt > test-xdt-csource-data.c
- 
- clean-local:
- 	rm -f *.core core core.*
 -- 
 2.26.2
-
meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools_4.21.3.bb renamed from meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools_4.21.2.bb +9 -9
similarity index 55%
rename from meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools_4.21.2.bb
rename to meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools_4.21.3.bb
index b8a206047f..5ccbd0a22e 100644
@@ -4,25 +4,25 @@ SECTION = "x11/libs"
 LICENSE = "GPL-2.0-or-later"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-DEPENDS = "glib-2.0 libxslt-native meson-native"
+DEPENDS = "glib-2.0 libxslt-native docbook-xsl-stylesheets-native"
 DEPENDS:append:class-target = " ${BPN}-native"
 
-SRC_URI = "https://archive.xfce.org/src/xfce/${BPN}/${@'${PV}'[0:4]}/${BP}.tar.bz2 \
+SRC_URI = "https://archive.xfce.org/src/xfce/${BPN}/${@'${PV}'[0:4]}/${BP}.tar.xz \
            file://0001-m4macros-Check-for-a-function-provided-by-libX11-in-.patch \
            "
 SRC_URI:append:class-target = " file://0001-Run-native-xdt-csource-on-tests.patch"
-SRC_URI[sha256sum] = "a43f726a082b589186d9e6ed076101d41249d1e22bbe61448037550190d7f75a"
+SRC_URI[sha256sum] = "e3137493ed47e36a4a177843e9043c7959eaf412e50600de4ab62d3454f50902"
 
-inherit autotools pkgconfig
+UPSTREAM_CHECK_REGEX = "${BPN}-(?P<pver>\d+(\.\d+)+)\.tar"
+
+inherit meson pkgconfig
 
 do_install:append() {
-    install -d ${D}${datadir}/aclocal
-    install -m 644 ${S}/m4macros/*.m4 ${D}${datadir}/aclocal/
+    # drop the host tool paths found by meson from the release helper
+    sed -i -e 's|${HOSTTOOLS_DIR}/||g' -e 's|${STAGING_BINDIR_NATIVE}/||g' ${D}${bindir}/xfce-do-release
 }
 
-FILES:${PN} += "${datadir}/xfce4/dev-tools/m4macros/*.m4 \
-                ${libdir}/cppcheck \
-               "
+FILES:${PN} += "${libdir}/cppcheck"
 
 RDEPENDS:${PN} = "bash"