diff options
Diffstat (limited to 'dev-libs/pkcs11-helper')
3 files changed, 74 insertions, 0 deletions
diff --git a/dev-libs/pkcs11-helper/Manifest b/dev-libs/pkcs11-helper/Manifest index c13e584a79f6..fe371949744f 100644 --- a/dev-libs/pkcs11-helper/Manifest +++ b/dev-libs/pkcs11-helper/Manifest @@ -1,6 +1,8 @@ AUX pkcs11-helper-1.27.0-nss.patch 614 BLAKE2B 68db71f025aebd620d278fa3847b1ead5645220c6a1b0f16f98b2e9f22ca6153b133ab5d8c236a24bbc6527a4e2ae084ea58a1c3c9cce7feb20a32861859a56b SHA512 9e6787822d003e0f6d959ce02308e23231dfb75e711cbf1887684e8dd479f10da5d123e47ed48ace84d6d8eb04754f0729c3847080074f34a49a4c484ad1a618 +AUX pkcs11-helper-1.29.0-incompatible-func-ptr-clang16.patch 792 BLAKE2B c0bd5925600a01707bc622916593fbafc784665ee1445b49f6a58212a35730d53301184ef943b4759a0e095b3a7e88b9f728b82d86dc2c0b5a52e2a749547ab9 SHA512 ddc5c9199c5be72c0866ecd3ce6c9300bf6986524968874574f949653efffb350967ab3b559ff494a144d9ecdb25f7b22ec1a7d1ef073b178022beb2a053b0a5 DIST pkcs11-helper-1.27.0.tar.bz2 422425 BLAKE2B a9fd7ef04dce1abbae57b09a12b4be560465ae0cf2910443332882967d00b6380c62944820aa9580e101459d1c35edaae68cd7abbafa308a8b152921ac32f04c SHA512 5799342cb755dae8b7ba0880d652e9d4b4f1e52a74043015e1185e1e059326cb2689bb51957db98060ac2257dee34e2f047dcf3d52ad59fd49b91fedcfc5332b DIST pkcs11-helper-1.29.0.tar.bz2 422549 BLAKE2B fec72ac82f1545fc50f80b5b28db12906df32fa3bc65f80541d8bee7f1d1c8062f1f0516344237424022c01d4f390e8a72e3e0262250f3b6c51df92c768d81ee SHA512 c530f5a4b5826a02bfe787a1293a7595d5a0d6348daa16675bd10c6d6734b1f24a3cc73b5b89433cf1edf8815f8b7298fdfd1ed686f096bb5edfb425e9430eb2 EBUILD pkcs11-helper-1.27.0-r1.ebuild 1071 BLAKE2B 4d0d25826aa7d793940481c06936db32c76079afc1a070b13f076fe7f04ac1d6aeb3087f3fe3866b239083ed85a97c3fcd92c4457bc9aef2ba08eb3935a0616b SHA512 d99c56df4a2d9c652cf14edca110f8c43c496bbee70e85f1206e4d670739985b63216427f586e7309e4d35b5e71db298b71556dfde176fdc429cd545f31cfa23 +EBUILD pkcs11-helper-1.29.0-r1.ebuild 1047 BLAKE2B ac6f034fdde60c4312f11498b9dc1400be415322bf7853c9d4785ff59e5545f88d91ef252de3332e1b7e9daba8478b11e79f63e58ee80a6cdda20af21da251cf SHA512 724924a44610f20cd8c2e6e7bf6d0f43c40c359c060d99f475b2ca802e7644ab1171bc5a399d6481bc6ce24cb44b223d2831fb8c4198e8a6f7c8c70704394edd EBUILD pkcs11-helper-1.29.0.ebuild 978 BLAKE2B 398c33e5fe845e85b971eedaf3e1f56f7f0f633ccfb33dd9677ae03c8fb1ea9bb7e691c7a70bc383c9d6cc0c286f3aad54a7e74f4935281fe858459adfc7fd89 SHA512 e2fef116e2c1429916ebe6228a016fc47e1f8e2f863c8dbebd01dd31a7b40ace45e2d1fc48a65d6c3fb28fec801bf3a51ad038ca4ddf1465768486fac984c8ff MISC metadata.xml 435 BLAKE2B 7740f428a33cecd516c6cfb96de878c8080b2cba0b42c78cc34bac42d128619cf4a42b966aafe30bfc13a045ad0017285ecff9d60d237eadd715fcdf6029c8b8 SHA512 2a9c9d99cfcac14b7c201d5d931f5d1fe0d544328f32db5048a9cd15f0a99ef4016e4b5ec4391500cb5a9e3c00205c72211c61c1fc13cda330faf6b7eb9eeea9 diff --git a/dev-libs/pkcs11-helper/files/pkcs11-helper-1.29.0-incompatible-func-ptr-clang16.patch b/dev-libs/pkcs11-helper/files/pkcs11-helper-1.29.0-incompatible-func-ptr-clang16.patch new file mode 100644 index 000000000000..5b1036b9999b --- /dev/null +++ b/dev-libs/pkcs11-helper/files/pkcs11-helper-1.29.0-incompatible-func-ptr-clang16.patch @@ -0,0 +1,30 @@ +https://github.com/OpenSC/pkcs11-helper/commit/744001c1424b2d178272194d64e3356824ecdcdc +https://github.com/OpenSC/pkcs11-helper/issues/60 +https://bugs.gentoo.org/880975 + +From 744001c1424b2d178272194d64e3356824ecdcdc Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev <alon.barlev@gmail.com> +Date: Sat, 12 Nov 2022 02:24:58 +0200 +Subject: [PATCH] openssl: fix openssl_ex_data_dup prototype + +--- a/lib/pkcs11h-openssl.c ++++ b/lib/pkcs11h-openssl.c +@@ -340,7 +340,7 @@ int + __pkcs11h_openssl_ex_data_dup ( + CRYPTO_EX_DATA *to, + CRYPTO_EX_DATA *from, +- void *from_d, ++ void **from_d, + int idx, + long argl, + void *argp +@@ -350,7 +350,7 @@ int + __pkcs11h_openssl_ex_data_dup ( + CRYPTO_EX_DATA *to, + const CRYPTO_EX_DATA *from, +- void *from_d, ++ void **from_d, + int idx, + long argl, + void *argp + diff --git a/dev-libs/pkcs11-helper/pkcs11-helper-1.29.0-r1.ebuild b/dev-libs/pkcs11-helper/pkcs11-helper-1.29.0-r1.ebuild new file mode 100644 index 000000000000..d0676d9b7a49 --- /dev/null +++ b/dev-libs/pkcs11-helper/pkcs11-helper-1.29.0-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="PKCS#11 helper library" +HOMEPAGE="https://github.com/OpenSC/pkcs11-helper" +SRC_URI="https://github.com/OpenSC/${PN}/releases/download/${P}/${P}.tar.bz2" + +LICENSE="|| ( BSD GPL-2 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="doc gnutls nss" + +RDEPEND=">=dev-libs/openssl-0.9.7:= + gnutls? ( >=net-libs/gnutls-1.4.4:= ) + nss? ( dev-libs/nss )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig + doc? ( >=app-doc/doxygen-1.4.7 )" + +PATCHES=( + "${FILESDIR}/${P}-incompatible-func-ptr-clang16.patch" +) + +src_configure() { + econf \ + --disable-crypto-engine-polarssl \ + --disable-crypto-engine-mbedtls \ + $(use_enable doc) \ + $(use_enable gnutls crypto-engine-gnutls) \ + $(use_enable nss crypto-engine-nss) +} + +src_install() { + default + + # bug #555262 + rm "${ED}"/usr/share/doc/${PF}/COPYING.{BSD,GPL} || die + + find "${ED}" -name '*.la' -delete || die +} |