app-crypt/gnupg: Followup fix to making system-cert-store default
authorKristian Fiskerstrand <k_f@gentoo.org>
Tue, 1 Nov 2016 21:40:17 +0000 (22:40 +0100)
committerKristian Fiskerstrand <k_f@gentoo.org>
Tue, 1 Nov 2016 21:40:32 +0000 (22:40 +0100)
Make sure that setting system-cert-store adds the bitflag for _TRUST_SYS
in addition to TRUST_DEF in order for hkp-cacert to still function

Package-Manager: portage-2.3.2

app-crypt/gnupg/gnupg-2.1.15-r1.ebuild

index 4a0c067affc5c45cf1d36c131bfb83cc8653ab46..db751a3d0d5df6f8f9259c69ab0bda9df1d26601 100644 (file)
@@ -52,7 +52,7 @@ src_prepare() {
        # This provides use of gnutls system cert store for hkps://
        # Gentoo-Bug: 597934
        if use system-cert-store; then
-               sed -i 's/HTTP_FLAG_TRUST_DEF/HTTP_FLAG_TRUST_SYS/g' \
+               sed -i 's/HTTP_FLAG_TRUST_DEF/HTTP_FLAG_TRUST_DEF | HTTP_FLAG_TRUST_SYS/g' \
            "${S}/dirmngr/ks-engine-hkp.c" || die
                einfo "Using system TLS certificate store"
        fi