<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f0d2d3770e652db56f21cc6eabdcdc1bdc09decb">https://github.com/macports/macports-ports/commit/f0d2d3770e652db56f21cc6eabdcdc1bdc09decb</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 f0d2d3770e6 gcab: fix build with old Xcode gcc
</span>f0d2d3770e6 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f0d2d3770e652db56f21cc6eabdcdc1bdc09decb
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Mon Jun 10 05:40:28 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> gcab: fix build with old Xcode gcc
</span>---
gnome/gcab/Portfile | 14 ++++++++++----
gnome/gcab/files/allow-xcode-gcc.patch | 13 +++++++++++++
2 files changed, 23 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gcab/Portfile b/gnome/gcab/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0a205e9229f..5f812106d35 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gnome/gcab/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gcab/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -14,7 +14,6 @@ description A tool and library mainly made to create Cabinet files
</span> long_description ${description}, using GObject/GIO API, providing GIR bindings.
maintainers nomaintainer
categories gnome
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> homepage https://wiki.gnome.org/msitools
master_sites gnome:sources/${name}/${branch}/
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,11 +23,12 @@ checksums rmd160 c98850b41f6baec5c3997fef342ad4a42b18b8af \
</span> sha256 67a5fa9be6c923fbc9197de6332f36f69a33dadc9016a2b207859246711c048f \
size 78240
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build port:pkgconfig \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span> port:gettext \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:gtk-doc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gtk-doc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:bin/pkg-config:pkgconfig
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:gettext-runtime \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:gettext-runtime \
</span> path:lib/pkgconfig/glib-2.0.pc:glib2 \
path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \
path:bin/vala:vala \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,6 +36,12 @@ depends_lib port:gettext-runtime \
</span>
patchfiles dont-use-version-script.patch
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# cc1: error: unrecognized command line option "-fstack-protector-strong"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match *gcc-4.* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ allow-xcode-gcc.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> compiler.c_standard 1999
compiler.blacklist-append {clang < 700}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gcab/files/allow-xcode-gcc.patch b/gnome/gcab/files/allow-xcode-gcc.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..37843c0e6a5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gcab/files/allow-xcode-gcc.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- meson.build 2020-01-06 19:25:54.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ meson.build 2024-06-10 04:40:54.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -73,10 +73,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endforeach
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if not meson.is_cross_build()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- add_project_arguments('-fstack-protector-strong', language : 'c')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # enable full RELRO where possible
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # FIXME: until https://github.com/mesonbuild/meson/issues/1140 is fixed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global_link_args = []
</span></pre><pre style='margin:0'>
</pre>