Gentoo Archives: gentoo-commits

From: Vadim Misbakh-Soloviov <mva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/pkcs11-helper/, dev-libs/pkcs11-helper/files/
Date: Fri, 20 Aug 2021 18:04:18
Message-Id: 1629482605.22b2fb41302f3cab094fa308a7f389149b4b5097.mva@gentoo
1 commit: 22b2fb41302f3cab094fa308a7f389149b4b5097
2 Author: Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 20 18:03:25 2021 +0000
4 Commit: Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 20 18:03:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22b2fb41
7
8 dev-libs/pkcs11-helper: bump + fix build with new nss
9
10 Closes: https://bugs.gentoo.org/794790
11 Package-Manager: Portage-3.0.22, Repoman-3.0.1
12 Signed-off-by: Vadim Misbakh-Soloviov <mva <AT> gentoo.org>
13
14 dev-libs/pkcs11-helper/Manifest | 1 +
15 .../files/pkcs11-helper-1.27.0-nss.patch | 14 +++++++
16 dev-libs/pkcs11-helper/pkcs11-helper-1.27.0.ebuild | 47 ++++++++++++++++++++++
17 3 files changed, 62 insertions(+)
18
19 diff --git a/dev-libs/pkcs11-helper/Manifest b/dev-libs/pkcs11-helper/Manifest
20 index c1231def323..cd9a73bdc0e 100644
21 --- a/dev-libs/pkcs11-helper/Manifest
22 +++ b/dev-libs/pkcs11-helper/Manifest
23 @@ -1 +1,2 @@
24 DIST pkcs11-helper-1.25.1.tar.bz2 425719 BLAKE2B 527b387a981dbfd855d4eb0024dd7625388cda27c3a0e993b49315e311d46f1735afc8d436361ac1b75a7b3d7f1f712d7dda8eb546ab7adc3dc046bc85fd4c5a SHA512 a5954f4d07a166ed7e711b7a0aa84b454b25774b2fb187ca65bba439f59539c8074bda8ddd5f579d635fe0dc27d8415d8bd22707dc91327bbe05ce03e277b499
25 +DIST pkcs11-helper-1.27.0.tar.bz2 422425 BLAKE2B a9fd7ef04dce1abbae57b09a12b4be560465ae0cf2910443332882967d00b6380c62944820aa9580e101459d1c35edaae68cd7abbafa308a8b152921ac32f04c SHA512 5799342cb755dae8b7ba0880d652e9d4b4f1e52a74043015e1185e1e059326cb2689bb51957db98060ac2257dee34e2f047dcf3d52ad59fd49b91fedcfc5332b
26
27 diff --git a/dev-libs/pkcs11-helper/files/pkcs11-helper-1.27.0-nss.patch b/dev-libs/pkcs11-helper/files/pkcs11-helper-1.27.0-nss.patch
28 new file mode 100644
29 index 00000000000..a283121b811
30 --- /dev/null
31 +++ b/dev-libs/pkcs11-helper/files/pkcs11-helper-1.27.0-nss.patch
32 @@ -0,0 +1,14 @@
33 +--- pkcs11-helper-1.27.0/include/pkcs11-helper-1.0/pkcs11.h.orig 2020-11-17 19:38:56.000000000 +0100
34 ++++ pkcs11-helper-1.27.0/include/pkcs11-helper-1.0/pkcs11.h 2021-06-12 20:53:07.127234688 +0200
35 +@@ -1262,6 +1262,11 @@
36 +
37 + #define NULL_PTR NULL
38 +
39 ++typedef CK_RV (*CK_NSS_GetFIPSStatus)(CK_SESSION_HANDLE hSession,
40 ++ CK_OBJECT_HANDLE hObject,
41 ++ CK_ULONG ulOperationType,
42 ++ CK_ULONG *pulFIPSStatus);
43 ++
44 + /* Delete the helper macros defined at the top of the file. */
45 + #undef ck_flags_t
46 + #undef ck_version
47
48 diff --git a/dev-libs/pkcs11-helper/pkcs11-helper-1.27.0.ebuild b/dev-libs/pkcs11-helper/pkcs11-helper-1.27.0.ebuild
49 new file mode 100644
50 index 00000000000..83f7f2e9921
51 --- /dev/null
52 +++ b/dev-libs/pkcs11-helper/pkcs11-helper-1.27.0.ebuild
53 @@ -0,0 +1,47 @@
54 +# Copyright 1999-2021 Gentoo Authors
55 +# Distributed under the terms of the GNU General Public License v2
56 +
57 +EAPI=7
58 +
59 +DESCRIPTION="PKCS#11 helper library"
60 +HOMEPAGE="https://github.com/OpenSC/pkcs11-helper"
61 +
62 +if [[ $(ver_cut 3) -eq 0 ]]; then
63 + MY_PV=$(ver_cut 1-2)
64 +else
65 + MY_PV=${PV}
66 +fi
67 +
68 +SRC_URI="https://github.com/OpenSC/${PN}/releases/download/${PN}-${MY_PV}/${P}.tar.bz2"
69 +
70 +LICENSE="|| ( BSD GPL-2 )"
71 +SLOT="0"
72 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
73 +IUSE="bindist doc gnutls nss static-libs"
74 +
75 +RDEPEND="
76 + >=dev-libs/openssl-0.9.7:0=[bindist(-)=]
77 + gnutls? ( >=net-libs/gnutls-1.4.4 )
78 + nss? ( dev-libs/nss )"
79 +DEPEND="${RDEPEND}"
80 +BDEPEND="virtual/pkgconfig
81 + doc? ( >=app-doc/doxygen-1.4.7 )"
82 +
83 +PATCHES=(
84 + "${FILESDIR}/${P}-nss.patch"
85 +)
86 +
87 +src_configure() {
88 + econf \
89 + --disable-crypto-engine-polarssl \
90 + --disable-crypto-engine-mbedtls \
91 + $(use_enable doc) \
92 + $(use_enable gnutls crypto-engine-gnutls) \
93 + $(use_enable nss crypto-engine-nss) \
94 + $(use_enable static-libs static)
95 +}
96 +
97 +src_install() {
98 + default
99 + find "${D}" -name '*.la' -delete || die
100 +}