app-misc/ca-certificates: Fixed removal of untrusted certs (#616002).
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 8 Aug 2017 07:38:15 +0000 (09:38 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 8 Aug 2017 07:40:50 +0000 (09:40 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.3

app-misc/ca-certificates/ca-certificates-20161130.3.30.2.ebuild

index a72077ebef878e19f0dbfae90106525876483b83..45efcd9d58171262c896296a5d6ce8b8fe32401f 100644 (file)
@@ -138,9 +138,15 @@ src_compile() {
        fi
 
        if ! use insecure_certs ; then
+               elog "To prevent applications relying on system's trusted root certificate store"
+               elog "from using CAs where at least one major browser vendor Gentoo is following"
+               elog "has decided to apply trust level restrictions, the following"
+               elog "certificate(s) were removed:"
                # Remove untrusted certs from StartCom and WoSign (bug #598072)
-               rm "${c}"/mozilla/StartCom* || die
-               rm "${c}"/mozilla/WoSign* || die
+               elog "$(find "${c}" -type f \( \
+                       -iname '*startcom*' \
+                       -o -iname '*wosign*' \
+                       \) -printf '%P removed; see https://bugs.gentoo.org/598072 for details\n' -delete)"
        fi
 
        (