From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E0CA5158020 for ; Tue, 8 Nov 2022 17:05:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C693FE0A43; Tue, 8 Nov 2022 17:05:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ABA62E0A43 for ; Tue, 8 Nov 2022 17:05:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B81EA33BEA3 for ; Tue, 8 Nov 2022 17:05:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 507326FE for ; Tue, 8 Nov 2022 17:05:47 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1667927079.8c19036cac71bf2b45459cc7d66b5985e2956c69.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libgcrypt/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild dev-libs/libgcrypt/metadata.xml X-VCS-Directories: dev-libs/libgcrypt/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 8c19036cac71bf2b45459cc7d66b5985e2956c69 X-VCS-Branch: master Date: Tue, 8 Nov 2022 17:05:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: eb9dd56c-2319-4d39-aef4-61512cc7a7e1 X-Archives-Hash: 231f2cb082e5c32b5d45a398a1423218 commit: 8c19036cac71bf2b45459cc7d66b5985e2956c69 Author: Mike Gilbert gentoo org> AuthorDate: Fri Nov 4 15:34:10 2022 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Tue Nov 8 17:04:39 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c19036c dev-libs/libgcrypt: add 'getentropy' USE flag This allows for explicit control of the --enable-random configure option. Signed-off-by: Mike Gilbert gentoo.org> dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild | 17 +++++++++++++++-- dev-libs/libgcrypt/metadata.xml | 1 + 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild b/dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild index 2d7401c6a39f..844c21219fb8 100644 --- a/dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild +++ b/dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild @@ -14,7 +14,7 @@ SRC_URI+=" verify-sig? ( mirror://gnupg/${PN}/${P}.tar.bz2.sig )" LICENSE="LGPL-2.1 MIT" SLOT="0/20" # subslot = soname major version KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="+asm cpu_flags_arm_neon cpu_flags_arm_aes cpu_flags_arm_sha1 cpu_flags_arm_sha2 cpu_flags_ppc_altivec cpu_flags_ppc_vsx2 cpu_flags_ppc_vsx3 cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_padlock cpu_flags_x86_sha cpu_flags_x86_sse4_1 doc static-libs" +IUSE="+asm cpu_flags_arm_neon cpu_flags_arm_aes cpu_flags_arm_sha1 cpu_flags_arm_sha2 cpu_flags_ppc_altivec cpu_flags_ppc_vsx2 cpu_flags_ppc_vsx3 cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_padlock cpu_flags_x86_sha cpu_flags_x86_sse4_1 doc +getentropy static-libs" # Build system only has --disable-arm-crypto-support right now # If changing this, update src_configure logic too. @@ -30,7 +30,13 @@ REQUIRED_USE=" cpu_flags_ppc_vsx2? ( cpu_flags_ppc_altivec ) " -RDEPEND=">=dev-libs/libgpg-error-1.25[${MULTILIB_USEDEP}]" +RDEPEND=">=dev-libs/libgpg-error-1.25[${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 )" @@ -109,6 +115,13 @@ multilib_src_configure() { GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-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') } diff --git a/dev-libs/libgcrypt/metadata.xml b/dev-libs/libgcrypt/metadata.xml index 5ec9f7d1803a..6fc509a00bd7 100644 --- a/dev-libs/libgcrypt/metadata.xml +++ b/dev-libs/libgcrypt/metadata.xml @@ -14,5 +14,6 @@ Enable assembly for optimization + Use getentropy function to obtain randomness from the kernel