<pre style='margin:0'>
Leonardo Brondani Schenkel (lbschenkel) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/719edd56d849e66986b3a7a8a9d978be479d9a35">https://github.com/macports/macports-ports/commit/719edd56d849e66986b3a7a8a9d978be479d9a35</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 719edd5 neomutt: fix build/runtime issues for +db4 variant
</span>719edd5 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 719edd56d849e66986b3a7a8a9d978be479d9a35
</span>Author: Leonardo Brondani Schenkel <lbschenkel@macports.org>
AuthorDate: Sun Dec 17 13:08:10 2017 +0100
<span style='display:block; white-space:pre;color:#404040;'> neomutt: fix build/runtime issues for +db4 variant
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> There were two issues when +db4 variant is enabled:
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - when ccache is installed/enabled, the configure script fails
</span><span style='display:block; white-space:pre;color:#404040;'> - when both db48 and db53 are installed, the build links against both
</span><span style='display:block; white-space:pre;color:#404040;'> db48 and db53 which causes issues at runtime
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This commit addresses both issues by completely disabling the use of
</span><span style='display:block; white-space:pre;color:#404040;'> ccache and by patching the build in order to disable autodetection of
</span><span style='display:block; white-space:pre;color:#404040;'> other db versions besides the desired version (currently 4.8).
</span>---
mail/neomutt/Portfile | 9 ++++++---
mail/neomutt/files/patch-bdb4.diff | 12 ++++++++++++
2 files changed, 18 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/neomutt/Portfile b/mail/neomutt/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3a6e5a4..06339c5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mail/neomutt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mail/neomutt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span> PortGroup github 1.0
github.setup neomutt neomutt 20171215 neomutt-
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories mail
platforms darwin
license GPL-2+
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -32,12 +33,15 @@ depends_run path:share/curl/curl-ca-bundle.crt:curl-ca-bundle
</span> # needed by smime_keys
depends_run-append path:bin/perl:perl5
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patch.pre_args -p1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args --disable-idn \
--with-ncurses=${prefix} \
--with-nls=${prefix} \
--with-ssl=${prefix}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# disable auto-detection of ccache, as MacPorts already adds it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# disable ccache, build issues with autosetup
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.ccache no
</span> configure.env-append CCACHE=none
default_variants +idn +mutt
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,9 +50,8 @@ if {${install.user} ne "root"} {
</span> }
variant db4 description {Support Berkeley DB database} {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-bdb4.diff
</span> configure.args-append --with-bdb=${prefix}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.cppflags-append "-I${prefix}/include/db48"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.ldflags-append "-L${prefix}/lib/db48"
</span> depends_lib-append port:db48
}
variant gdbm description {Support GNU dbm database} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/neomutt/files/patch-bdb4.diff b/mail/neomutt/files/patch-bdb4.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..8e86a48
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mail/neomutt/files/patch-bdb4.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;'>+diff --git a/auto.def b/auto.def
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/auto.def
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/auto.def
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -627,7 +627,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ###############################################################################
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Header cache - bdb
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[get-define want-bdb]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set bdb_versions { 5.3 6.2 4.8 } ;# Will be checked in order
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set bdb_versions { 4.8 } ;# Will be checked in order
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set bdb_prefix [opt-val with-bdb $prefix]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach ver $bdb_versions {
</span></pre><pre style='margin:0'>
</pre>