[113683] trunk/dports/net/bro

ryandesign at macports.org ryandesign at macports.org
Fri Nov 22 18:18:18 PST 2013


Revision: 113683
          https://trac.macports.org/changeset/113683
Author:   ryandesign at macports.org
Date:     2013-11-22 18:18:18 -0800 (Fri, 22 Nov 2013)
Log Message:
-----------
bro: fix build on Snow Leopard and earlier when file port is not installed (#41457)

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

Added Paths:
-----------
    trunk/dports/net/bro/files/
    trunk/dports/net/bro/files/patch-CMakeLists.txt.diff

Modified: trunk/dports/net/bro/Portfile
===================================================================
--- trunk/dports/net/bro/Portfile	2013-11-22 22:22:18 UTC (rev 113682)
+++ trunk/dports/net/bro/Portfile	2013-11-23 02:18:18 UTC (rev 113683)
@@ -38,6 +38,8 @@
                     port:readline \
                     port:zlib
 
+patchfiles          patch-CMakeLists.txt.diff
+
 universal_variant   no
 
 configure.args      --enable-mobile-ipv6

Added: trunk/dports/net/bro/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/net/bro/files/patch-CMakeLists.txt.diff	                        (rev 0)
+++ trunk/dports/net/bro/files/patch-CMakeLists.txt.diff	2013-11-23 02:18:18 UTC (rev 113683)
@@ -0,0 +1,18 @@
+Don't check the libmagic version number, since it is determined incorrectly,
+and this will cause the build to fail on Snow Leopard and earlier when the
+otherwise unnecessary file port is not also installed, and upstream does not
+plan to fix this.
+https://bro-tracker.atlassian.net/browse/BIT-1096
+--- CMakeLists.txt.orig	2013-11-07 12:27:11.000000000 -0600
++++ CMakeLists.txt	2013-11-22 20:12:59.000000000 -0600
+@@ -75,10 +75,6 @@
+ endif ()
+ 
+ set(libmagic_req 5.04)
+-if ( LibMagic_VERSION VERSION_LESS ${libmagic_req} )
+-    message(FATAL_ERROR "libmagic of at least version ${libmagic_req} required "
+-                        "(found ${LibMagic_VERSION})")
+-endif ()
+ 
+ include_directories(BEFORE
+                     ${PCAP_INCLUDE_DIR}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131122/4c99b8f5/attachment-0001.html>


More information about the macports-changes mailing list