Re: hot fixes for yosemite

Jack Howarth <[email protected]>
Newsgroups gmane.os.apple.fink.devel
Message-ID <CAP5Ds0BzNk==KU3gsyexxrBRTdw6ze_C6CUC=dQHysng2D_F-Q@mail.gmail.com>
David,
      It appears that the hot fixes to mpfr seem to break the gcc49 build.
Attached is the previous
copy of libmpfr4-3.1.2-2 which only adds the yosemite symbol lookup patch.
Lets use that version
for now.
        Jack


On Sun, Oct 26, 2014 at 11:34 AM, Jack Howarth <[email protected]>
wrote:

> David,
>       We need to push out some hot fixes to repair breakage on Yosemite.
> MacPorts is using patches to configure to address the inappropriate linkage
> of shared libraries with...
>
> -Wl,-flat_namespace -Wl,-undefined -Wl,suppress
>
>
> instead of
>
>
> -Wl,-undefined -Wl,dynamic_lookup
>
>
> when MACOSX_DEPLOYMENT_TARGET is set to 10.10 as fink does by default.
>
> The fix is always of the form...
>
>
> diff -uNr mpfr-3.1.2.orig/configure mpfr-3.1.2/configure
>
> --- mpfr-3.1.2.orig/configure   2013-03-13 11:38:20.000000000 -0400
>
> +++ mpfr-3.1.2/configure        2014-10-26 01:00:37.000000000 -0400
>
> @@ -10401,7 +10401,7 @@
>
>        case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
>
>         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
>
>           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
>
> -       10.[012]*)
>
> +       10.[012][,.]*)
>
>           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined
> ${wl}suppress' ;;
>
>         10.*)
>
>           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
>
> diff -uNr mpfr-3.1.2.orig/m4/libtool.m4 mpfr-3.1.2/m4/libtool.m4
>
> --- mpfr-3.1.2.orig/m4/libtool.m4       2013-03-13 11:38:16.000000000 -0400
>
> +++ mpfr-3.1.2/m4/libtool.m4    2014-10-26 01:00:37.000000000 -0400
>
> @@ -1052,7 +1052,7 @@
>
>        case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
>
>         10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
>
>           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
>
> -       10.[[012]]*)
>
> +       10.[[012]][[,.]]*)
>
>           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined
> ${wl}suppress' ;;
>
>         10.*)
>
>           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
>
>      Without this hot-fix shared libraries are being linked as if the
> target were Puma instead
>
> of Yosemite. The issue is very wide spread as libtool needs to be updated
> in all the
>
> packages using it. It also can cause nasty side-effects as witnessed by
> the large number
>
> of gcc49 test suite regressions when linked in this way. I will push a fix
> to gcc49-4.9.1 later
>
> today.
>
>       Attached is the fixes for libmpfr4 and gmp5. Note that I also added
> the missing
>
> upstream accumulative patches to take libmpfr to 3.1.2-P10.
>
>                    Jack
> l
>

------------------------------------------------------------------------------

_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
libmpfr4.info (application/octet-stream, 2.6 KB) - not displayed
libmpfr4.patch (application/octet-stream, 1.1 KB)
diff -uNr mpfr-3.1.2.orig/configure mpfr-3.1.2/configure
--- mpfr-3.1.2.orig/configure	2013-03-13 11:38:20.000000000 -0400
+++ mpfr-3.1.2/configure	2014-10-26 01:00:37.000000000 -0400
@@ -10401,7 +10401,7 @@
       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
-	10.[012]*)
+	10.[012][,.]*)
 	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 	10.*)
 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
diff -uNr mpfr-3.1.2.orig/m4/libtool.m4 mpfr-3.1.2/m4/libtool.m4
--- mpfr-3.1.2.orig/m4/libtool.m4	2013-03-13 11:38:16.000000000 -0400
+++ mpfr-3.1.2/m4/libtool.m4	2014-10-26 01:00:37.000000000 -0400
@@ -1052,7 +1052,7 @@
       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
-	10.[[012]]*)
+	10.[[012]][[,.]]*)
 	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 	10.*)
 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.