Ticket #45715: gettext.patch

File gettext.patch, 3.1 KB (added by larryv (Lawrence Velázquez), 10 years ago)
  • dports/devel/gettext/Portfile

    commit 4753d0ee5fd8db412495147a1ffafdcbc3137104
    Author: Lawrence Velázquez <larryv@macports.org>
    Date:   3 minutes ago
    
        gettext: Use two-level namespace on Yosemite (#45715)
    
    diff --git a/dports/devel/gettext/Portfile b/dports/devel/gettext/Portfile
    index 590bb0b..d2e8d20 100644
    a b PortGroup muniversal 1.0 
    88name                    gettext
    99epoch                   2
    1010version                 0.19.3
     11revision                1
    1112categories              devel
    1213maintainers             ryandesign
    1314# libs are LGPL and executables are GPL
    checksums rmd160 a1316591e3fd490bbca7ce47b9efdcc4383f598a \ 
    2829# Note: unable to autoreconf due to dependency cycle
    2930patchfiles               stdlib.patch
    3031
     32# Don't link with "-flat_namespace" on Yosemite and later (#45715).
     33patchfiles-append       yosemite-libtool-twolevelns.patch
     34
    3135# https://trac.macports.org/ticket/31167
    3236compiler.blacklist-append   {clang < 211.10.1}
    3337
  • new file dports/devel/gettext/files/yosemite-libtool-twolevelns.patch

    diff --git a/dports/devel/gettext/files/yosemite-libtool-twolevelns.patch b/dports/devel/gettext/files/yosemite-libtool-twolevelns.patch
    new file mode 100644
    index 0000000..b0806c4
    - +  
     1Index: gettext-runtime/configure
     2===================================================================
     3--- gettext-runtime/configure.orig
     4+++ gettext-runtime/configure
     5@@ -10174,7 +10174,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
     6       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
     7        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
     8          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
     9-       10.[012]*)
     10+       10.[012][,.]*)
     11          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
     12        10.*)
     13          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
     14Index: gettext-runtime/libasprintf/configure
     15===================================================================
     16--- gettext-runtime/libasprintf/configure.orig
     17+++ gettext-runtime/libasprintf/configure
     18@@ -8385,7 +8385,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
     19       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
     20        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
     21          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
     22-       10.[012]*)
     23+       10.[012][,.]*)
     24          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
     25        10.*)
     26          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
     27Index: gettext-tools/configure
     28===================================================================
     29--- gettext-tools/configure.orig
     30+++ gettext-tools/configure
     31@@ -12185,7 +12185,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
     32       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
     33        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
     34          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
     35-       10.[012]*)
     36+       10.[012][,.]*)
     37          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
     38        10.*)
     39          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;