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 5DC5B15ACFB for ; Tue, 25 Apr 2023 14:50:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 64615E0997; Tue, 25 Apr 2023 14:50:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3D7B9E0997 for ; Tue, 25 Apr 2023 14:50:25 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A40BC335D35 for ; Tue, 25 Apr 2023 14:50:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 19BC029 for ; Tue, 25 Apr 2023 14:50:21 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1682434214.89dc47953394cbd86d303b939a7c77e1905a2af8.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libgcrypt/, dev-libs/libgcrypt/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libgcrypt/files/libgcrypt-1.10.2-darwin.patch dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild X-VCS-Directories: dev-libs/libgcrypt/ dev-libs/libgcrypt/files/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 89dc47953394cbd86d303b939a7c77e1905a2af8 X-VCS-Branch: master Date: Tue, 25 Apr 2023 14:50:21 +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: f56a67b3-b92f-4216-9a61-21d0a239c9b7 X-Archives-Hash: 254535b6150f2121bc7b0f033e128e0b commit: 89dc47953394cbd86d303b939a7c77e1905a2af8 Author: Fabian Groffen gentoo org> AuthorDate: Tue Apr 25 14:49:09 2023 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Tue Apr 25 14:50:14 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89dc4795 dev-libs/libgcrypt-1.10.2: fix compilation on Darwin, #904083 Add patch as suggested on upstream bug to fix compilation on non-Linux. Closes: https://bugs.gentoo.org/904083 Signed-off-by: Fabian Groffen gentoo.org> .../libgcrypt/files/libgcrypt-1.10.2-darwin.patch | 20 ++++++++++++++++++++ dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild | 1 + 2 files changed, 21 insertions(+) diff --git a/dev-libs/libgcrypt/files/libgcrypt-1.10.2-darwin.patch b/dev-libs/libgcrypt/files/libgcrypt-1.10.2-darwin.patch new file mode 100644 index 000000000000..6153f1840b97 --- /dev/null +++ b/dev-libs/libgcrypt/files/libgcrypt-1.10.2-darwin.patch @@ -0,0 +1,20 @@ +https://dev.gnupg.org/T6442 + +Patch as suggested by Werned in https://dev.gnupg.org/T6442#169396 + +--- a/random/rndgetentropy.c ++++ b/random/rndgetentropy.c +@@ -94,8 +94,13 @@ + * and might not be applicable on other FIPS modules not running + * RHEL kernel. + */ ++#ifdef GRND_RANDOM + nbytes = length < 32 ? length : 32; + ret = getrandom (buffer, nbytes, GRND_RANDOM); ++#else ++ ret = -1; ++ gpg_err_set_errno (ENOSYS); ++#endif + } + else + { diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild b/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild index 3bc1ef525b06..41cdeeafe307 100644 --- a/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild +++ b/dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild @@ -45,6 +45,7 @@ PATCHES=( "${FILESDIR}"/${PN}-multilib-syspath.patch "${FILESDIR}"/${PN}-powerpc-darwin.patch "${FILESDIR}"/${PN}-1.9.4-no-fgrep-libgcrypt-config.patch + "${FILESDIR}"/${P}-darwin.patch # upstream T6442 ) MULTILIB_CHOST_TOOLS=(