pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/filesystems/glusterfs Make NetBSD memory reading routi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/876228f170f5
branches:  trunk
changeset: 383592:876228f170f5
user:      manu <manu%pkgsrc.org@localhost>
date:      Mon Aug 06 02:17:04 2018 +0000

description:
Make NetBSD memory reading routine 64-bit aware

diffstat:

 filesystems/glusterfs/distinfo                                      |   3 +-
 filesystems/glusterfs/patches/patch-libglusterfs_src_common-utils.c |  29 ++++++++++
 2 files changed, 31 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r deef1d9201fb -r 876228f170f5 filesystems/glusterfs/distinfo
--- a/filesystems/glusterfs/distinfo    Sun Aug 05 21:28:45 2018 +0000
+++ b/filesystems/glusterfs/distinfo    Mon Aug 06 02:17:04 2018 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.64 2018/04/19 02:49:04 manu Exp $
+$NetBSD: distinfo,v 1.65 2018/08/06 02:17:04 manu Exp $
 
 SHA1 (glusterfs-3.12.8.tar.gz) = 9e8ab7a86c1a3eb476816c908718ad57753406ac
 RMD160 (glusterfs-3.12.8.tar.gz) = d0e09f748893829f85f6570eaad977f545745115
 SHA512 (glusterfs-3.12.8.tar.gz) = 4dfe00704489e5ce1c599d691105081c14f85209319c829d82e783fec09a4544e078dc956db5dce1d130e8fcc4e617b1dfecf915f9239e250869dc0cb2ef4397
 Size (glusterfs-3.12.8.tar.gz) = 7389786 bytes
+SHA1 (patch-libglusterfs_src_common-utils.c) = d33765dcc17907f3af0cc9954f5920abb6365e48
diff -r deef1d9201fb -r 876228f170f5 filesystems/glusterfs/patches/patch-libglusterfs_src_common-utils.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/glusterfs/patches/patch-libglusterfs_src_common-utils.c       Mon Aug 06 02:17:04 2018 +0000
@@ -0,0 +1,29 @@
+--- libglusterfs/src/common-utils.c.orig       2018-08-05 19:00:57.102350607 +0200
++++ libglusterfs/src/common-utils.c    2018-08-05 19:21:38.677872008 +0200
+@@ -2970,15 +2970,25 @@
+ 
+       memsize = page_size * num_pages;
+ #endif
+ 
+-#if defined GF_BSD_HOST_OS || defined GF_DARWIN_HOST_OS
++#if defined GF_DARWIN_HOST_OS
+ 
+       size_t len = sizeof(memsize);
+       int name [] = { CTL_HW, HW_PHYSMEM };
+ 
+       sysctl (name, 2, &memsize, &len, NULL, 0);
+ #endif
++
++#if defined __NetBSD__
++
++      size_t len = sizeof(memsize);
++      int name64 [] = { CTL_HW, HW_PHYSMEM64 };
++
++      sysctl (name64, 2, &memsize, &len, NULL, 0);
++      if (memsize == -1)
++              sysctl (name64, 2, &memsize, &len, NULL, 0);
++#endif
+       return memsize;
+ }
+ 
+ /* Strips all whitespace characters in a string and returns length of new string



Home | Main Index | Thread Index | Old Index