diff mbox series

[meta-xfce,2/2] xfce4-dev-tools: upgrade 4.21.2 -> 4.21.3

Message ID 20261127070359.2405078-3-khem.raj@oss.qualcomm.com
State New
Headers show
Series libxfce4util and xfce4-dev-tools upgrades | expand

Commit Message

Khem Raj Nov. 27, 2026, 7:03 a.m. UTC
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
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...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%)
diff mbox series

Patch

diff --git a/meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools/0001-Run-native-xdt-csource-on-tests.patch b/meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools/0001-Run-native-xdt-csource-on-tests.patch
index 74b1679ab4..e34ff7b16c 100644
--- a/meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools/0001-Run-native-xdt-csource-on-tests.patch
+++ b/meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools/0001-Run-native-xdt-csource-on-tests.patch
@@ -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 <schnitzeltony@gmail.com>
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
 ---
- 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
-
diff --git a/meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools_4.21.2.bb b/meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools_4.21.3.bb
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
--- a/meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools_4.21.2.bb
+++ b/meta-xfce/recipes-xfce/xfce4-dev-tools/xfce4-dev-tools_4.21.3.bb
@@ -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"