commit:     e84549e203a155a33de032036dc78ab5ba062ae3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 20 13:34:03 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 20 13:34:06 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e84549e2

dev-libs/libgcrypt: drop 1.12.0-r1, 1.12.0-r2, 1.12.0-r3

Use 1.12.1.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libgcrypt/Manifest                   |   2 -
 dev-libs/libgcrypt/libgcrypt-1.12.0-r1.ebuild | 185 -------------------------
 dev-libs/libgcrypt/libgcrypt-1.12.0-r2.ebuild | 187 -------------------------
 dev-libs/libgcrypt/libgcrypt-1.12.0-r3.ebuild | 190 --------------------------
 4 files changed, 564 deletions(-)

diff --git a/dev-libs/libgcrypt/Manifest b/dev-libs/libgcrypt/Manifest
index d0d95f21b9dd..61c74077eaaf 100644
--- a/dev-libs/libgcrypt/Manifest
+++ b/dev-libs/libgcrypt/Manifest
@@ -1,6 +1,4 @@
 DIST libgcrypt-1.11.2.tar.bz2 4237802 BLAKE2B 
8ad2dd84e8ec2bddb5c008c6823a6d72b8f2d6237972966bc590be0d89bb6b50a5cbba1b42631d0950c4bea125a6d9a845fbf703b756a38088f66054712efa9c
 SHA512 
b706cea602cc8f0896e57ce979643bf78974b05faec27c1b053b773c57d8b04250e30e95a4ef5899e1df981d01d8d08f0a36e10b5820a5ec4183e74c02e5f1f0
 DIST libgcrypt-1.11.2.tar.bz2.sig 147 BLAKE2B 
5126fa06a9a67b2b71711f76ecbf9f3596f300f97256378961768a2f3c3927321da649eb0df4ddfb653e4503712b8b3c363c252bcb83ca53c7eea89a3ac8d4d4
 SHA512 
73b1d6d53e2f9061f06628a0fe983919f745c1c92930fd6a9871a0a3a589878efe68ec48b4e17e3fd3c1e098bc38c38cc8895246cee25463377a8bfa8590b164
-DIST libgcrypt-1.12.0.tar.bz2 4438947 BLAKE2B 
2d600fb5288aed426d99fdd5628dd7382108301371f0d6488d5911f62519802e2b4b53181196955d084b5f11a71e4673b4064db407e1cc55eadc15610faf660c
 SHA512 
9421461297bd79b14f94d1ab275c3ed93b5d433531915c5cc7a718a94d32978a46feccb7a33fe63a60780ff00d465fbe1fe9ada5c250cf6d10a525c246c63d1c
-DIST libgcrypt-1.12.0.tar.bz2.sig 147 BLAKE2B 
ba0bd76457ce79952a5d4b9ea4d79dc83cd9b096d28bc9de228938730a3d1d9afa9210f29e134bebb6b2398165d490c72fe1f0a7cfeb8a73105d8778edbae109
 SHA512 
01c417b96c6adf7a2b1191cee611cd31a46a50b4225c44afabbcbc97bc72d0ae52c81b4bde6e8668e824c0367b03b85374fc5e2168333869aeae50169863a2a0
 DIST libgcrypt-1.12.1.tar.bz2 4441330 BLAKE2B 
6656d9edc5c702b5b76aa2a7504ed9f224718dc0047494f51de63f98a52e334fab1ade05e4c0ec44f92c406292090cf02193ec3f1eb754e886f3a71f9bbe1435
 SHA512 
e4be1f9d32bb672663499a1203454b9c646b7f237d9acb64303b991798fe3f4c3366793b0564b94c6687885353f6e7fef6ae6e74a57ccb5eb5606e77c81b3738
 DIST libgcrypt-1.12.1.tar.bz2.sig 147 BLAKE2B 
c18304651b08872c0a42c7c87ac40e32214b9b17e56fa2528975919c75ccb08ab05d9befaeddcee5b60d0015fe0677463cfdd6ae140d53ba8268c575a153d3e9
 SHA512 
9068d38fe4b55af181202982c3beb7345782c03fb48eb32c26fe34405e01669db751fd8e3f58c2d4173d6523069165ce93ce447a89f8d856280b5fd0cf8a7d1b

diff --git a/dev-libs/libgcrypt/libgcrypt-1.12.0-r1.ebuild 
b/dev-libs/libgcrypt/libgcrypt-1.12.0-r1.ebuild
deleted file mode 100644
index 9e9d7fb63e22..000000000000
--- a/dev-libs/libgcrypt/libgcrypt-1.12.0-r1.ebuild
+++ /dev/null
@@ -1,185 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/gnupg.asc
-inherit autotools flag-o-matic linux-info multilib-minimal toolchain-funcs 
verify-sig
-
-DESCRIPTION="General purpose crypto library based on the code used in GnuPG"
-HOMEPAGE="https://www.gnupg.org/";
-SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
-SRC_URI+=" verify-sig? ( mirror://gnupg/${PN}/${P}.tar.bz2.sig )"
-
-LICENSE="LGPL-2.1+ GPL-2+ MIT"
-SLOT="0/20" # subslot = soname major version
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
-IUSE="+asm doc +getentropy static-libs"
-IUSE+=" cpu_flags_arm_neon cpu_flags_arm_aes cpu_flags_arm_sha1 
cpu_flags_arm_sha2 cpu_flags_arm_sve"
-IUSE+=" cpu_flags_ppc_altivec cpu_flags_ppc_vsx2 cpu_flags_ppc_vsx3"
-IUSE+=" cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 
cpu_flags_x86_avx512f cpu_flags_x86_padlock cpu_flags_x86_sha 
cpu_flags_x86_sse4_1"
-
-# Build system only has --disable-arm-crypto-support right now
-# If changing this, update src_configure logic too.
-# ARM CPUs seem to, right now, support all-or-nothing for crypto extensions,
-# but this looks like it might change in future. This is just a safety check
-# in case people somehow do have a CPU which only supports some. They must
-# for now disable them all if that's the case.
-REQUIRED_USE="
-       cpu_flags_arm_aes? ( cpu_flags_arm_sha1 cpu_flags_arm_sha2 )
-       cpu_flags_arm_sha1? ( cpu_flags_arm_aes cpu_flags_arm_sha2 )
-       cpu_flags_arm_sha2? ( cpu_flags_arm_aes cpu_flags_arm_sha1 )
-       cpu_flags_ppc_vsx3? ( cpu_flags_ppc_altivec cpu_flags_ppc_vsx2 )
-       cpu_flags_ppc_vsx2? ( cpu_flags_ppc_altivec )
-"
-
-RDEPEND="
-       >=dev-libs/libgpg-error-1.56[${MULTILIB_USEDEP}]
-       getentropy? (
-               kernel_linux? (
-                       elibc_glibc? ( >=sys-libs/glibc-2.25 )
-                       elibc_musl? ( >=sys-libs/musl-1.1.20 )
-               )
-       )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
-       doc? ( virtual/texi2dvi )
-       verify-sig? ( sec-keys/openpgp-keys-gnupg )
-"
-
-PATCHES=(
-       "${FILESDIR}"/${PN}-1.12.0-multilib-syspath.patch
-       "${FILESDIR}"/${PN}-powerpc-darwin.patch
-)
-
-MULTILIB_CHOST_TOOLS=(
-       /usr/bin/libgcrypt-config
-)
-
-pkg_pretend() {
-       if [[ ${MERGE_TYPE} == buildonly ]]; then
-               return
-       fi
-       if use kernel_linux && use getentropy; then
-               unset KV_FULL
-               get_running_version
-               if [[ -n ${KV_FULL} ]] && kernel_is -lt 3 17; then
-                       eerror "The getentropy function requires the getrandom 
syscall."
-                       eerror "This was introduced in Linux 3.17."
-                       eerror "Your system is currently running Linux 
${KV_FULL}."
-                       eerror "Disable the 'getentropy' USE flag or upgrade 
your kernel."
-                       die "Kernel is too old for getentropy"
-               fi
-       fi
-}
-
-pkg_setup() {
-       :
-}
-
-src_prepare() {
-       default
-       eautoreconf
-}
-
-src_configure() {
-       # Temporary workaround for a build failure (known gcc issue):
-       #  * https://bugs.gentoo.org/956605
-       #  * https://gcc.gnu.org/PR110812
-       use riscv && filter-lto
-
-       # Temporary workaround for mfpmath=sse on x86 causing issues when -msse 
is
-       # stripped as it's not clear cut on how to handle in flag-o-matic we 
can at
-       # least solve it the ebuild see https://bugs.gentoo.org/959349
-       use x86 && filter-flags -mfpmath=sse
-
-       # Hardcodes the path to FGREP in libgcrypt-config
-       export ac_cv_path_SED="sed"
-       export ac_cv_path_EGREP="grep -E"
-       export ac_cv_path_EGREP_TRADITIONAL="grep -E"
-       export ac_cv_path_FGREP="grep -F"
-       export ac_cv_path_GREP="grep"
-
-       multilib-minimal_src_configure
-}
-
-multilib_src_configure() {
-       if [[ ${CHOST} == powerpc* ]] ; then
-               # ./configure does a lot of automagic, prevent that
-               # generic ppc32+ppc64 altivec
-               use cpu_flags_ppc_altivec || local -x gcry_cv_cc_ppc_altivec=no
-               use cpu_flags_ppc_altivec || local -x 
gcry_cv_cc_ppc_altivec_cflags=no
-               # power8 vector extension, aka arch 2.07 ISA, also checked 
below via ppc-crypto-support
-               use cpu_flags_ppc_vsx2 || local -x 
gcry_cv_gcc_inline_asm_ppc_altivec=no
-               # power9 vector extension, aka arch 3.00 ISA
-               use cpu_flags_ppc_vsx3 || local -x 
gcry_cv_gcc_inline_asm_ppc_arch_3_00=no
-       fi
-
-       append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
-
-       local myeconfargs=(
-               CC_FOR_BUILD="$(tc-getBUILD_CC)"
-
-               --enable-noexecstack
-               $(use_enable cpu_flags_arm_neon neon-support)
-               # See REQUIRED_USE comment above
-               $(use_enable cpu_flags_arm_aes arm-crypto-support)
-               $(use_enable cpu_flags_arm_sve sve-support)
-               $(use_enable cpu_flags_ppc_vsx2 ppc-crypto-support)
-               $(use_enable cpu_flags_x86_aes aesni-support)
-               $(use_enable cpu_flags_x86_avx avx-support)
-               $(use_enable cpu_flags_x86_avx2 avx2-support)
-               $(use_enable cpu_flags_x86_avx512f avx512-support)
-               $(use_enable cpu_flags_x86_padlock padlock-support)
-               $(use_enable cpu_flags_x86_sha shaext-support)
-               $(use_enable cpu_flags_x86_sse4_1 sse41-support)
-               # required for sys-power/suspend[crypt], bug 751568
-               $(use_enable static-libs static)
-
-               # disabled due to various applications requiring privileges
-               # after libgcrypt drops them (bug #468616)
-               --without-capabilities
-
-               $(use asm || echo "--disable-asm")
-
-               GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config"
-               GPGRT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpgrt-config"
-       )
-
-       if use kernel_linux; then
-               # --enable-random=getentropy requires getentropy/getrandom.
-               # --enable-random=linux enables legacy code that tries getrandom
-               # and falls back to reading /dev/random.
-               myeconfargs+=( --enable-random=$(usex getentropy getentropy 
linux) )
-       fi
-
-       ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" \
-               $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
-}
-
-multilib_src_compile() {
-       default
-       multilib_is_native_abi && use doc && VARTEXFONTS="${T}/fonts" emake -C 
doc gcrypt.pdf
-}
-
-multilib_src_test() {
-       # t-secmem and t-sexp need mlock which requires extra privileges; nspawn
-       # at least disallows that by default.
-       local -x GCRYPT_IN_ASAN_TEST=1
-       # Avoid running (very) expensive bench-slope test. On hppa, it
-       # takes at least 7 hours.
-       local -x GCRYPT_NO_BENCHMARKS=1
-
-       default
-}
-
-multilib_src_install() {
-       emake DESTDIR="${D}" install
-       multilib_is_native_abi && use doc && dodoc doc/gcrypt.pdf
-}
-
-multilib_src_install_all() {
-       default
-       find "${ED}" -type f -name '*.la' -delete || die
-}

diff --git a/dev-libs/libgcrypt/libgcrypt-1.12.0-r2.ebuild 
b/dev-libs/libgcrypt/libgcrypt-1.12.0-r2.ebuild
deleted file mode 100644
index f733ab14dc31..000000000000
--- a/dev-libs/libgcrypt/libgcrypt-1.12.0-r2.ebuild
+++ /dev/null
@@ -1,187 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/gnupg.asc
-inherit autotools flag-o-matic linux-info multilib-minimal toolchain-funcs 
verify-sig
-
-DESCRIPTION="General purpose crypto library based on the code used in GnuPG"
-HOMEPAGE="https://www.gnupg.org/";
-SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
-SRC_URI+=" verify-sig? ( mirror://gnupg/${PN}/${P}.tar.bz2.sig )"
-
-LICENSE="LGPL-2.1+ GPL-2+ MIT"
-SLOT="0/20" # subslot = soname major version
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
-IUSE="+asm doc +getentropy static-libs"
-IUSE+=" cpu_flags_arm_neon cpu_flags_arm_aes cpu_flags_arm_sha1 
cpu_flags_arm_sha2 cpu_flags_arm_sve"
-IUSE+=" cpu_flags_ppc_altivec cpu_flags_ppc_vsx2 cpu_flags_ppc_vsx3"
-IUSE+=" cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 
cpu_flags_x86_avx512f cpu_flags_x86_padlock cpu_flags_x86_sha 
cpu_flags_x86_sse4_1"
-
-# Build system only has --disable-arm-crypto-support right now
-# If changing this, update src_configure logic too.
-# ARM CPUs seem to, right now, support all-or-nothing for crypto extensions,
-# but this looks like it might change in future. This is just a safety check
-# in case people somehow do have a CPU which only supports some. They must
-# for now disable them all if that's the case.
-REQUIRED_USE="
-       cpu_flags_arm_aes? ( cpu_flags_arm_sha1 cpu_flags_arm_sha2 )
-       cpu_flags_arm_sha1? ( cpu_flags_arm_aes cpu_flags_arm_sha2 )
-       cpu_flags_arm_sha2? ( cpu_flags_arm_aes cpu_flags_arm_sha1 )
-       cpu_flags_ppc_vsx3? ( cpu_flags_ppc_altivec cpu_flags_ppc_vsx2 )
-       cpu_flags_ppc_vsx2? ( cpu_flags_ppc_altivec )
-"
-
-RDEPEND="
-       >=dev-libs/libgpg-error-1.56[${MULTILIB_USEDEP}]
-       getentropy? (
-               kernel_linux? (
-                       elibc_glibc? ( >=sys-libs/glibc-2.25 )
-                       elibc_musl? ( >=sys-libs/musl-1.1.20 )
-               )
-       )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
-       doc? ( virtual/texi2dvi )
-       verify-sig? ( sec-keys/openpgp-keys-gnupg )
-"
-
-PATCHES=(
-       "${FILESDIR}"/${PN}-1.12.0-multilib-syspath.patch
-       "${FILESDIR}"/${PN}-powerpc-darwin.patch
-       
"${FILESDIR}"/0001-rijndael-vaes-avx512-add-PIC-PLT-for-AVX2-function-j.patch
-       
"${FILESDIR}"/0002-mpi-ec-Don-t-modify-POINT-in-_gcry_mpi_ec_get_affine.patch
-)
-
-MULTILIB_CHOST_TOOLS=(
-       /usr/bin/libgcrypt-config
-)
-
-pkg_pretend() {
-       if [[ ${MERGE_TYPE} == buildonly ]]; then
-               return
-       fi
-       if use kernel_linux && use getentropy; then
-               unset KV_FULL
-               get_running_version
-               if [[ -n ${KV_FULL} ]] && kernel_is -lt 3 17; then
-                       eerror "The getentropy function requires the getrandom 
syscall."
-                       eerror "This was introduced in Linux 3.17."
-                       eerror "Your system is currently running Linux 
${KV_FULL}."
-                       eerror "Disable the 'getentropy' USE flag or upgrade 
your kernel."
-                       die "Kernel is too old for getentropy"
-               fi
-       fi
-}
-
-pkg_setup() {
-       :
-}
-
-src_prepare() {
-       default
-       eautoreconf
-}
-
-src_configure() {
-       # Temporary workaround for a build failure (known gcc issue):
-       #  * https://bugs.gentoo.org/956605
-       #  * https://gcc.gnu.org/PR110812
-       use riscv && filter-lto
-
-       # Temporary workaround for mfpmath=sse on x86 causing issues when -msse 
is
-       # stripped as it's not clear cut on how to handle in flag-o-matic we 
can at
-       # least solve it the ebuild see https://bugs.gentoo.org/959349
-       use x86 && filter-flags -mfpmath=sse
-
-       # Hardcodes the path to FGREP in libgcrypt-config
-       export ac_cv_path_SED="sed"
-       export ac_cv_path_EGREP="grep -E"
-       export ac_cv_path_EGREP_TRADITIONAL="grep -E"
-       export ac_cv_path_FGREP="grep -F"
-       export ac_cv_path_GREP="grep"
-
-       multilib-minimal_src_configure
-}
-
-multilib_src_configure() {
-       if [[ ${CHOST} == powerpc* ]] ; then
-               # ./configure does a lot of automagic, prevent that
-               # generic ppc32+ppc64 altivec
-               use cpu_flags_ppc_altivec || local -x gcry_cv_cc_ppc_altivec=no
-               use cpu_flags_ppc_altivec || local -x 
gcry_cv_cc_ppc_altivec_cflags=no
-               # power8 vector extension, aka arch 2.07 ISA, also checked 
below via ppc-crypto-support
-               use cpu_flags_ppc_vsx2 || local -x 
gcry_cv_gcc_inline_asm_ppc_altivec=no
-               # power9 vector extension, aka arch 3.00 ISA
-               use cpu_flags_ppc_vsx3 || local -x 
gcry_cv_gcc_inline_asm_ppc_arch_3_00=no
-       fi
-
-       append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
-
-       local myeconfargs=(
-               CC_FOR_BUILD="$(tc-getBUILD_CC)"
-
-               --enable-noexecstack
-               $(use_enable cpu_flags_arm_neon neon-support)
-               # See REQUIRED_USE comment above
-               $(use_enable cpu_flags_arm_aes arm-crypto-support)
-               $(use_enable cpu_flags_arm_sve sve-support)
-               $(use_enable cpu_flags_ppc_vsx2 ppc-crypto-support)
-               $(use_enable cpu_flags_x86_aes aesni-support)
-               $(use_enable cpu_flags_x86_avx avx-support)
-               $(use_enable cpu_flags_x86_avx2 avx2-support)
-               $(use_enable cpu_flags_x86_avx512f avx512-support)
-               $(use_enable cpu_flags_x86_padlock padlock-support)
-               $(use_enable cpu_flags_x86_sha shaext-support)
-               $(use_enable cpu_flags_x86_sse4_1 sse41-support)
-               # required for sys-power/suspend[crypt], bug 751568
-               $(use_enable static-libs static)
-
-               # disabled due to various applications requiring privileges
-               # after libgcrypt drops them (bug #468616)
-               --without-capabilities
-
-               $(use asm || echo "--disable-asm")
-
-               GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config"
-               GPGRT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpgrt-config"
-       )
-
-       if use kernel_linux; then
-               # --enable-random=getentropy requires getentropy/getrandom.
-               # --enable-random=linux enables legacy code that tries getrandom
-               # and falls back to reading /dev/random.
-               myeconfargs+=( --enable-random=$(usex getentropy getentropy 
linux) )
-       fi
-
-       ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" \
-               $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
-}
-
-multilib_src_compile() {
-       default
-       multilib_is_native_abi && use doc && VARTEXFONTS="${T}/fonts" emake -C 
doc gcrypt.pdf
-}
-
-multilib_src_test() {
-       # t-secmem and t-sexp need mlock which requires extra privileges; nspawn
-       # at least disallows that by default.
-       local -x GCRYPT_IN_ASAN_TEST=1
-       # Avoid running (very) expensive bench-slope test. On hppa, it
-       # takes at least 7 hours.
-       local -x GCRYPT_NO_BENCHMARKS=1
-
-       default
-}
-
-multilib_src_install() {
-       emake DESTDIR="${D}" install
-       multilib_is_native_abi && use doc && dodoc doc/gcrypt.pdf
-}
-
-multilib_src_install_all() {
-       default
-       find "${ED}" -type f -name '*.la' -delete || die
-}

diff --git a/dev-libs/libgcrypt/libgcrypt-1.12.0-r3.ebuild 
b/dev-libs/libgcrypt/libgcrypt-1.12.0-r3.ebuild
deleted file mode 100644
index 0c8224c9d707..000000000000
--- a/dev-libs/libgcrypt/libgcrypt-1.12.0-r3.ebuild
+++ /dev/null
@@ -1,190 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/gnupg.asc
-inherit autotools flag-o-matic linux-info multilib-minimal toolchain-funcs 
verify-sig
-
-DESCRIPTION="General purpose crypto library based on the code used in GnuPG"
-HOMEPAGE="https://www.gnupg.org/";
-SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
-SRC_URI+=" verify-sig? ( mirror://gnupg/${PN}/${P}.tar.bz2.sig )"
-
-LICENSE="LGPL-2.1+ GPL-2+ MIT"
-SLOT="0/20" # subslot = soname major version
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
-IUSE="+asm doc +getentropy static-libs"
-IUSE+=" cpu_flags_arm_neon cpu_flags_arm_aes cpu_flags_arm_sha1 
cpu_flags_arm_sha2 cpu_flags_arm_sve"
-IUSE+=" cpu_flags_ppc_altivec cpu_flags_ppc_vsx2 cpu_flags_ppc_vsx3"
-IUSE+=" cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 
cpu_flags_x86_avx512f cpu_flags_x86_padlock cpu_flags_x86_sha 
cpu_flags_x86_sse4_1"
-
-# Build system only has --disable-arm-crypto-support right now
-# If changing this, update src_configure logic too.
-# ARM CPUs seem to, right now, support all-or-nothing for crypto extensions,
-# but this looks like it might change in future. This is just a safety check
-# in case people somehow do have a CPU which only supports some. They must
-# for now disable them all if that's the case.
-REQUIRED_USE="
-       cpu_flags_arm_aes? ( cpu_flags_arm_sha1 cpu_flags_arm_sha2 )
-       cpu_flags_arm_sha1? ( cpu_flags_arm_aes cpu_flags_arm_sha2 )
-       cpu_flags_arm_sha2? ( cpu_flags_arm_aes cpu_flags_arm_sha1 )
-       cpu_flags_ppc_vsx3? ( cpu_flags_ppc_altivec cpu_flags_ppc_vsx2 )
-       cpu_flags_ppc_vsx2? ( cpu_flags_ppc_altivec )
-"
-
-RDEPEND="
-       >=dev-libs/libgpg-error-1.56[${MULTILIB_USEDEP}]
-       getentropy? (
-               kernel_linux? (
-                       elibc_glibc? ( >=sys-libs/glibc-2.25 )
-                       elibc_musl? ( >=sys-libs/musl-1.1.20 )
-               )
-       )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
-       doc? ( virtual/texi2dvi )
-       verify-sig? ( sec-keys/openpgp-keys-gnupg )
-"
-
-PATCHES=(
-       "${FILESDIR}"/${PN}-1.12.0-multilib-syspath.patch
-       "${FILESDIR}"/${PN}-powerpc-darwin.patch
-       
"${FILESDIR}"/0001-rijndael-vaes-avx512-add-PIC-PLT-for-AVX2-function-j.patch
-       
"${FILESDIR}"/0002-mpi-ec-Don-t-modify-POINT-in-_gcry_mpi_ec_get_affine.patch
-       "${FILESDIR}"/0001-mpi-ec-Make-sure-to-have-MPI-limbs-in-ECC.patch
-       
"${FILESDIR}"/0002-mpi-ec-Use-mpi_new-with-NBITS-instead-of-mpi_alloc.patch
-       
"${FILESDIR}"/0003-cipher-ecc-Fix-Weierstrass-curve-with-PUBKEY_FLAG_PA.patch
-)
-
-MULTILIB_CHOST_TOOLS=(
-       /usr/bin/libgcrypt-config
-)
-
-pkg_pretend() {
-       if [[ ${MERGE_TYPE} == buildonly ]]; then
-               return
-       fi
-       if use kernel_linux && use getentropy; then
-               unset KV_FULL
-               get_running_version
-               if [[ -n ${KV_FULL} ]] && kernel_is -lt 3 17; then
-                       eerror "The getentropy function requires the getrandom 
syscall."
-                       eerror "This was introduced in Linux 3.17."
-                       eerror "Your system is currently running Linux 
${KV_FULL}."
-                       eerror "Disable the 'getentropy' USE flag or upgrade 
your kernel."
-                       die "Kernel is too old for getentropy"
-               fi
-       fi
-}
-
-pkg_setup() {
-       :
-}
-
-src_prepare() {
-       default
-       eautoreconf
-}
-
-src_configure() {
-       # Temporary workaround for a build failure (known gcc issue):
-       #  * https://bugs.gentoo.org/956605
-       #  * https://gcc.gnu.org/PR110812
-       use riscv && filter-lto
-
-       # Temporary workaround for mfpmath=sse on x86 causing issues when -msse 
is
-       # stripped as it's not clear cut on how to handle in flag-o-matic we 
can at
-       # least solve it the ebuild see https://bugs.gentoo.org/959349
-       use x86 && filter-flags -mfpmath=sse
-
-       # Hardcodes the path to FGREP in libgcrypt-config
-       export ac_cv_path_SED="sed"
-       export ac_cv_path_EGREP="grep -E"
-       export ac_cv_path_EGREP_TRADITIONAL="grep -E"
-       export ac_cv_path_FGREP="grep -F"
-       export ac_cv_path_GREP="grep"
-
-       multilib-minimal_src_configure
-}
-
-multilib_src_configure() {
-       if [[ ${CHOST} == powerpc* ]] ; then
-               # ./configure does a lot of automagic, prevent that
-               # generic ppc32+ppc64 altivec
-               use cpu_flags_ppc_altivec || local -x gcry_cv_cc_ppc_altivec=no
-               use cpu_flags_ppc_altivec || local -x 
gcry_cv_cc_ppc_altivec_cflags=no
-               # power8 vector extension, aka arch 2.07 ISA, also checked 
below via ppc-crypto-support
-               use cpu_flags_ppc_vsx2 || local -x 
gcry_cv_gcc_inline_asm_ppc_altivec=no
-               # power9 vector extension, aka arch 3.00 ISA
-               use cpu_flags_ppc_vsx3 || local -x 
gcry_cv_gcc_inline_asm_ppc_arch_3_00=no
-       fi
-
-       append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
-
-       local myeconfargs=(
-               CC_FOR_BUILD="$(tc-getBUILD_CC)"
-
-               --enable-noexecstack
-               $(use_enable cpu_flags_arm_neon neon-support)
-               # See REQUIRED_USE comment above
-               $(use_enable cpu_flags_arm_aes arm-crypto-support)
-               $(use_enable cpu_flags_arm_sve sve-support)
-               $(use_enable cpu_flags_ppc_vsx2 ppc-crypto-support)
-               $(use_enable cpu_flags_x86_aes aesni-support)
-               $(use_enable cpu_flags_x86_avx avx-support)
-               $(use_enable cpu_flags_x86_avx2 avx2-support)
-               $(use_enable cpu_flags_x86_avx512f avx512-support)
-               $(use_enable cpu_flags_x86_padlock padlock-support)
-               $(use_enable cpu_flags_x86_sha shaext-support)
-               $(use_enable cpu_flags_x86_sse4_1 sse41-support)
-               # required for sys-power/suspend[crypt], bug 751568
-               $(use_enable static-libs static)
-
-               # disabled due to various applications requiring privileges
-               # after libgcrypt drops them (bug #468616)
-               --without-capabilities
-
-               $(use asm || echo "--disable-asm")
-
-               GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config"
-               GPGRT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpgrt-config"
-       )
-
-       if use kernel_linux; then
-               # --enable-random=getentropy requires getentropy/getrandom.
-               # --enable-random=linux enables legacy code that tries getrandom
-               # and falls back to reading /dev/random.
-               myeconfargs+=( --enable-random=$(usex getentropy getentropy 
linux) )
-       fi
-
-       ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" \
-               $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
-}
-
-multilib_src_compile() {
-       default
-       multilib_is_native_abi && use doc && VARTEXFONTS="${T}/fonts" emake -C 
doc gcrypt.pdf
-}
-
-multilib_src_test() {
-       # t-secmem and t-sexp need mlock which requires extra privileges; nspawn
-       # at least disallows that by default.
-       local -x GCRYPT_IN_ASAN_TEST=1
-       # Avoid running (very) expensive bench-slope test. On hppa, it
-       # takes at least 7 hours.
-       local -x GCRYPT_NO_BENCHMARKS=1
-
-       default
-}
-
-multilib_src_install() {
-       emake DESTDIR="${D}" install
-       multilib_is_native_abi && use doc && dodoc doc/gcrypt.pdf
-}
-
-multilib_src_install_all() {
-       default
-       find "${ED}" -type f -name '*.la' -delete || die
-}

Reply via email to