GNU bug report logs - #78314
[PATCH] Update zabbix package to 7.2.6

Previous Next

Package: guix-patches;

Reported by: Ignas Lapėnas <ignas <at> lapenas.dev>

Date: Thu, 8 May 2025 11:02:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 78314 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#78314; Package guix-patches. (Thu, 08 May 2025 11:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ignas Lapėnas <ignas <at> lapenas.dev>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 08 May 2025 11:02:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ignas Lapėnas <ignas <at> lapenas.dev>
To: guix-patches <at> gnu.org
Subject: [PATCH] Update zabbix package to 7.2.6
Date: Thu, 08 May 2025 14:01:16 +0300
License changed from version 7.0 to AGPLv3

More info:
https://www.zabbix.com/license

Change-Id: I8ee61fc84d430c33e3afab6c6974065ba1bd9222
---
 gnu/packages/monitoring.scm | 64 ++++++++++++++++++-------------------
 1 file changed, 31 insertions(+), 33 deletions(-)

diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm
index 1009c32783..68c1ad8225 100644
--- a/gnu/packages/monitoring.scm
+++ b/gnu/packages/monitoring.scm
@@ -177,7 +177,7 @@ (define-public nagios
 (define-public zabbix-agentd
   (package
     (name "zabbix-agentd")
-    (version "6.0.14")
+    (version "7.2.6")
     (source
      (origin
        (method url-fetch)
@@ -185,7 +185,7 @@ (define-public zabbix-agentd
              "https://cdn.zabbix.com/zabbix/sources/stable/"
              (version-major+minor version) "/zabbix-" version ".tar.gz"))
        (sha256
-        (base32 "0n6fqa9vbhh2syxii7ds2x6dnplrgrj98by1zl0ij1wfbnbxa6k3"))
+        (base32 "0hch7dbgwis3yng8mz6axczpr1v3d5l8hpwlxjrw26yw17crq2g8"))
        (modules '((guix build utils)))
        (snippet
         '(substitute* '("src/zabbix_proxy/proxy.c"
@@ -210,7 +210,7 @@ (define-public zabbix-agentd
     (synopsis "Distributed monitoring solution (client-side agent)")
     (description "This package provides a distributed monitoring
 solution (client-side agent)")
-    (license license:gpl2+)
+    (license license:agpl3)
     (properties
      '((release-monitoring-url . "https://www.zabbix.com/download_sources")
        (upstream-name . "zabbix")))))

base-commit: 0ae79a787f81e680e3983813c684a7d82dc213f3
-- 
2.49.0




Information forwarded to guix-patches <at> gnu.org:
bug#78314; Package guix-patches. (Fri, 09 May 2025 07:02:02 GMT) Full text and rfc822 format available.

Message #8 received at 78314 <at> debbugs.gnu.org (full text, mbox):

From: Ignas Lapėnas <ignas <at> lapenas.dev>
To: 78314 <at> debbugs.gnu.org
Subject: [PATCH] Update zabbix package to 7.2.6
Date: Fri, 09 May 2025 10:01:39 +0300
Saw the failing QA and looked into it a bit more

It seems that zabbix-agent2 has a test that expects the timezone to be
Europe/Riga

One way would be to set the ENV variable TZ=Europe/Riga, but somehow I
doubt that would be the right decision here.

Lower is a diff to change the hardcoded failing test timestamps to be
inline with UTC

diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm
index 68c1ad8225..fff202bd9d 100644
--- a/gnu/packages/monitoring.scm
+++ b/gnu/packages/monitoring.scm
@@ -186,6 +186,7 @@ (define-public zabbix-agentd
              (version-major+minor version) "/zabbix-" version ".tar.gz"))
        (sha256
         (base32 "0hch7dbgwis3yng8mz6axczpr1v3d5l8hpwlxjrw26yw17crq2g8"))
+       (patches (search-patches "zabbix-sw-test-fix-timezone.patch"))
        (modules '((guix build utils)))
        (snippet
         '(substitute* '("src/zabbix_proxy/proxy.c"
diff --git a/gnu/packages/patches/zabbix-sw-test-fix-timezone.patch b/gnu/packages/patches/zabbix-sw-test-fix-timezone.patch
new file mode 100644
index 0000000000..8e498c1d0a
--- /dev/null
+++ b/gnu/packages/patches/zabbix-sw-test-fix-timezone.patch
@@ -0,0 +1,13 @@
+diff --git a/src/go/plugins/system/sw/sw_test.go b/src/go/plugins/system/sw/sw_test.go
+index 680e61f0ca7..864862da791 100644
+--- a/src/go/plugins/system/sw/sw_test.go
++++ b/src/go/plugins/system/sw/sw_test.go
+@@ -32,7 +32,7 @@ install ok installed,dos2unix,7.4.1-1,amd64,1321`,
+               "input": `glibc-gconv-extra,2.34-48.el9,x86_64,8122308,1666100063,1669204555
+ elfutils-default-yama-scope,0.187-5.el9,noarch,1810,1655411412,1659990239
+ perl-Scalar-List-Utils,1.56-461.el9,x86_64,143652,1628565132,1662121942`,
+-              "expectedOutput": `[{"name":"glibc-gconv-extra","manager":"rpm","version":"2.34-48.el9","size":8122308,"arch":"x86_64","buildtime":{"timestamp":1666100063,"value":"Tue Oct 18 16:34:23 2022"},"installtime":{"timestamp":1669204555,"value":"Wed Nov 23 13:55:55 2022"}},{"name":"elfutils-default-yama-scope","manager":"rpm","version":"0.187-5.el9","size":1810,"arch":"noarch","buildtime":{"timestamp":1655411412,"value":"Thu Jun 16 23:30:12 2022"},"installtime":{"timestamp":1659990239,"value":"Mon Aug  8 23:23:59 2022"}},{"name":"perl-Scalar-List-Utils","manager":"rpm","version":"1.56-461.el9","size":143652,"arch":"x86_64","buildtime":{"timestamp":1628565132,"value":"Tue Aug 10 06:12:12 2021"},"installtime":{"timestamp":1662121942,"value":"Fri Sep  2 15:32:22 2022"}}]`,
++              "expectedOutput": `[{"name":"glibc-gconv-extra","manager":"rpm","version":"2.34-48.el9","size":8122308,"arch":"x86_64","buildtime":{"timestamp":1666100063,"value":"Tue Oct 18 13:34:23 2022"},"installtime":{"timestamp":1669204555,"value":"Wed Nov 23 11:55:55 2022"}},{"name":"elfutils-default-yama-scope","manager":"rpm","version":"0.187-5.el9","size":1810,"arch":"noarch","buildtime":{"timestamp":1655411412,"value":"Thu Jun 16 20:30:12 2022"},"installtime":{"timestamp":1659990239,"value":"Mon Aug  8 20:23:59 2022"}},{"name":"perl-Scalar-List-Utils","manager":"rpm","version":"1.56-461.el9","size":143652,"arch":"x86_64","buildtime":{"timestamp":1628565132,"value":"Tue Aug 10 03:12:12 2021"},"installtime":{"timestamp":1662121942,"value":"Fri Sep  2 12:32:22 2022"}}]`,
+       },
+       "pacman": {
+               "input": ` wget, 1.21.3-1, x86_64, 3.03 MiB, Sun Mar 20
21:36:30 2022, Thu Nov 10 18:33:47 2022




This bug report was last modified 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.