Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/ca-certificates/
Date: Thu, 04 Nov 2021 19:08:03
Message-Id: 1636052858.f7c9880325c44bde2b3ffbc54f5e5c865a526709.sam@gentoo
1 commit: f7c9880325c44bde2b3ffbc54f5e5c865a526709
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 4 19:07:38 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 4 19:07:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7c98803
7
8 app-misc/ca-certificates: fix Python dependencies
9
10 Closes: https://bugs.gentoo.org/821706
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 .../ca-certificates/ca-certificates-20211016.3.72.ebuild | 12 +++++++++++-
14 1 file changed, 11 insertions(+), 1 deletion(-)
15
16 diff --git a/app-misc/ca-certificates/ca-certificates-20211016.3.72.ebuild b/app-misc/ca-certificates/ca-certificates-20211016.3.72.ebuild
17 index 589797be280..86df307180a 100644
18 --- a/app-misc/ca-certificates/ca-certificates-20211016.3.72.ebuild
19 +++ b/app-misc/ca-certificates/ca-certificates-20211016.3.72.ebuild
20 @@ -62,6 +62,8 @@ CDEPEND="app-misc/c_rehash
21 BDEPEND="${CDEPEND}"
22 if ! ${PRECOMPILED} ; then
23 BDEPEND+=" ${PYTHON_DEPS}"
24 + # See bug #821706
25 + BDEPEND+=" $(python_gen_any_dep 'dev-python/cryptography[${PYTHON_USEDEP}]')"
26 fi
27
28 DEPEND=""
29 @@ -74,11 +76,19 @@ RDEPEND="${CDEPEND}
30
31 S=${WORKDIR}
32
33 +python_check_deps() {
34 + has_version -b "dev-python/cryptography[${PYTHON_USEDEP}]"
35 +}
36 +
37 pkg_setup() {
38 # For the conversion to having it in CONFIG_PROTECT_MASK,
39 # we need to tell users about it once manually first.
40 [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
41 || ewarn "You should run update-ca-certificates manually after etc-update"
42 +
43 + if ! ${PRECOMPILED} ; then
44 + python-any-r1_pkg_setup
45 + fi
46 }
47
48 src_unpack() {
49 @@ -127,8 +137,8 @@ src_prepare() {
50 src_compile() {
51 cd "image/${EPREFIX}" || die
52 if ! ${PRECOMPILED} ; then
53 - python_setup
54 local d="${S}/${PN}-${DEB_VER}/mozilla" c="usr/share/${PN}"
55 +
56 # Grab the database from the nss sources.
57 cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die
58 emake -C "${d}"