<pre style='margin:0'>
Ryan Carsten Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ee9941bcea5a4d7a43f3c88d43c2aa4975520b51">https://github.com/macports/macports-ports/commit/ee9941bcea5a4d7a43f3c88d43c2aa4975520b51</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ee9941bcea5a4d7a43f3c88d43c2aa4975520b51
</span>Author: Ryan Carsten Schmidt <ryandesign@macports.org>
AuthorDate: Mon Jan 29 03:34:24 2024 -0600
<span style='display:block; white-space:pre;color:#404040;'> gettext: Don't blacklist clang 6xx; fix it instead
</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/69195
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/67037
</span>---
devel/gettext/Portfile | 6 +--
devel/gettext/files/has_attribute.patch | 90 +++++++++++++++++++++++++++++++++
2 files changed, 91 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/gettext/Portfile b/devel/gettext/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0645375bf93..2e862a1cea4 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/gettext/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/gettext/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,17 +21,13 @@ use_parallel_build yes
</span> # https://trac.macports.org/ticket/31167
compiler.blacklist-append {clang < 211.10.1}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${subport} in "${name} ${name}-tools-libs"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # https://savannah.gnu.org/bugs/?63866
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- compiler.blacklist-append {clang >= 600 < 700}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> # Also needed by later clangs.
if {${os.platform} eq "darwin" && ${os.major} < 11 && ${cxx_stdlib} eq "libc++"} {
clang_dependency.extra_versions 3.7
}
patch.dir ${worksrcpath}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles has_attribute.patch
</span>
configure.args-append ac_cv_prog_AWK=/usr/bin/awk \
ac_cv_path_GMSGFMT=: \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/gettext/files/has_attribute.patch b/devel/gettext/files/has_attribute.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..2a3e19cea80
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/gettext/files/has_attribute.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,90 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix the Apple clang version cutoff point for a working __has_attribute.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://savannah.gnu.org/bugs/?63866
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gettext-runtime/config.h.in 2023-11-19 14:22:34.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gettext-runtime/config.h.in 2024-01-29 02:29:09.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1421,7 +1421,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if (defined __has_attribute \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ && (!defined __clang_minor__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ || (defined __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ? 6000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ? 7000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ : 5 <= __clang_major__)))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gettext-runtime/gnulib-lib/cdefs.h 2023-09-18 15:35:08.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gettext-runtime/gnulib-lib/cdefs.h 2024-01-29 02:29:09.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -42,7 +42,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if (defined __has_attribute \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ && (!defined __clang_minor__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ || (defined __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ? 6000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ? 7000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ : 3 < __clang_major__ + (5 <= __clang_minor__))))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define __glibc_has_attribute(attr) __has_attribute (attr)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gettext-runtime/intl/config.h.in 2023-11-19 14:22:28.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gettext-runtime/intl/config.h.in 2024-01-29 02:29:09.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1151,7 +1151,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if (defined __has_attribute \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ && (!defined __clang_minor__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ || (defined __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ? 6000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ? 7000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ : 5 <= __clang_major__)))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gettext-runtime/libasprintf/config.h.in 2023-11-19 14:22:30.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gettext-runtime/libasprintf/config.h.in 2024-01-29 02:29:09.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -691,7 +691,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if (defined __has_attribute \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ && (!defined __clang_minor__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ || (defined __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ? 6000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ? 7000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ : 5 <= __clang_major__)))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gettext-tools/config.h.in 2023-11-19 14:23:03.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gettext-tools/config.h.in 2024-01-29 02:29:09.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2986,7 +2986,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if (defined __has_attribute \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ && (!defined __clang_minor__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ || (defined __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ? 6000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ? 7000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ : 5 <= __clang_major__)))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gettext-tools/gnulib-lib/cdefs.h 2023-09-18 15:35:52.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gettext-tools/gnulib-lib/cdefs.h 2024-01-29 02:29:09.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -42,7 +42,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if (defined __has_attribute \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ && (!defined __clang_minor__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ || (defined __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ? 6000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ? 7000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ : 3 < __clang_major__ + (5 <= __clang_minor__))))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define __glibc_has_attribute(attr) __has_attribute (attr)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gettext-tools/libgrep/cdefs.h 2023-09-18 15:36:21.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gettext-tools/libgrep/cdefs.h 2024-01-29 02:29:09.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -42,7 +42,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if (defined __has_attribute \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ && (!defined __clang_minor__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ || (defined __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ? 6000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ? 7000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ : 3 < __clang_major__ + (5 <= __clang_minor__))))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define __glibc_has_attribute(attr) __has_attribute (attr)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libtextstyle/config.h.in 2023-11-19 14:22:53.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libtextstyle/config.h.in 2024-01-29 02:29:09.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1392,7 +1392,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if (defined __has_attribute \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ && (!defined __clang_minor__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ || (defined __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ? 6000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ? 7000000 <= __apple_build_version__ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ : 5 <= __clang_major__)))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span></pre><pre style='margin:0'>
</pre>