Ticket #47939: curl.patch

File curl.patch, 2.0 KB (added by larryv (Lawrence Velázquez), 9 years ago)
  • dports/net/curl/Portfile

    commit 0f18d50bc7948505a6f9e0b8d09ab44b795e0878
    Author: Lawrence Velázquez <larryv@macports.org>
    Date:   2 hours ago
    
        curl: Don't create flat-namespace dylibs on Yosemite (#47939)
        
        Quash the Libtool MACOSX_DEPLOYMENT_TARGET bug (comment:35:ticket:44596,
        http://lists.gnu.org/archive/html/libtool-patches/2014-09/msg00000.html).
    
    diff --git a/dports/net/curl/Portfile b/dports/net/curl/Portfile
    index c3c7a00..f38d64a 100644
    a b checksums ${distfiles} \ 
    3131if {${name} eq ${subport}} {
    3232    PortGroup                   muniversal 1.0
    3333
    34     # skip 7.42.1 revision 1 if revbumping for other than nghttp2 v1.0.0
    35     revision                    0
     34    revision                    2
    3635
    3736    depends_build               port:pkgconfig
    3837
    3938    depends_lib                 port:libidn \
    4039                                port:zlib
    4140
    42     patchfiles                  patch-curl.h.diff
     41    patchfiles                  patch-curl.h.diff \
     42                                yosemite-libtool.patch
    4343
    4444    configure.args              --enable-ipv6 \
    4545                                --without-gnutls \
  • new file dports/net/curl/files/yosemite-libtool.patch

    diff --git a/dports/net/curl/files/yosemite-libtool.patch b/dports/net/curl/files/yosemite-libtool.patch
    new file mode 100644
    index 0000000..69615fb
    - +  
     1Don't accidentally create flat-namespace dylibs on Yosemite (#44596).
     2
     3Index: configure
     4===================================================================
     5--- configure.orig
     6+++ configure
     7@@ -10879,7 +10879,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
     8       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
     9        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
     10          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
     11-       10.[012]*)
     12+       10.[012][,.]*)
     13          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
     14        10.*)
     15          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;