pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/zabbix Use P_ZOMBIE() macro instead of testin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0b8a6c103872
branches:  trunk
changeset: 404678:0b8a6c103872
user:      he <he%pkgsrc.org@localhost>
date:      Sat Nov 16 10:57:22 2019 +0000

description:
Use P_ZOMBIE() macro instead of testing against LSDEAD, which is
gone in later versions.
Thanks to Yuuki Enomoto for the patch.
Bump PKGREVISION.

diffstat:

 sysutils/zabbix/Makefile                                        |   4 +-
 sysutils/zabbix/distinfo                                        |   3 +-
 sysutils/zabbix/patches/patch-src_libs_zbxsysinfo_netbsd_proc.c |  17 ++++++++++
 3 files changed, 21 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r 72a58faa5482 -r 0b8a6c103872 sysutils/zabbix/Makefile
--- a/sysutils/zabbix/Makefile  Sat Nov 16 10:36:31 2019 +0000
+++ b/sysutils/zabbix/Makefile  Sat Nov 16 10:57:22 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.28 2019/11/04 21:28:59 rillig Exp $
+# $NetBSD: Makefile,v 1.29 2019/11/16 10:57:22 he Exp $
 
-PKGREVISION= 3
+PKGREVISION= 4
 .include "Makefile.common"
 
 COMMENT=       Enterprise-class Monitoring Solution for Everyone
diff -r 72a58faa5482 -r 0b8a6c103872 sysutils/zabbix/distinfo
--- a/sysutils/zabbix/distinfo  Sat Nov 16 10:36:31 2019 +0000
+++ b/sysutils/zabbix/distinfo  Sat Nov 16 10:57:22 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2019/06/20 12:03:28 he Exp $
+$NetBSD: distinfo,v 1.18 2019/11/16 10:57:22 he Exp $
 
 SHA1 (zabbix-4.0.9.tar.gz) = 865eb4d9cbb7c53b942c4a538314ebf9d8400099
 RMD160 (zabbix-4.0.9.tar.gz) = c586e0b55ed8d6569889df7494379266dd67ef31
@@ -6,6 +6,7 @@
 Size (zabbix-4.0.9.tar.gz) = 17118478 bytes
 SHA1 (patch-frontends_php_locale_add__new__language.sh) = 71be94363ee58490d2ee3ef4bc6b800cfc99e90a
 SHA1 (patch-frontends_php_locale_make__mo.sh) = c44c8996ffc5c1fa31eebaa766edb430e03004de
+SHA1 (patch-src_libs_zbxsysinfo_netbsd_proc.c) = fde4e78373d7f10e015dae8a15bab74633560093
 SHA1 (patch-src_zabbix__agent_Makefile.in) = 55149e2969d0e6e54c537750ca1bde11c9b690d7
 SHA1 (patch-src_zabbix__proxy_Makefile.in) = 2e7dbe6e8554bbe2c1cb1074a308661ae44bb977
 SHA1 (patch-src_zabbix__server_Makefile.in) = bfcb02e8450df163a038adbae83a7e17fda0a9a9
diff -r 72a58faa5482 -r 0b8a6c103872 sysutils/zabbix/patches/patch-src_libs_zbxsysinfo_netbsd_proc.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/zabbix/patches/patch-src_libs_zbxsysinfo_netbsd_proc.c   Sat Nov 16 10:57:22 2019 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_libs_zbxsysinfo_netbsd_proc.c,v 1.1 2019/11/16 10:57:22 he Exp $
+
+Use P_ZOMBIE() macro instead of testing against LSDEAD, which is
+gone in later versions.
+Thanks to Yuuki Enomoto for the patch.
+
+--- src/libs/zbxsysinfo/netbsd/proc.c.orig     2019-06-07 07:18:53.000000000 +0000
++++ src/libs/zbxsysinfo/netbsd/proc.c
+@@ -298,7 +298,7 @@ int        PROC_NUM(AGENT_REQUEST *request, AGE
+                                               stat_ok = 1;
+                                       break;
+                               case ZBX_PROC_STAT_ZOMB:
+-                                      if (SZOMB == pproc->p_stat || LSDEAD == pproc->p_stat)
++                                      if (P_ZOMBIE(pproc))
+                                               stat_ok = 1;
+                                       break;
+                               case ZBX_PROC_STAT_DISK:



Home | Main Index | Thread Index | Old Index