<pre style='margin:0'>
Frank Schima (mf2k) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b058d78d09016be385af24a0212974a65286f162">https://github.com/macports/macports-ports/commit/b058d78d09016be385af24a0212974a65286f162</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b058d78d09016be385af24a0212974a65286f162
</span>Author: Christopher Chavez <chrischavez@gmx.us>
AuthorDate: Mon Oct 12 08:47:54 2020 -0500
<span style='display:block; white-space:pre;color:#404040;'> ghostscript: fix for +ghostpdl variant
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Add missing header to avoid implicit function declaration
</span>---
print/ghostscript/Portfile | 3 +++
.../ghostscript/files/patch-jpegxr_r_strip.c.diff | 29 ++++++++++++++++++++++
2 files changed, 32 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/print/ghostscript/Portfile b/print/ghostscript/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 833480aa712..5a6ae415bd2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/print/ghostscript/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/print/ghostscript/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,6 +43,9 @@ patchfiles-append patch-6756b355c238.diff
</span> # https://trac.macports.org/ticket/61306
patchfiles-append patch-base_fapi_ft.c.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Missing stdlib.h for abs()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-jpegxr_r_strip.c.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> checksums ghostpdl-9.52.tar.gz \
rmd160 1e719f907c8dc6dd0000bf2c547eee54fd583b9f \
sha256 8f6e48325c106ae033bbae3e55e6c0b9ee5c6b57e54f7cd24fb80a716a93b06a \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/print/ghostscript/files/patch-jpegxr_r_strip.c.diff b/print/ghostscript/files/patch-jpegxr_r_strip.c.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..bc786f30988
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/print/ghostscript/files/patch-jpegxr_r_strip.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,29 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From c4e79952b42ebccb669063e053e3d7ce0f88cc22 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Chris Liddell <chris.liddell@artifex.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Wed, 16 Sep 2020 17:33:30 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] Fix compile failure due to missing header.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+A user reported (privately) that a pre-release of an upcoming XCode release
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+fails to compile due to a missing prototype/declation of abs() in the jpegxr
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+code. It's clearly a simple omission, as several files use abs() and do include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+the relevant header.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+So adding it here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ jpegxr/r_strip.c | 1 +
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 1 insertion(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git jpegxr/r_strip.c.orig jpegxr/r_strip.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 062baf0c5..0c0e2df5a 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- jpegxr/r_strip.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ jpegxr/r_strip.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -46,6 +46,7 @@
</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;'>+ # include "jxr_priv.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <limits.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <assert.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <math.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.17.1
</span></pre><pre style='margin:0'>
</pre>