<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/3d89e5760ba2d02d27b5e7385eed8283c6ac1e8e">https://github.com/macports/macports-ports/commit/3d89e5760ba2d02d27b5e7385eed8283c6ac1e8e</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 3d89e5760ba vips: allow build with older gcc compilers
</span>3d89e5760ba is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 3d89e5760ba2d02d27b5e7385eed8283c6ac1e8e
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Mon Dec 21 23:31:39 2020 -0800

<span style='display:block; white-space:pre;color:#404040;'>    vips: allow build with older gcc compilers
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    fixes:
</span><span style='display:block; white-space:pre;color:#404040;'>    StandaloneFuzzTargetMain.c:31: error: 'for' loop initial declaration
</span><span style='display:block; white-space:pre;color:#404040;'>    used outside C99 mode
</span>---
 graphics/vips/Portfile                           |  4 ++++
 graphics/vips/files/patch-vips-fuzz-forloop.diff | 12 ++++++++++++
 2 files changed, 16 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/vips/Portfile b/graphics/vips/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 479bb5812a0..6e0e8366e76 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/vips/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/vips/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,6 +22,10 @@ checksums           rmd160  3dad13d495727ab9af737c7df9ebee9420c49c3a \
</span>                     sha256  c1d0d9cb54d75cd4f66dce787fbcac99f834f6621fbf47bce9e02ef65b4ab02a \
                     size    19518825
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# minor tweak to allow build with older compilers
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# StandaloneFuzzTargetMain.c:31: error: 'for' loop initial declaration used outside C99 mode
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append   patch-vips-fuzz-forloop.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build       port:gtk-doc \
                     port:pkgconfig
 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/vips/files/patch-vips-fuzz-forloop.diff b/graphics/vips/files/patch-vips-fuzz-forloop.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b1ae81ca5c6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/vips/files/patch-vips-fuzz-forloop.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ./fuzz/StandaloneFuzzTargetMain.c.orig 2020-12-21 22:56:49.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ./fuzz/StandaloneFuzzTargetMain.c      2020-12-21 23:01:03.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -28,7 +28,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     progname = argv[0];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   fprintf(stderr, "%s: running %d inputs\n", progname, argc - 1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   LLVMFuzzerInitialize(&argc, &argv);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-  for (int i = 1; i < argc; i++) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  int i;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  for (i = 1; i < argc; i++) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     fprintf(stderr, "Running: %s\n", argv[i]);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     FILE *f = fopen(argv[i], "r+");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     assert(f);
</span></pre><pre style='margin:0'>

</pre>