<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e9a7bd7f76ad205735922cd3550b31a8cc57cb2c">https://github.com/macports/macports-ports/commit/e9a7bd7f76ad205735922cd3550b31a8cc57cb2c</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit e9a7bd7f76ad205735922cd3550b31a8cc57cb2c
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Mon Apr 4 17:53:08 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> usbredir: Don't use -Werror
</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/64937
</span>---
devel/usbredir/Portfile | 5 +++--
devel/usbredir/files/no-Werror.patch | 14 ++++++++++++++
2 files changed, 17 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/usbredir/Portfile b/devel/usbredir/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 67a4a1c7fa7..b9011bb2160 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/usbredir/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/usbredir/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -11,7 +11,6 @@ checksums rmd160 1242253f935f292d1f62cdb0babb7f8a1b664276 \
</span>
maintainers nomaintainer
categories devel
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> license BSD
description Remote virtual machine server
long_description {*}${description}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,7 +23,9 @@ depends_build port:pkgconfig
</span>
depends_lib path:lib/pkgconfig/libusb-1.0.pc:libusb
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# No configure script in tarball.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles no-Werror.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# No configure script in tarball and we are patching configure.ac.
</span> # 0.10.0 and later use meson instead of autotools.
use_autoreconf yes
autoreconf.args -fvi
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/usbredir/files/no-Werror.patch b/devel/usbredir/files/no-Werror.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3b92262976e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/usbredir/files/no-Werror.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Do not use -Werror even if the compiler supports it. Newer or older
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compilers than the ones the developer tested may experience
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+unanticipated warnings that would cause the build to fail.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.ac.orig 2021-04-02 10:51:59.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure.ac 2022-04-04 17:49:07.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -81,7 +81,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Set some sane default CFLAGS, avoid having to do another release like 0.4.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if test "$ac_test_CFLAGS" != set; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- DEFAULT_CFLAGS="-Wall -Werror -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ DEFAULT_CFLAGS="-Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for F in $DEFAULT_CFLAGS; do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_CHECKING([whether $CC supports $F])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ save_CFLAGS="$CFLAGS"
</span></pre><pre style='margin:0'>
</pre>