Skip to contentSkip to conversation

version-check.conf: mute version mismatch warning for bpftool

PATCH New [email protected] 1 participant 8 messages May 30, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/8 version-check.conf: mute version mismatch warning for bpftool

From: Changqing Li <[email protected]>

bpftool is compiled from kernel source, we hope it has version aligned with kernel version, but the sources will printout some other versions, skip this checking.

---
 meta-oe/conf/version-check.conf | 1 +
 1 file changed, 1 insertion(+)
meta-oe/conf/version-check.conf +1 -0
index dee5fe40d5..742ecfa487 100644
@@ -29,3 +29,4 @@ CHECK_VERSION_PV:pn-sg3-utils = "%"
 CHECK_VERSION_PV:pn-netperf = "2.7.%"
 CHECK_VERSION_PV:pn-bridge-utils = "1.7%"
 CHECK_VERSION_PV:pn-turbostat = "2024.07.26"
+CHECK_VERSION_PV:pn-bpftool = "%"
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/8 libtimezonemap: correct package version

From: Changqing Li <[email protected]>

correct the package version in configure.ac

---
 ...001-configure.ac-correct-the-version.patch | 29 +++++++++++++++++++
 .../libtimezonemap/libtimezonemap_0.4.6.bb    |  3 +-
 2 files changed, 31 insertions(+), 1 deletion(-)
 create mode 100644 meta-gnome/recipes-gnome/libtimezonemap/files/0001-configure.ac-correct-the-version.patch
meta-gnome/recipes-gnome/libtimezonemap/files/0001-configure.ac-correct-the-version.patch new file +29 -0
new file mode 100644
index 0000000000..0538bc3e5c
@@ -0,0 +1,29 @@
+From 915bc44d9f243075d084238c72089a346036388c Mon Sep 17 00:00:00 2001
+From: Changqing Li <[email protected]>
+Date: Thu, 29 May 2025 10:08:21 +0800
+Subject: [PATCH] configure.ac: correct the version
+
+The source is here:
+https://salsa.debian.org/cinnamon-team/libtimezonemap
+
+Upstream-Status: Pending [ register account rejected ]
+
+Signed-off-by: Changqing Li <[email protected]>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 3f74dae..24eb0e5 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,5 +1,5 @@
+ AC_INIT([libtimezonemap],
+-        [0.4.4],
++        [0.4.6],
+         [http://bugs.launchpad.net/libtimezonemap],
+         [libtimezonemap],
+         [http://launchpad.net/libtimezonemap])
+-- 
+2.34.1
+
meta-gnome/recipes-gnome/libtimezonemap/libtimezonemap_0.4.6.bb +2 -1
index bafe7af040..3f37890e8d 100644
@@ -4,7 +4,8 @@ SECTION = "devel/lib"
 LICENSE = "GPL-3.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 
-SRC_URI = "${DEBIAN_MIRROR}/main/libt/${BPN}/${BPN}_${PV}.orig.tar.gz;downloadfilename=${BP}.tar.gz"
+SRC_URI = "${DEBIAN_MIRROR}/main/libt/${BPN}/${BPN}_${PV}.orig.tar.gz;downloadfilename=${BP}.tar.gz \
+           file://0001-configure.ac-correct-the-version.patch"
 SRC_URI[sha256sum] = "0d634cc2476d8f57d1ee1864bd4f442180ae4bf040a9ae4bf73b66bbd85d7195"
 
 DEPENDS = "gtk+3 gdk-pixbuf libsoup-2.4 json-glib gnome-common-native"
Signature · 1 line
2.34.1
#2 lore raw

PATCH 3/8 version-check.conf: mute version mismatch warning for libhugetlbfs

In reply to [email protected]

From: Changqing Li <[email protected]>

ld.libhugetlbfs --version return the ld version on the host, and cause version mismatch warning, mute the warning by skip checking for this package

---
 meta-oe/conf/version-check.conf | 1 +
 1 file changed, 1 insertion(+)
meta-oe/conf/version-check.conf +1 -0
index 742ecfa487..8329d58e64 100644
@@ -30,3 +30,4 @@ CHECK_VERSION_PV:pn-netperf = "2.7.%"
 CHECK_VERSION_PV:pn-bridge-utils = "1.7%"
 CHECK_VERSION_PV:pn-turbostat = "2024.07.26"
 CHECK_VERSION_PV:pn-bpftool = "%"
+CHECK_VERSION_PV:pn-libhugetlbfs = "%"
Signature · 1 line
2.34.1
#3 lore raw

PATCH 4/8 version-check.conf: mute version mismatch warning for pps-tools

In reply to [email protected]

From: Changqing Li <[email protected]>

The version get by the version check tool is wrong, the output include version of grep. Skip checking to mute the warning

---
 meta-oe/conf/version-check.conf | 1 +
 1 file changed, 1 insertion(+)
meta-oe/conf/version-check.conf +1 -0
index 8329d58e64..a12d1cb9b3 100644
@@ -31,3 +31,4 @@ CHECK_VERSION_PV:pn-bridge-utils = "1.7%"
 CHECK_VERSION_PV:pn-turbostat = "2024.07.26"
 CHECK_VERSION_PV:pn-bpftool = "%"
 CHECK_VERSION_PV:pn-libhugetlbfs = "%"
+CHECK_VERSION_PV:pn-pps-tools = '%'
Signature · 1 line
2.34.1
#4 lore raw

PATCH 5/8 version-check.conf: mute version mismatch warning for libusb-compat

In reply to [email protected]

From: Changqing Li <[email protected]>

Refer [1], upstream set this version specially, so mute by skipp checking

[1] https://github.com/libusb/libusb-compat-0.1/commit/49057f6ce5cd4d51e31594f290b2dd3c9f1dbaf8

---
 meta-oe/conf/version-check.conf | 1 +
 1 file changed, 1 insertion(+)
meta-oe/conf/version-check.conf +1 -0
index a12d1cb9b3..19ec37173a 100644
@@ -32,3 +32,4 @@ CHECK_VERSION_PV:pn-turbostat = "2024.07.26"
 CHECK_VERSION_PV:pn-bpftool = "%"
 CHECK_VERSION_PV:pn-libhugetlbfs = "%"
 CHECK_VERSION_PV:pn-pps-tools = '%'
+CHECK_VERSION_PV:pn-libusb-compat = "0.1.12"
Signature · 1 line
2.34.1
#5 lore raw

PATCH 6/8 version-check.conf: mute version mismatch warning for jemalloc

In reply to [email protected]

From: Changqing Li <[email protected]>

jemalloc set the version by pass --with-version=${PV_LONG}, PV_LONG := "${PV}-171-g${SRCREV}", set match pattern for jemalloc to mute the version mismatch warning

---
 meta-oe/conf/version-check.conf | 1 +
 1 file changed, 1 insertion(+)
meta-oe/conf/version-check.conf +1 -0
index 19ec37173a..72c38133fd 100644
@@ -33,3 +33,4 @@ CHECK_VERSION_PV:pn-bpftool = "%"
 CHECK_VERSION_PV:pn-libhugetlbfs = "%"
 CHECK_VERSION_PV:pn-pps-tools = '%'
 CHECK_VERSION_PV:pn-libusb-compat = "0.1.12"
+CHECK_VERSION_PV:pn-jemalloc = "${@d.getVar('PV').split('+')[0]}%"
Signature · 1 line
2.34.1
#6 lore raw

PATCH 7/8 version-check.conf: mute version mismatch warning for dialog

In reply to [email protected]

From: Changqing Li <[email protected]>

Refer [1], dialog's tarballs released with date, for convenient, PV also end with date. Change to check without date suffix.

[1] https://invisible-mirror.net/archives/dialog/

---
 meta-oe/conf/version-check.conf | 1 +
 1 file changed, 1 insertion(+)
meta-oe/conf/version-check.conf +1 -0
index 72c38133fd..b41c9e8d22 100644
@@ -34,3 +34,4 @@ CHECK_VERSION_PV:pn-libhugetlbfs = "%"
 CHECK_VERSION_PV:pn-pps-tools = '%'
 CHECK_VERSION_PV:pn-libusb-compat = "0.1.12"
 CHECK_VERSION_PV:pn-jemalloc = "${@d.getVar('PV').split('+')[0]}%"
+CHECK_VERSION_PV:pn-dialog = "${@d.getVar('PV').split('-')[0]}%"
Signature · 1 line
2.34.1
#7 lore raw

PATCH 8/8 dracut: set DRACUT_FULL_VERSION to PV

In reply to [email protected]

From: Changqing Li <[email protected]>

RACUT_FULL_VERSION is conditional assigned in Makefile as below:
DRACUT_FULL_VERSION ?= $(shell env GIT_CEILING_DIRECTORIES=$(CURDIR)/.. git describe --tags --always 2>/dev/null || :)

When build from git shallow tarball, since tag info is not included, 956c087 is returned. This will make dracut version in dracut.pc different with build from git repo.

Set DRACUT_FULL_VERSION to PV, to improve reproducibility for this recipe, and also fix the version mismatch warning

---
 meta-initramfs/recipes-devtools/dracut/dracut_106.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-initramfs/recipes-devtools/dracut/dracut_106.bb +1 -1
index b70ee4baeb..871119521f 100644
@@ -35,7 +35,7 @@ EXTRA_OECONF = "--prefix=${prefix} \
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
 PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,systemd"
 
-EXTRA_OEMAKE += 'libdir=${nonarch_libdir} LDLIBS="${LDLIBS}" enable_test=no'
+EXTRA_OEMAKE += 'libdir=${nonarch_libdir} LDLIBS="${LDLIBS}" enable_test=no DRACUT_FULL_VERSION=${PV}'
 
 CFLAGS:append = " -fPIC"
 LDLIBS:append:libc-musl = " -lfts"
Signature · 1 line
2.34.1