[Pkg-nagios-devel] Bug#1054401: bookworm-pu: package nagios-plugins-contrib/42.20230308+deb12u1
Jan Wagner
waja at cyconet.org
Mon Oct 23 12:19:25 BST 2023
Package: release.debian.org
Severity: normal
Tags: bookworm
User: release.debian.org at packages.debian.org
Usertags: pu
X-Debbugs-Cc: monitoring-plugins at packages.debian.org
Control: affects -1 + src:nagios-plugins-contrib
[ Reason ]
As reported in #1033791, check_running_kernel fails to find version on
bookworm/(arm64|armhf).
[ Impact ]
check_running_kernel doesn't work on arm64 and armhf as expected, this
is a regression.
[ Tests ]
The patch was verified to work in #1033791
[ Risks ]
Low, trivial change.
[ Checklist ]
[x] *all* changes are documented in the d/changelog
[x] I reviewed all changes and I approve them
[x] attach debdiff against the package in (old)stable
[x] the issue is verified as fixed in unstable
[ Changes ]
The patch is required to fix check_running_kernel on arm64 and armhf.
[ Other info ]
This is a request for pre approval, if you are okay with the changes,
I'll upload it.
Kind Regards,
Jan
--
Never write mail to <waja at spamfalle.info>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M+ V- PS
PE Y++
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++
------END GEEK CODE BLOCK------
-------------- next part --------------
diff --git a/debian/changelog b/debian/changelog
index 1ce2330..2360b0b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+nagios-plugins-contrib (42.20230308+deb12u1) bookworm; urgency=medium
+
+ [ Manfred Stock ]
+ * [f5a0186] Extend fix for on-disk version detection on Bookworm
+ (Closes: #1033791)
+
+ -- Jan Wagner <waja at cyconet.org> Mon, 23 Oct 2023 13:03:28 +0200
+
nagios-plugins-contrib (42.20230308) unstable; urgency=high
* [4ab7834] Adding d/p/dsa/check_running_kernel_bookworm_fix
diff --git a/debian/patches/dsa/check_running_kernel_bookworm_fix b/debian/patches/dsa/check_running_kernel_bookworm_fix
index fe5e75d..d98b929 100644
--- a/debian/patches/dsa/check_running_kernel_bookworm_fix
+++ b/debian/patches/dsa/check_running_kernel_bookworm_fix
@@ -9,3 +9,12 @@
if [ -x /usr/bin/lsb_release ] ; then
vendor=$(lsb_release -i -s)
if [ -n "$vendor" ] && [ "xDebian" != "x$vendor" ] ; then
+@@ -211,7 +211,7 @@
+ fi
+ fi
+ [ -z "$on_disk_version" ] || continue
+- on_disk_version="`cat "$on_disk" | $STRINGS | grep 'Linux version' | head -n1`"
++ on_disk_version="`cat "$on_disk" | $STRINGS | grep 'Linux version' | tail -n1`"
+ [ -z "$on_disk_version" ] || continue
+
+ echo "UNKNOWN: Failed to get a version string from image $on_disk"
More information about the Pkg-nagios-devel
mailing list