<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/3533798bc7bd3dd30441fcf890e9f289e0620b54">https://github.com/macports/macports-ports/commit/3533798bc7bd3dd30441fcf890e9f289e0620b54</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 3533798bc7b gnutls: simplify compiler selection
</span>3533798bc7b is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 3533798bc7bd3dd30441fcf890e9f289e0620b54
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Mon Dec 7 20:49:52 2020 -0800
<span style='display:block; white-space:pre;color:#404040;'> gnutls: simplify compiler selection
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> use base TLS selection tools
</span><span style='display:block; white-space:pre;color:#404040;'> blacklist compilers that don't support get_cpuid_count
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> closes: https://trac.macports.org/ticket/58804
</span>---
devel/gnutls/Portfile | 60 ++++++++++++++-------------------------------------
1 file changed, 16 insertions(+), 44 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/gnutls/Portfile b/devel/gnutls/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 532ee2e8daf..40055b530c0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/gnutls/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/gnutls/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -86,6 +86,22 @@ configure.args --disable-guile \
</span> --with-default-trust-store-pkcs11=pkcs11: \
ac_cv_prog_AWK=/usr/bin/awk
<span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.thread_local_storage yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Undefined symbols for architecture x86_64: "___get_cpuid_count"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.blacklist-append {clang < 1000} {macports-clang-3.[0-9]} {macports-clang-[4-6].0}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 10 && [string match *clang* ${configure.compiler}] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:cctools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.env-append NM=${prefix}/bin/nm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append lt_cv_path_NM=${prefix}/bin/nm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin 8 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:texinfo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cppflags-append -D__WORDSIZE=32
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> variant dane description {Build libdane using unbound libraries} {
depends_lib-append port:unbound
configure.args-append --with-unbound-root-key-file="${prefix}/var/run/unbound/root.key"
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -150,50 +166,6 @@ post-destroot {
</span> move ${destroot}${prefix}/bin/certtool ${destroot}${prefix}/bin/gnutls-certtool
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin 8 {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:texinfo
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.cppflags-append -D__WORDSIZE=32
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if { ${build_arch} eq "i386" || ${build_arch} eq "x86_64" } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- compiler.blacklist-append *gcc-4.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- compiler.blacklist-append *gcc-4.2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Undefined symbols for architecture x86_64:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # "___get_cpuid_count", referenced from:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # _register_x86_crypto in libaccelerated.a(x86-common.o)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # ld: symbol(s) not found for architecture x86_64
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- compiler.blacklist-append {clang < 1000} {macports-clang-3.[0-9]} {macports-clang-[4-6].0}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- compiler.fallback-append macports-clang-8.0 macports-clang-7.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# needs a TLS supporting compiler on older systems
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# most of this code can disappear once the new compilers selection logic comes into base
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin powerpc {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- compiler.whitelist macports-gcc-6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- universal_variant no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin i386 {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} < 9} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- compiler.whitelist macports-gcc-6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- universal_variant no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- compiler.whitelist macports-clang-5.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[file exists ${prefix}/bin/clang-mp-5.0]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[active_variants clang-5.0 emulated_tls]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # needs to use a newer NM version to handle clang-5.0's objects on leopard
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} < 10} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:cctools
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.env-append NM=${prefix}/bin/nm
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append lt_cv_path_NM=${prefix}/bin/nm
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "Please install clang-5.0 first, with the emulated_tls variant enabled."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- error "unsupported configuration"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> livecheck.type regex
livecheck.url [lindex ${master_sites} 0]
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
</pre><pre style='margin:0'>
</pre>