<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/342f3f9b5099fc648d6c97cf1a2cb4f18c951ead">https://github.com/macports/macports-ports/commit/342f3f9b5099fc648d6c97cf1a2cb4f18c951ead</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 342f3f9 KeePassXC: fix building on 10.7-10.9
</span>342f3f9 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 342f3f9b5099fc648d6c97cf1a2cb4f18c951ead
</span>Author: Chih-Hsuan Yen <yan12125@gmail.com>
AuthorDate: Thu Mar 8 22:43:42 2018 +0800
<span style='display:block; white-space:pre;color:#404040;'> KeePassXC: fix building on 10.7-10.9
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Thanks for testing and suggestions from @kencu! (https://github.com/macports/macports-ports/pull/1411)
</span>---
security/KeePassXC/Portfile | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/KeePassXC/Portfile b/security/KeePassXC/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 9e065a1..edeebef 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/security/KeePassXC/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/KeePassXC/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span> PortGroup qt5 1.0
PortGroup github 1.0
PortGroup cmake 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compiler_blacklist_versions 1.0
</span>
github.setup keepassxreboot keepassxc 2.3.1
name KeePassXC
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -42,6 +43,17 @@ depends_lib-append port:argon2 \
</span> port:libsodium \
port:zlib
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# KeePassXC uses -fstack-protector-strong on Clang [1]. That flag is not
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# available until clang 602 [2] or upstream clang 3.5 [3]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# [1] https://github.com/keepassxreboot/keepassxc/blob/develop/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# [2] https://opensource.apple.com/source/clang/clang-600.0.57/src/tools/clang/lib/CodeGen/CodeGenModule.cpp.auto.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://opensource.apple.com/source/clang/clang-602.0.53/src/tools/clang/lib/CodeGen/CodeGenModule.cpp.auto.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# [3] https://github.com/llvm-project/clang/blob/release_34/lib/CodeGen/CodeGenModule.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/llvm-project/clang/blob/release_35/lib/CodeGen/CodeGenModule.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.blacklist-append {clang < 602} macports-clang-3.4 macports-clang-3.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# XXX: the following line shouldn't be necessary - revisit when libc++ becomes the default and default compiler configurations are updated
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.fallback-append macports-clang-5.0 macports-clang-4.0 macports-clang-3.9
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> cmake.out_of_source yes
configure.pre_args-append \
-DCMAKE_INSTALL_PREFIX=${applications_dir} \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -55,6 +67,11 @@ if {${configure.cxx_stdlib} eq "libstdc++"} {
</span> configure.pre_args-append -DWITH_CXX11=OFF
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.major} < 12} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # autotype does not compile on 10.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.pre_args-append -DWITH_XC_AUTOTYPE=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> variant yubikey description {Enable YubiKey challenge-response support} {
configure.pre_args-append \
-DWITH_XC_YUBIKEY=ON
</pre><pre style='margin:0'>
</pre>