Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/top top: fix build on NetBSD with sys/lwp.h >...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7d13412e3c61
branches:  trunk
changeset: 437186:7d13412e3c61
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Tue Aug 18 05:12:55 2020 +0000

description:
top: fix build on NetBSD with sys/lwp.h >= 1.185 (LSDEAD removal)

diffstat:

 sysutils/top/distinfo         |   4 ++--
 sysutils/top/patches/patch-an |  11 +++++++----
 2 files changed, 9 insertions(+), 6 deletions(-)

diffs (42 lines):

diff -r 531813986854 -r 7d13412e3c61 sysutils/top/distinfo
--- a/sysutils/top/distinfo     Tue Aug 18 05:03:41 2020 +0000
+++ b/sysutils/top/distinfo     Tue Aug 18 05:12:55 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2015/11/04 01:32:33 agc Exp $
+$NetBSD: distinfo,v 1.15 2020/08/18 05:12:55 tnn Exp $
 
 SHA1 (top-3.6.1.tar.gz) = 2578e271a9eca768e98d16cccf613d538c6a4f81
 RMD160 (top-3.6.1.tar.gz) = adcfe9065cf17ac0037cc68fbb98b2ba4c5f2a38
@@ -10,4 +10,4 @@
 SHA1 (patch-ak) = dc0c5295df0dd090ffca730d0e58243d0e5c4884
 SHA1 (patch-al) = 97d474be72591c415cf2978422753b5533109c48
 SHA1 (patch-am) = 54cb262e37f0f281aa49bc30f9df92d9577431a1
-SHA1 (patch-an) = b7e220195537349754ae8552f556ba64c8494fc2
+SHA1 (patch-an) = 028562347998a4f18237cccc3cc1fe9647848c83
diff -r 531813986854 -r 7d13412e3c61 sysutils/top/patches/patch-an
--- a/sysutils/top/patches/patch-an     Tue Aug 18 05:03:41 2020 +0000
+++ b/sysutils/top/patches/patch-an     Tue Aug 18 05:12:55 2020 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-an,v 1.3 2010/12/27 13:15:05 obache Exp $
+$NetBSD: patch-an,v 1.4 2020/08/18 05:12:55 tnn Exp $
 
---- machine/m_netbsd20.c.orig  2004-07-12 09:03:09.000000000 +0200
+--- machine/m_netbsd20.c.orig  2020-08-18 05:08:35.740015522 +0000
 +++ machine/m_netbsd20.c
-@@ -0,0 +1,895 @@
+@@ -0,0 +1,898 @@
 +/*    NetBSD: m_netbsd15.c,v 1.22 2004/02/13 11:36:24 wiz Exp         */
 +
 +/*
@@ -488,7 +488,10 @@
 +              if (pp->p_stat != 0 && (show_system || ((pp->p_flag & P_SYSTEM) == 0))) {
 +                      total_procs++;
 +                      process_states[(unsigned char) pp->p_stat]++;
-+                      if (pp->p_stat != LSZOMB && pp->p_stat != LSDEAD &&
++                      if (pp->p_stat != LSZOMB &&
++#ifdef LSDEAD
++                          pp->p_stat != LSDEAD &&
++#endif
 +                          (show_idle || (pp->p_pctcpu != 0) || 
 +                          (pp->p_stat == LSRUN || pp->p_stat == LSONPROC)) &&
 +                          (!show_uid || pp->p_ruid == (uid_t)sel->uid)) {



Home | Main Index | Thread Index | Old Index