pkgsrc-Changes archive

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

CVS commit: pkgsrc/benchmarks/google-benchmark



Module Name:    pkgsrc
Committed By:   minskim
Date:           Fri Jan 24 16:13:03 UTC 2020

Modified Files:
        pkgsrc/benchmarks/google-benchmark: distinfo
Added Files:
        pkgsrc/benchmarks/google-benchmark/patches: patch-src_sysinfo.cc

Log Message:
benchmarks/google-benchmark: Build fix

Apply upstream patch to define HOST_NAME_MAX.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/benchmarks/google-benchmark/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/benchmarks/google-benchmark/patches/patch-src_sysinfo.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/benchmarks/google-benchmark/distinfo
diff -u pkgsrc/benchmarks/google-benchmark/distinfo:1.5 pkgsrc/benchmarks/google-benchmark/distinfo:1.6
--- pkgsrc/benchmarks/google-benchmark/distinfo:1.5     Tue May 21 09:55:15 2019
+++ pkgsrc/benchmarks/google-benchmark/distinfo Fri Jan 24 16:13:03 2020
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.5 2019/05/21 09:55:15 adam Exp $
+$NetBSD: distinfo,v 1.6 2020/01/24 16:13:03 minskim Exp $
 
 SHA1 (benchmark-1.5.tar.gz) = a35b0a2ae52be99162c24c470bcda4b102b2d7e3
 RMD160 (benchmark-1.5.tar.gz) = 4d2f355d89a8aa0e3c3657c096e1a1a90f4b3574
 SHA512 (benchmark-1.5.tar.gz) = a57122340c4f9a8e434ec70098916aef7c49d5d8312a30e4753f54bacc1099b146698b66c12f9ef116f7cadc93c604809a905c0e259aecf63aa2553390a1b609
 Size (benchmark-1.5.tar.gz) = 150159 bytes
 SHA1 (patch-CMakeLists.txt) = 858906c819358522d27d294025b9dfde6c053324
+SHA1 (patch-src_sysinfo.cc) = 0e5c6333e0160259d6ce2a77e36734c80685eddc

Added files:

Index: pkgsrc/benchmarks/google-benchmark/patches/patch-src_sysinfo.cc
diff -u /dev/null pkgsrc/benchmarks/google-benchmark/patches/patch-src_sysinfo.cc:1.1
--- /dev/null   Fri Jan 24 16:13:03 2020
+++ pkgsrc/benchmarks/google-benchmark/patches/patch-src_sysinfo.cc     Fri Jan 24 16:13:03 2020
@@ -0,0 +1,28 @@
+$NetBSD: patch-src_sysinfo.cc,v 1.1 2020/01/24 16:13:03 minskim Exp $
+
+Make sure HOST_NAME_MAX is always defined.
+https://github.com/google/benchmark/commit/7411874d9563b18c56f8a81e02e77c6ffc5c3851
+
+--- src/sysinfo.cc.orig        2019-05-13 19:42:18.000000000 +0000
++++ src/sysinfo.cc
+@@ -429,11 +429,20 @@ std::string GetSystemName() {
+ #endif
+   return str;
+ #else // defined(BENCHMARK_OS_WINDOWS)
++#ifndef HOST_NAME_MAX
+ #ifdef BENCHMARK_HAS_SYSCTL // BSD/Mac Doesnt have HOST_NAME_MAX defined
+ #define HOST_NAME_MAX 64
++#elif defined(BENCHMARK_OS_NACL)
++#define HOST_NAME_MAX 64
+ #elif defined(BENCHMARK_OS_QNX)
+ #define HOST_NAME_MAX 154
++#elif defined(BENCHMARK_OS_RTEMS)
++#define HOST_NAME_MAX 256
++#else
++#warning "HOST_NAME_MAX not defined. using 64"
++#define HOST_NAME_MAX 64
+ #endif
++#endif // def HOST_NAME_MAX
+   char hostname[HOST_NAME_MAX];
+   int retVal = gethostname(hostname, HOST_NAME_MAX);
+   if (retVal != 0) return std::string("");



Home | Main Index | Thread Index | Old Index