<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/743fb40e6260c01804d0da468a2d8f313076104f">https://github.com/macports/macports-ports/commit/743fb40e6260c01804d0da468a2d8f313076104f</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 743fb40e626 libunistring: fixed build on macOS 10.7 and 10.8
</span>743fb40e626 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 743fb40e6260c01804d0da468a2d8f313076104f
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Tue Apr 5 22:39:06 2022 +0200
<span style='display:block; white-space:pre;color:#404040;'> libunistring: fixed build on macOS 10.7 and 10.8
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/64727
</span>---
textproc/libunistring/Portfile | 3 +-
.../libunistring/files/patch-clang-before-34.diff | 48 ++++++++++++++++++++++
2 files changed, 50 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/libunistring/Portfile b/textproc/libunistring/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a277ddf051b..a5aeb1db9f8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/textproc/libunistring/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/libunistring/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -44,7 +44,8 @@ platform darwin 8 {
</span> depends_lib port:libiconv
patchfiles 0100-float-endian-detection.patch \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- 0700-multiarch-libc.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0700-multiarch-libc.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-clang-before-34.diff
</span>
use_autoreconf yes
autoreconf.args -fvi
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/libunistring/files/patch-clang-before-34.diff b/textproc/libunistring/files/patch-clang-before-34.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..022bcc74017
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/libunistring/files/patch-clang-before-34.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,48 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=605e20a698d3f7296cda18ac7dd84b1a8f388b50
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=d125d4f6d1a5d9845824aaf1d1c9dc69699bf2f1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git config.h.in config.h.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 6fcbc98..fb668a2 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- config.h.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ config.h.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1635,7 +1635,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Attributes. */
</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;'>+- || 3 < __clang_major__ + (5 <= __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;'>++ : 3 < __clang_major__ + (5 <= __clang_minor__))))
</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;'>+ # define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git gnulib-m4/gnulib-common.m4 gnulib-m4/gnulib-common.m4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 87a9a75..789eefe 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gnulib-m4/gnulib-common.m4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gnulib-m4/gnulib-common.m4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -69,7 +69,9 @@ AC_DEFUN([gl_COMMON_BODY], [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [/* Attributes. */
</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;'>+- || 3 < __clang_major__ + (5 <= __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;'>++ : 3 < __clang_major__ + (5 <= __clang_minor__))))
</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;'>+ # define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git lib/unistring/cdefs.h lib/unistring/cdefs.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 3faf5ba..af178d1 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/unistring/cdefs.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/unistring/cdefs.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -74,7 +74,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</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;'>+- || 3 < __clang_major__ + (5 <= __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;'>++ : 3 < __clang_major__ + (5 <= __clang_minor__))))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define _UC_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;'>+ # define _UC_HAS_ATTRIBUTE(attr) _UC_ATTR_##attr
</span></pre><pre style='margin:0'>
</pre>