[122653] trunk/dports/databases/mongodb

ryandesign at macports.org ryandesign at macports.org
Fri Jul 25 12:05:34 PDT 2014


Revision: 122653
          https://trac.macports.org/changeset/122653
Author:   ryandesign at macports.org
Date:     2014-07-25 12:05:34 -0700 (Fri, 25 Jul 2014)
Log Message:
-----------
mongodb: remove unused preprocessor macros

Modified Paths:
--------------
    trunk/dports/databases/mongodb/Portfile

Added Paths:
-----------
    trunk/dports/databases/mongodb/files/patch-src-third_party-s2-util-endian-endian.h.diff

Modified: trunk/dports/databases/mongodb/Portfile
===================================================================
--- trunk/dports/databases/mongodb/Portfile	2014-07-25 19:04:32 UTC (rev 122652)
+++ trunk/dports/databases/mongodb/Portfile	2014-07-25 19:05:34 UTC (rev 122653)
@@ -36,6 +36,7 @@
 
 patchfiles-append   patch-SConstruct.diff
 patchfiles-append   patch-src-mongo-util-compress.cpp.diff
+patchfiles-append   patch-src-third_party-s2-util-endian-endian.h.diff
 
 use_configure       no
 

Added: trunk/dports/databases/mongodb/files/patch-src-third_party-s2-util-endian-endian.h.diff
===================================================================
--- trunk/dports/databases/mongodb/files/patch-src-third_party-s2-util-endian-endian.h.diff	                        (rev 0)
+++ trunk/dports/databases/mongodb/files/patch-src-third_party-s2-util-endian-endian.h.diff	2014-07-25 19:05:34 UTC (rev 122653)
@@ -0,0 +1,19 @@
+Remove unused preprocessor macros
+https://jira.mongodb.org/browse/SERVER-14184
+--- src/third_party/s2/util/endian/endian.h.orig	2014-06-19 15:19:09.000000000 -0500
++++ src/third_party/s2/util/endian/endian.h	2014-07-25 13:20:10.000000000 -0500
+@@ -178,14 +178,11 @@
+ };
+ 
+ 
+-// This one is safe to take as it's an extension
+-#define htonll(x) ghtonll(x)
+ 
+ // ntoh* and hton* are the same thing for any size and bytesex,
+ // since the function is an involution, i.e., its own inverse.
+ #define gntohl(x) ghtonl(x)
+ #define gntohs(x) ghtons(x)
+ #define gntohll(x) ghtonll(x)
+-#define ntohll(x) htonll(x)
+ 
+ #endif  // UTIL_ENDIAN_ENDIAN_H_
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140725/5ad88f64/attachment.html>


More information about the macports-changes mailing list