[packages/mongodb] - added pcap patch (fix build errors caused by some libpcap #defines); release 10
qboosh
qboosh at pld-linux.org
Sun Apr 28 21:10:53 CEST 2019
commit 06a3e51c4e3c2c1a7610083ec4b94b8f5bcc6c3c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Apr 28 21:11:15 2019 +0200
- added pcap patch (fix build errors caused by some libpcap #defines); release 10
mongodb-pcap.patch | 35 +++++++++++++++++++++++++++++++++++
mongodb.spec | 4 +++-
2 files changed, 38 insertions(+), 1 deletion(-)
---
diff --git a/mongodb.spec b/mongodb.spec
index a383d92..8deb20b 100644
--- a/mongodb.spec
+++ b/mongodb.spec
@@ -8,7 +8,7 @@ Summary: MongoDB client shell and tools
Summary(pl.UTF-8): Powłoka kliencka i narzędzia dla bazy danych MongoDB
Name: mongodb
Version: 2.2.4
-Release: 9
+Release: 10
License: AGPL v3
Group: Applications/Databases
Source0: http://downloads.mongodb.org/src/%{name}-src-r%{version}.tar.gz
@@ -25,6 +25,7 @@ Patch4: %{name}-shared.patch
Patch5: gcc4.patch
Patch6: no-Werror.patch
Patch7: gcc6.patch
+Patch8: %{name}-pcap.patch
URL: http://www.mongodb.org/
BuildRequires: boost-devel >= 1.50
BuildRequires: libpcap-devel
@@ -156,6 +157,7 @@ konfiguracji oraz skrypty init.d.
%patch5 -p1
%patch6 -p1
%patch7 -p1
+%patch8 -p1
# Fix permissions
find -type f -executable | xargs chmod a-x
diff --git a/mongodb-pcap.patch b/mongodb-pcap.patch
new file mode 100644
index 0000000..146f2b3
--- /dev/null
+++ b/mongodb-pcap.patch
@@ -0,0 +1,35 @@
+#--- mongodb-src-r2.2.4/src/mongo/util/net/sock.h.orig 2013-04-01 04:41:49.000000000 +0200
+#+++ mongodb-src-r2.2.4/src/mongo/util/net/sock.h 2019-04-28 20:26:20.537526400 +0200
+#@@ -59,8 +59,6 @@
+# #else // _WIN32
+#
+# inline void closesocket(int s) { close(s); }
+#- const int INVALID_SOCKET = -1;
+#- typedef int SOCKET;
+#
+# #endif // _WIN32
+#
+#--- mongodb-src-r2.2.4/src/mongo/util/net/sock.cpp.orig 2013-04-01 04:41:49.000000000 +0200
+#+++ mongodb-src-r2.2.4/src/mongo/util/net/sock.cpp 2019-04-28 20:26:36.338355487 +0200
+#@@ -578,7 +578,7 @@
+# _remote = remote;
+#
+# _fd = socket(remote.getType(), SOCK_STREAM, 0);
+#- if ( _fd == INVALID_SOCKET ) {
+#+ if ( _fd == -1 ) {
+# LOG(_logLevel) << "ERROR: connect invalid socket " << errnoWithDescription() << endl;
+# return false;
+# }
+--- mongodb-src-r2.2.4/src/mongo/util/net/sock.h.orig 2019-04-28 20:27:19.950643872 +0200
++++ mongodb-src-r2.2.4/src/mongo/util/net/sock.h 2019-04-28 20:36:33.543024811 +0200
+@@ -39,6 +39,10 @@
+ #include <openssl/ssl.h>
+ #endif
+
++// in case it's defined in some (e.g. pcap) headers
++#undef SOCKET
++#undef INVALID_SOCKET
++
+ namespace mongo {
+
+ const int SOCK_FAMILY_UNKNOWN_ERROR=13078;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mongodb.git/commitdiff/06a3e51c4e3c2c1a7610083ec4b94b8f5bcc6c3c
More information about the pld-cvs-commit
mailing list