[112473] trunk/dports/net/net-snmp

ryandesign at macports.org ryandesign at macports.org
Wed Oct 23 23:11:23 PDT 2013


Revision: 112473
          https://trac.macports.org/changeset/112473
Author:   ryandesign at macports.org
Date:     2013-10-23 23:11:23 -0700 (Wed, 23 Oct 2013)
Log Message:
-----------
net-snmp: fix build failure on Mavericks

Modified Paths:
--------------
    trunk/dports/net/net-snmp/Portfile

Added Paths:
-----------
    trunk/dports/net/net-snmp/files/patch-include-net-snmp-system-darwin13.h.diff

Modified: trunk/dports/net/net-snmp/Portfile
===================================================================
--- trunk/dports/net/net-snmp/Portfile	2013-10-24 05:36:39 UTC (rev 112472)
+++ trunk/dports/net/net-snmp/Portfile	2013-10-24 06:11:23 UTC (rev 112473)
@@ -25,7 +25,13 @@
 checksums               rmd160  392d643e9f2f42ee4fa688b4702329ad005ee12e \
                         sha256  09ed31b4cc1f3c0411ef9a16eff79ef3b30d89c32ca46d5a01a41826c4ceb816
 
+post-extract {
+    # darwin13.h does not exist in 5.7.2
+    copy ${worksrcpath}/include/net-snmp/system/darwin12.h ${worksrcpath}/include/net-snmp/system/darwin13.h
+}
+
 patchfiles              patch-configure.diff
+patchfiles-append       patch-include-net-snmp-system-darwin13.h.diff
 
 depends_lib             port:openssl \
                         port:zlib \

Added: trunk/dports/net/net-snmp/files/patch-include-net-snmp-system-darwin13.h.diff
===================================================================
--- trunk/dports/net/net-snmp/files/patch-include-net-snmp-system-darwin13.h.diff	                        (rev 0)
+++ trunk/dports/net/net-snmp/files/patch-include-net-snmp-system-darwin13.h.diff	2013-10-24 06:11:23 UTC (rev 112473)
@@ -0,0 +1,15 @@
+--- include/net-snmp/system/darwin12.h	2012-10-09 17:28:58.000000000 -0500
++++ include/net-snmp/system/darwin13.h	2013-10-24 00:58:04.000000000 -0500
+@@ -44,9 +44,9 @@
+ /*
+  * This section defines Mac OS X 10.5 (and later) specific additions.
+  */
+-#define darwin 12
+-#ifndef darwin12
+-#   define darwin12 darwin
++#define darwin 13
++#ifndef darwin13
++#   define darwin13 darwin
+ #endif
+ 
+ /*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131023/cc1c0278/attachment.html>


More information about the macports-changes mailing list