version-check.conf: add CHECK_VERSION_PV for pn-netperf
PATCH 1/6 version-check.conf: add CHECK_VERSION_PV for pn-netperf
From: Changqing Li <[email protected]>
For netperf, current PV is 2.7.0+git, and the SRCREV is newer than 2.7.0, and there is no tag 2.7.1, the latest tag is in 2015, refer [1], so it is not possile for us to make PV align with the runtime version below by update SRCREV now, add CHECK_VERSION_PV for pn-netperf to mute the version mismatch waring
$netserver -V
Netperf version 2.7.1
[1] https://github.com/HewlettPackard/netperf
--- meta-oe/conf/version-check.conf | 1 + 1 file changed, 1 insertion(+)
meta-oe/conf/version-check.conf +1 -0
@@ -20,3 +20,4 @@ CHECK_VERSION_PV:pn-iozone3 = "3.${PV}" CHECK_VERSION_PV:pn-can-utils = "%" CHECK_VERSION_PV:pn-luajit = "${PV}.%" CHECK_VERSION_PV:pn-sg3-utils = "%" +CHECK_VERSION_PV:pn-netperf = "2.7.%"
Signature · 1 line
2.34.1
PATCH 2/6 python3-pyyaml-include: update SRCREV
From: Changqing Li <[email protected]>
* Current SRCREV is v2.2a1, update to v2.2
* pyyaml-include use setuptools_scm to get package version, but it not works well with git shallow clone, and will return a invalid version like 0.1.dev1+gc5be2b7, make pyyaml-include is installed to a wrong
path: /usr/lib/python3.13/site-packages/pyyaml_include-0.1.dev1+gc5be2b7.dist-info, and also version in PKG-INFO is wrong.
export SETUPTOOLS_SCM_PRETEND_VERSION to get correct package version.
--- .../recipes-devtools/python/python3-pyyaml-include_2.2.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pyyaml-include_2.2.bb +5 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/tanbro/pyyaml-include" LICENSE = "GPL-3.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=d32239bcb673463ab874e80d47fae504" DEPENDS += "python3-setuptools-scm-native" -SRCREV = "c5be2b7dfc4aaa91e44dbeb6fa42adc80936ef9d" +SRCREV = "3e0db562a7b03fa1bf5cbe392c47658042596dd0" SRC_URI = " \ git://github.com/tanbro/pyyaml-include;protocol=https;branch=main \
@@ -13,6 +13,10 @@ S = "${WORKDIR}/git" inherit python_setuptools_build_meta ptest-python-pytest +do_compile:prepend() { + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} +} + RDEPENDS:${PN} += " \ python3-pyyaml \ python3-fsspec \
Signature · 1 line
2.34.1
PATCH 3/6 lsscsi: revert to version 0.32
In reply to [email protected]From: Changqing Li <[email protected]>
* This commit revert [da92fbe33b lsscsi: upgrade 0.32 -> 030]
* The latest version is 0.32, and upstream URI has lsscsi-030.tgz and lsscsi-0.30.tgz for version 0.30 only, they have the same md5sum, since 030 sort higher than new version 0.32, make itself 030 the latest version. Add UPSTREAM_CHECK_REGEX to exclude lsscsi-0.30.tgz.
This reverts commit da92fbe33b13c7453f34f214646c7f6d24aca4ef.
---
.../recipes-bsp/lsscsi/{lsscsi_030.bb => lsscsi_0.32.bb} | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
rename meta-oe/recipes-bsp/lsscsi/{lsscsi_030.bb => lsscsi_0.32.bb} (63%)meta-oe/recipes-bsp/lsscsi/lsscsi_0.32.bb renamed from meta-oe/recipes-bsp/lsscsi/lsscsi_030.bb +4 -2
@@ -6,8 +6,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" SRC_URI = "http://sg.danny.cz/scsi/${BP}.tgz" -SRC_URI[sha256sum] = "619a2187405f02c5f57682f3478bffc75326803cd08839e39d434250c5518b15" +SRC_URI[sha256sum] = "0a800e9e94dca2ab702d65d72777ae8cae078e3d74d0bcbed64ba0849e8029a1" inherit autotools -S = "${WORKDIR}/lsscsi-${PV}r154" +S = "${WORKDIR}/lsscsi-${PV}" + +UPSTREAM_CHECK_REGEX = "lsscsi-(?P<pver>\d+(\.\d+)+)\.tgz"
Signature · 1 line
2.34.1
PATCH 4/6 version-check.conf: mute bridge-utils version mismatch warning
In reply to [email protected]From: Changqing Li <[email protected]>
Runtime version of brctl is 1.7.1, but the configure.ac set version as 1.7 (AC_INIT([bridge-utils],[1.7])). And refer [1], this utility is DEPRECATED, only critical bug fixes only, so it is nearly not possible to correct from upstream, so mute this warning since it has no critical influence.
--- meta-oe/conf/version-check.conf | 1 + 1 file changed, 1 insertion(+)
meta-oe/conf/version-check.conf +1 -0
@@ -21,3 +21,4 @@ CHECK_VERSION_PV:pn-can-utils = "%" CHECK_VERSION_PV:pn-luajit = "${PV}.%" CHECK_VERSION_PV:pn-sg3-utils = "%" CHECK_VERSION_PV:pn-netperf = "2.7.%" +CHECK_VERSION_PV:pn-bridge-utils = "1.7%"
Signature · 1 line
2.34.1
PATCH 5/6 libuser: correct the package version
In reply to [email protected]From: Changqing Li <[email protected]>
correct the package version in configure.ac
--- ...-configure.ac-update-version-to-0.64.patch | 25 +++++++++++++++++++ .../recipes-support/libuser/libuser_0.64.bb | 1 + 2 files changed, 26 insertions(+) create mode 100644 meta-gnome/recipes-support/libuser/libuser/0001-configure.ac-update-version-to-0.64.patch
meta-gnome/recipes-support/libuser/libuser/0001-configure.ac-update-version-to-0.64.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 206cfdff171e5ce0df02e635ba0d331a7dc5d992 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> +Date: Mon, 14 Apr 2025 14:48:08 +0800 +Subject: [PATCH] configure.ac: update version to 0.64 + +Upstream-Status: Submitted [http://pagure.io/libuser/issue/74] + +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 51508b7..68c6e50 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1,4 +1,4 @@ +-AC_INIT([libuser], [0.62], [https://pagure.io/libuser], , ++AC_INIT([libuser], [0.64], [https://pagure.io/libuser], , + [https://pagure.io/libuser]) + AC_PREREQ([2.63b]) + AC_CONFIG_HEADERS(config.h) +-- +2.34.1 +
meta-gnome/recipes-support/libuser/libuser_0.64.bb +1 -0
@@ -15,6 +15,7 @@ SRC_URI = "https://releases.pagure.org/libuser/libuser-${PV}.tar.gz \ file://0001-docs-Disable-building.patch \ file://0002-remove-unused-execinfo.h.patch \ file://gtkdoc.patch \ + file://0001-configure.ac-update-version-to-0.64.patch \ " SRC_URI[sha256sum] = "ea6094c72cb9e60a42fb53509dc98d124a340f1c9222783b503208adc16a0a8f"
Signature · 1 line
2.34.1
PATCH 6/6 turbostat: make turbostat's version align with kernel version
In reply to [email protected]From: Changqing Li <[email protected]>
* Current PV 3.4 is the kernel version when the recipe is newly added, set PKGV to KERNEL_VERSION to make it always align with kernel version
* turbostat has its runtime version, set CHECK_VERSION_PV to this version to mute the version mismatch warning
[snip of turbostat.c]
void print_version()
{
fprintf(outf, "turbostat version 2024.07.26 - Len Brown <[email protected]>\n");
}[snip]
---
meta-oe/conf/version-check.conf | 1 +
.../turbostat/{turbostat_3.4.bb => turbostat.bb} | 7 +++++++
2 files changed, 8 insertions(+)
rename meta-oe/recipes-kernel/turbostat/{turbostat_3.4.bb => turbostat.bb} (94%)meta-oe/conf/version-check.conf +1 -0
@@ -22,3 +22,4 @@ CHECK_VERSION_PV:pn-luajit = "${PV}.%" 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"
meta-oe/recipes-kernel/turbostat/turbostat.bb renamed from meta-oe/recipes-kernel/turbostat/turbostat_3.4.bb +7 -0
@@ -16,6 +16,9 @@ LIC_FILES_CHKSUM = "file://${UNPACKDIR}/COPYING;md5=bbea815ee2795b2f4230826c0c6b COMPATIBLE_HOST = '(x86_64.*|i.86.*)-linux' COMPATIBLE_HOST:libc-musl = "null" +KERNEL_VERSION = "${@get_kernelversion_file("${STAGING_KERNEL_BUILDDIR}")}" +inherit linux-kernel-base + SRC_URI += "\ file://COPYING \ "
@@ -91,3 +94,7 @@ do_compile() { do_install() { oe_runmake DESTDIR="${D}" install } + +python do_package:prepend() { + d.setVar('PKGV', d.getVar("KERNEL_VERSION").split("-")[0]) +}
Signature · 1 line
2.34.1