summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-02-10 11:57:23 +0000
committerSam James <sam@gentoo.org>2022-02-10 12:05:45 +0000
commitc20b92558b8c696c07ad55aa46f21bb2d931703b (patch)
treed53bb8bd3d8288ce90d6aee389bad7493e2aa958 /dev-libs/libgcrypt
parentprofile/features/musl: mask www-client/chromium (diff)
downloadgentoo-c20b92558b8c696c07ad55aa46f21bb2d931703b.tar.gz
gentoo-c20b92558b8c696c07ad55aa46f21bb2d931703b.tar.bz2
gentoo-c20b92558b8c696c07ad55aa46f21bb2d931703b.zip
dev-libs/libgcrypt: add musl build patch for 1.10.0
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libgcrypt')
-rw-r--r--dev-libs/libgcrypt/files/libgcrypt-1.10.0-musl-jitterentropy-includes.patch26
-rw-r--r--dev-libs/libgcrypt/libgcrypt-1.10.0.ebuild2
2 files changed, 28 insertions, 0 deletions
diff --git a/dev-libs/libgcrypt/files/libgcrypt-1.10.0-musl-jitterentropy-includes.patch b/dev-libs/libgcrypt/files/libgcrypt-1.10.0-musl-jitterentropy-includes.patch
new file mode 100644
index 000000000000..205944dd7a1b
--- /dev/null
+++ b/dev-libs/libgcrypt/files/libgcrypt-1.10.0-musl-jitterentropy-includes.patch
@@ -0,0 +1,26 @@
+https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=ffaef0be613121d3ee37867d82932a7a30c2bc6d
+
+From: Heiko Becker <heirecka@exherbo.org>
+Date: Thu, 3 Feb 2022 22:46:41 +0000
+Subject: [PATCH] jitterentropy: Include <fcntl.h> and <limits.h>
+
+* random/jitterentropy-base-user.h: Include <fcntl.h> for O_RDONLY
+* random/jitterentropy-base-user.h: Include <limits.h> for LONG_MAX
+
+--
+
+Fixes the build with musl libc.
+
+Signed-off-by: Heiko Becker <heirecka@exherbo.org>
+--- a/random/jitterentropy-base-user.h
++++ b/random/jitterentropy-base-user.h
+@@ -39,6 +39,9 @@
+ * DAMAGE.
+ */
+
++#include <fcntl.h>
++#include <limits.h>
++
+ #ifndef GCRYPT_JITTERENTROPY_BASE_USER_H
+ #define GCRYPT_JITTERENTROPY_BASE_USER_H
+
diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.0.ebuild b/dev-libs/libgcrypt/libgcrypt-1.10.0.ebuild
index 513ccf607690..de6cdbebc481 100644
--- a/dev-libs/libgcrypt/libgcrypt-1.10.0.ebuild
+++ b/dev-libs/libgcrypt/libgcrypt-1.10.0.ebuild
@@ -38,6 +38,8 @@ BDEPEND="doc? ( virtual/texi2dvi )
PATCHES=(
"${FILESDIR}"/${PN}-multilib-syspath.patch
"${FILESDIR}"/${PN}-powerpc-darwin.patch
+
+ "${FILESDIR}"/${P}-musl-jitterentropy-includes.patch
)
MULTILIB_CHOST_TOOLS=(