<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f42c9ec535fccdf0008b2ce4f09453bbbeb87bdb">https://github.com/macports/macports-ports/commit/f42c9ec535fccdf0008b2ce4f09453bbbeb87bdb</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 f42c9ec535f pqiv: fix build with gcc-4.x
</span>f42c9ec535f is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f42c9ec535fccdf0008b2ce4f09453bbbeb87bdb
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Mon May 27 19:35:43 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> pqiv: fix build with gcc-4.x
</span>---
graphics/pqiv/Portfile | 7 ++++++-
graphics/pqiv/files/patch-gcc-4.diff | 22 ++++++++++++++++++++++
2 files changed, 28 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/pqiv/Portfile b/graphics/pqiv/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d190d43d3b6..0413233efca 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/pqiv/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/pqiv/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -10,7 +10,6 @@ checksums rmd160 9c920f29d85988c27342b02018fa676a9395282a \
</span> size 141966
categories graphics
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> maintainers nomaintainer
license GPL-3
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,6 +33,12 @@ long_description A powerful GTK 3 based command-line image viewer \
</span> imlib, but evolved into a much more powerful tool. \
Today, pqiv stands for powerful quick image viewer.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# pqiv.c: error: #pragma GCC diagnostic not allowed inside functions
</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;'>+ patch-gcc-4.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build-append \
port:pkgconfig
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/pqiv/files/patch-gcc-4.diff b/graphics/pqiv/files/patch-gcc-4.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..af4ef16b55e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/pqiv/files/patch-gcc-4.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- pqiv.c 2020-11-29 19:51:17.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ pqiv.c 2024-05-27 19:29:12.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -74,15 +74,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define PQIV_VERSION_DEBUG ""
</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;'>+-#if defined(__clang__) || defined(__GNUC__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__clang__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define UNUSED_FUNCTION __attribute__((unused))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined(__clang__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define PQIV_DISABLE_PEDANTIC _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \"-Wpedantic\"")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define PQIV_ENABLE_PEDANTIC _Pragma("clang diagnostic pop")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- #elif defined(__GNUC__) || defined(__GNUG__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- #define PQIV_DISABLE_PEDANTIC _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wpedantic\"")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- #define PQIV_ENABLE_PEDANTIC _Pragma("GCC diagnostic pop")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++// #elif defined(__GNUC__) || defined(__GNUG__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++// #define PQIV_DISABLE_PEDANTIC _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wpedantic\"")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++// #define PQIV_ENABLE_PEDANTIC _Pragma("GCC diagnostic pop")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define UNUSED_FUNCTION
</span></pre><pre style='margin:0'>
</pre>