<pre style='margin:0'>
Mihai Moldovan (Ionic) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/daeceb0c089bf3fc031c96151f64e82da6622bf7">https://github.com/macports/macports-ports/commit/daeceb0c089bf3fc031c96151f64e82da6622bf7</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 daeceb0 devel/libssh: don't zero out configure.cppflags, use -isystem.
</span>daeceb0 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit daeceb0c089bf3fc031c96151f64e82da6622bf7
</span>Author: Mihai Moldovan <ionic@ionic.de>
AuthorDate: Sat Feb 11 23:40:03 2017 +0100
<span style='display:block; white-space:pre;color:#404040;'> devel/libssh: don't zero out configure.cppflags, use -isystem.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Zeroing configure.cppflags leads to build failures on older systems (at
</span><span style='display:block; white-space:pre;color:#404040;'> least 10.4.)
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Keep the directory in the list, but forcefully move it to the end
</span><span style='display:block; white-space:pre;color:#404040;'> without beating the build system into submission.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/53549
</span>---
devel/libssh/Portfile | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libssh/Portfile b/devel/libssh/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 90127dc..50a1d97 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libssh/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libssh/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -41,10 +41,12 @@ post-extract {
</span>
cmake.out_of_source yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# clear configure.cppflags to prevent the cmake portgroup from adding them to
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# cflags, which breaks the build in presence of an older version, because it
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# puts -I$prefix/include before the local include directories of the port
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.cppflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -isystem has the added benefit of moving the include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# directory specified to the end of the include path list.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# This will help the build system respect custom include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# paths correctly (i.e., searching them before the MP include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# directory.)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
</span> configure.args-append \
-DWITH_GCRYPT=OFF \
-DWITH_INTERNAL_DOC=OFF \
</pre><pre style='margin:0'>
</pre>