[144492] trunk/dports/devel/pth/Portfile
ionic at macports.org
ionic at macports.org
Sat Jan 9 21:56:47 PST 2016
Revision: 144492
https://trac.macports.org/changeset/144492
Author: ionic at macports.org
Date: 2016-01-09 21:56:47 -0800 (Sat, 09 Jan 2016)
Log Message:
-----------
pth: work around bug on PPC-platforms leading to programs using pth looping endlessly. Fixes: #49790.
Switch to sigsetjmp/siglongjmp instead of makecontext/setcontext when
detecting a PPC build. For universal builds, x86(_64) will equally be
using ssj/slj, but no functionality will be lost.
Note that dependent software should be revbumped after this change.
Modified Paths:
--------------
trunk/dports/devel/pth/Portfile
Modified: trunk/dports/devel/pth/Portfile
===================================================================
--- trunk/dports/devel/pth/Portfile 2016-01-10 05:56:42 UTC (rev 144491)
+++ trunk/dports/devel/pth/Portfile 2016-01-10 05:56:47 UTC (rev 144492)
@@ -5,6 +5,7 @@
name pth
version 2.0.7
+revision 1
categories devel
license LGPL-2.1+
maintainers nomaintainer
@@ -32,6 +33,23 @@
use_parallel_build no
+platform darwin {
+ # makecontext/setcontext (the default) is leading to infinite loops in programs on PPC-platforms.
+ # Switch to setjmp/longjmp when building for one of these platforms.
+ # Latter should work equally well on x86(_64).
+ if {![variant_isset universal]} {
+ if {[lsearch ${build_arch} ppc*] != -1} {
+ configure.args-append --with-mctx-mth=sjlj --with-mctx-dsp=ssjlj --with-mctx-stk=sas
+ }
+ }
+
+ variant universal {
+ if {[lsearch ${universal_archs} ppc*] != -1} {
+ configure.args-append --with-mctx-mth=sjlj --with-mctx-dsp=ssjlj --with-mctx-stk=sas
+ }
+ }
+}
+
post-destroot {
reinplace -E {s|-arch [a-z0-9_]+||g} \
${destroot}${prefix}/bin/pth-config
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160109/3315705c/attachment.html>
More information about the macports-changes
mailing list