pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/open-vm-tools Fix a wrong preprocessor condit...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c3ae55a2b1ac
branches:  trunk
changeset: 353768:c3ae55a2b1ac
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Wed Oct 12 13:57:13 2016 +0000

description:
Fix a wrong preprocessor condition and pass initialize variable to kvm_getproc2
>From OBATA Akio, thank you.
Bump PKGREVISION.

diffstat:

 sysutils/open-vm-tools/Makefile                                |  3 ++-
 sysutils/open-vm-tools/distinfo                                |  6 +++---
 sysutils/open-vm-tools/patches/patch-bf                        |  6 +++---
 sysutils/open-vm-tools/patches/patch-vgauth_common_VGAuthLog.c |  4 ++--
 4 files changed, 10 insertions(+), 9 deletions(-)

diffs (78 lines):

diff -r fea2a0e7b632 -r c3ae55a2b1ac sysutils/open-vm-tools/Makefile
--- a/sysutils/open-vm-tools/Makefile   Wed Oct 12 13:40:11 2016 +0000
+++ b/sysutils/open-vm-tools/Makefile   Wed Oct 12 13:57:13 2016 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.59 2016/10/09 03:41:56 ryoon Exp $
+# $NetBSD: Makefile,v 1.60 2016/10/12 13:57:13 ryoon Exp $
 
 DISTNAME=      open-vm-tools-10.0.7-3227872
 PKGNAME=       open-vm-tools-10.0.7
+PKGREVISION=   1
 CATEGORIES=    sysutils
 MASTER_SITES=  https://github.com/vmware/open-vm-tools/files/133266/
 
diff -r fea2a0e7b632 -r c3ae55a2b1ac sysutils/open-vm-tools/distinfo
--- a/sysutils/open-vm-tools/distinfo   Wed Oct 12 13:40:11 2016 +0000
+++ b/sysutils/open-vm-tools/distinfo   Wed Oct 12 13:57:13 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2016/10/09 03:41:56 ryoon Exp $
+$NetBSD: distinfo,v 1.13 2016/10/12 13:57:13 ryoon Exp $
 
 SHA1 (open-vm-tools-10.0.7-3227872.tar.gz) = cd22a3d79d68de46647e8add78bcaf829bb0598d
 RMD160 (open-vm-tools-10.0.7-3227872.tar.gz) = df8cfa62ffd0fbba0432cb0deac0f202b2278625
@@ -22,7 +22,7 @@
 SHA1 (patch-bc) = c2f316cd9035648676fd9d0d7e40fc7f6bf5c8d4
 SHA1 (patch-bd) = eacc267fad7021a96ee435e8fc41c82fb49d9c5f
 SHA1 (patch-be) = 4e4f88df81daf40769b38d1ddd49fbf5e8d8d1eb
-SHA1 (patch-bf) = 674f18131037a3aa5f01371edb9e576c39a9ecaf
+SHA1 (patch-bf) = b3fd95f533f3191a6c2ee6a6540218d25d15623d
 SHA1 (patch-bh) = 86793b6411a64d3189f47d5236f2a6f4c9fff05c
 SHA1 (patch-bm) = 219f196fc07e3746e9e6eb340be5e647544a255a
 SHA1 (patch-bt) = 34c85d8d994c33fb4e18f76bb8b6baa41098f23e
@@ -46,7 +46,7 @@
 SHA1 (patch-services_plugins_dndcp_dnd_dndLinux.c) = 61acce40961ac82b48e055c159efd0c3b7a8899c
 SHA1 (patch-services_plugins_timeSync_Makefile.am) = 45a9c9044f1e4274c173d822a74dfc63bde0f5e9
 SHA1 (patch-services_vmtoolsd_Makefile.am) = 8a34599f5bd9722333de1ecf741a27a0636104c5
-SHA1 (patch-vgauth_common_VGAuthLog.c) = e64fc476b80015759cca3aafc8b48a3c4daa6dde
+SHA1 (patch-vgauth_common_VGAuthLog.c) = 9beacc4665fb6133059279be2594892ebb6ba5d9
 SHA1 (patch-vgauth_lib_common.c) = 0d949bc3c4a00a92f89177e4f20ef2f848f78532
 SHA1 (patch-vgauth_lib_impersonateLinux.c) = 1c925eab81525df06e4ebf906f835170b4320768
 SHA1 (patch-vmblockmounter_vmblockmounter.c) = 4287303b188f4df7a2785fe72bbab820e33d6a07
diff -r fea2a0e7b632 -r c3ae55a2b1ac sysutils/open-vm-tools/patches/patch-bf
--- a/sysutils/open-vm-tools/patches/patch-bf   Wed Oct 12 13:40:11 2016 +0000
+++ b/sysutils/open-vm-tools/patches/patch-bf   Wed Oct 12 13:57:13 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-bf,v 1.2 2016/10/09 03:41:56 ryoon Exp $
+$NetBSD: patch-bf,v 1.3 2016/10/12 13:57:13 ryoon Exp $
 
 --- lib/procMgr/procMgrPosix.c.orig    2016-02-16 20:06:46.000000000 +0000
 +++ lib/procMgr/procMgrPosix.c
@@ -53,8 +53,8 @@
      * Get the list of process info structs
      */
 +#if defined(__NetBSD__)
-+   int temp; 
-+   kp = kvm_getproc2(kd, KERN_PROC_ALL, flag, temp, &nentries);
++   int elemsize = INT_MAX;
++   kp = kvm_getproc2(kd, KERN_PROC_ALL, flag, elemsize, &nentries);
 +#else
     kp = kvm_getprocs(kd, KERN_PROC_PROC, flag, &nentries);
 +#endif
diff -r fea2a0e7b632 -r c3ae55a2b1ac sysutils/open-vm-tools/patches/patch-vgauth_common_VGAuthLog.c
--- a/sysutils/open-vm-tools/patches/patch-vgauth_common_VGAuthLog.c    Wed Oct 12 13:40:11 2016 +0000
+++ b/sysutils/open-vm-tools/patches/patch-vgauth_common_VGAuthLog.c    Wed Oct 12 13:57:13 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-vgauth_common_VGAuthLog.c,v 1.1 2016/10/09 03:41:56 ryoon Exp $
+$NetBSD: patch-vgauth_common_VGAuthLog.c,v 1.2 2016/10/12 13:57:13 ryoon Exp $
 
 --- vgauth/common/VGAuthLog.c.orig     2016-02-16 20:06:48.000000000 +0000
 +++ vgauth/common/VGAuthLog.c
@@ -7,7 +7,7 @@
     buf[sizeof buf - 1] = '\0';
  
 -#ifdef sun
-+#if defined(sun) && defined(__NetBSD__)
++#if defined(sun) || defined(__NetBSD__)
     strerror_r(code, errMsg, sizeof errMsg);
     g_warning("[function %s, file %s, line %d], %s, [errno = %d], %s\n",
               func, file, line, buf, code, errMsg);



Home | Main Index | Thread Index | Old Index