pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/protobuf protobuf: Fix build on NetBSD 8.1 with ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/71985c09a031
branches:  trunk
changeset: 415523:71985c09a031
user:      otis <otis%pkgsrc.org@localhost>
date:      Tue Oct 08 22:11:37 2019 +0000

description:
protobuf: Fix build on NetBSD 8.1 with gcc 5.5.0

Include cmath instead of math.h. This fixes build on NetBSD 8.1 and gcc 5.5.

Also, pull request with upstream has been opened at:
https://github.com/protocolbuffers/protobuf/pull/6747

diffstat:

 devel/protobuf/distinfo                                          |   3 +-
 devel/protobuf/patches/patch-src_google_protobuf_text__format.cc |  13 ++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 6bc0cd7ae12d -r 71985c09a031 devel/protobuf/distinfo
--- a/devel/protobuf/distinfo   Tue Oct 08 21:43:05 2019 +0000
+++ b/devel/protobuf/distinfo   Tue Oct 08 22:11:37 2019 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.28 2019/10/04 10:37:49 adam Exp $
+$NetBSD: distinfo,v 1.29 2019/10/08 22:11:37 otis Exp $
 
 SHA1 (protobuf-cpp-3.10.0.tar.gz) = 01f3871186d50364e5d6cea9bb2436c0343d2e9c
 RMD160 (protobuf-cpp-3.10.0.tar.gz) = 1995e96095f922ae817b3624c00f11b2533b6a6c
 SHA512 (protobuf-cpp-3.10.0.tar.gz) = bdf2c7b658376757b1df5b79d82606d868561bb69ee6ee5025c9a16df14cce67333d97ffa3b9736c157ab6153490f7943a21fe5264e9f4e4a6f782cd014116e2
 Size (protobuf-cpp-3.10.0.tar.gz) = 4599017 bytes
 SHA1 (patch-configure) = 22a1fc4e701b348772b3e2e4c68aad3b97032cc5
+SHA1 (patch-src_google_protobuf_text__format.cc) = d37012ac03912cf7665a46d5f493113d9774c218
 SHA1 (patch-third__party_googletest_googlemock_configure) = fe3b812e819130d87d99316144507d2454461cd1
diff -r 6bc0cd7ae12d -r 71985c09a031 devel/protobuf/patches/patch-src_google_protobuf_text__format.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/protobuf/patches/patch-src_google_protobuf_text__format.cc  Tue Oct 08 22:11:37 2019 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_google_protobuf_text__format.cc,v 1.1 2019/10/08 22:11:37 otis Exp $
+
+--- src/google/protobuf/text_format.cc.orig    2019-10-03 00:08:05.000000000 +0000
++++ src/google/protobuf/text_format.cc
+@@ -35,7 +35,7 @@
+ #include <google/protobuf/text_format.h>
+ 
+ #include <float.h>
+-#include <math.h>
++#include <cmath>
+ #include <stdio.h>
+ 
+ #include <algorithm>



Home | Main Index | Thread Index | Old Index