<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/75c6eb7c7a8cb774db980e5c645796e2e18cd186">https://github.com/macports/macports-ports/commit/75c6eb7c7a8cb774db980e5c645796e2e18cd186</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 75c6eb7c7a8cb774db980e5c645796e2e18cd186
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Tue Aug 7 18:36:14 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> rrdtool: Don't run libtool during configuration
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This doesn't work on macOS, because libtool has not been regenerated for
</span><span style='display:block; white-space:pre;color:#404040;'> macOS by this point, so the libtool that runs is the bundled one which
</span><span style='display:block; white-space:pre;color:#404040;'> was generated on Linux, which results in errors being displayed during
</span><span style='display:block; white-space:pre;color:#404040;'> configuration.
</span>---
net/rrdtool/Portfile | 1 +
net/rrdtool/files/configure-dont-run-libtool.patch | 22 ++++++++++++++++++++++
2 files changed, 23 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/rrdtool/Portfile b/net/rrdtool/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ac7df04..9a27a1b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/rrdtool/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/rrdtool/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,6 +37,7 @@ depends_lib path:lib/pkgconfig/cairo.pc:cairo \
</span> depends_run port:dejavu-fonts \
port:perl${perl5.major}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append configure-dont-run-libtool.patch
</span> patchfiles-append configure-remove-cute-output.patch
configure.perl ${perl5.bin}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/rrdtool/files/configure-dont-run-libtool.patch b/net/rrdtool/files/configure-dont-run-libtool.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..ce71e0c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/rrdtool/files/configure-dont-run-libtool.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Don't try to get PIC flags from libtool, because libtool has not been generated
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+for the current platform by this point. The libtool that gets run is the bundled
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+one which was generated on Linux, which doesn't work on macOS which results in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+errors being displayed during configuration:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+./libtool: line 909: /bin/sed: No such file or directory
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+./libtool: line 915: /bin/sed: No such file or directory
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+./libtool: line 2640: /bin/sed: No such file or directory
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/oetiker/rrdtool-1.x/issues/898
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/oetiker/rrdtool-1.x/commit/b3f6be4f43db57c68c3262ac373f115b3c861ae7#diff-67e997bcfdac55191033d57a16d1408a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.orig 2017-05-16 06:55:23.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure 2018-08-07 18:26:28.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -15046,8 +15046,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-eval `./libtool --config | grep pic_flag=`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CFLAGS="$CFLAGS $pic_flag"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for ac_func in strftime
</span></pre><pre style='margin:0'>
</pre>