<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/a29933c2ccb57dfdd9dd0c63ac2ded50ba950167">https://github.com/macports/macports-ports/commit/a29933c2ccb57dfdd9dd0c63ac2ded50ba950167</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 a29933c netpbm: Fix build failure on 10.6 and earlier
</span>a29933c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit a29933c2ccb57dfdd9dd0c63ac2ded50ba950167
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Fri Oct 5 18:24:58 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> netpbm: Fix build failure on 10.6 and earlier
</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/57215
</span>---
graphics/netpbm/Portfile | 1 +
graphics/netpbm/files/strndup.patch | 12 ++++++++++++
2 files changed, 13 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/netpbm/Portfile b/graphics/netpbm/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index dffb38a..cfbd0bb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/netpbm/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/netpbm/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -64,6 +64,7 @@ post-extract {
</span>
patchfiles patch-lib-Makefile.diff \
patch-other-pamx-Makefile.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append strndup.patch
</span>
variant universal {}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/netpbm/files/strndup.patch b/graphics/netpbm/files/strndup.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..6dc88d4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/netpbm/files/strndup.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix build failure on 10.6 and earlier
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/libpbmfont2.c.orig 2018-10-02 09:29:55.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/libpbmfont2.c 2018-10-05 18:20:21.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -749,7 +749,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pm_message("CHARSET_ENCODING in BDF font file is too long. "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "Truncating");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- *encodingP = strndup(readlineP->arg[1], maxTokenLen);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ *encodingP = pm_strdup(readlineP->arg[1]);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *gotEncodingP = true;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>