summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJory Pratt <anarchy@gentoo.org>2019-06-12 20:52:17 -0500
committerJory Pratt <anarchy@gentoo.org>2019-06-12 20:52:40 -0500
commitc24cbd37c6d967028dcb5ed93568b6da56eecda0 (patch)
tree5f6170a2a047ab761cd43e90c9fd37473c094613 /sys-boot/vboot-utils
parentsys-cluster/ceph: Version bump to 13.2.6 (diff)
downloadgentoo-c24cbd37c6d967028dcb5ed93568b6da56eecda0.tar.gz
gentoo-c24cbd37c6d967028dcb5ed93568b6da56eecda0.tar.bz2
gentoo-c24cbd37c6d967028dcb5ed93568b6da56eecda0.zip
sys-boot/vboot-utils: fix libressl support, musl dep fix
Closes: https://bugs.gentoo.org/678594 Closes: https://bugs.gentoo.org/687820 Package-Manager: Portage-2.3.67, Repoman-2.3.14 Signed-off-by: Jory Pratt <anarchy@gentoo.org>
Diffstat (limited to 'sys-boot/vboot-utils')
-rw-r--r--sys-boot/vboot-utils/files/vboot-utils-72_p20181229-libressl.patch11
-rw-r--r--sys-boot/vboot-utils/vboot-utils-72_p20181229-r1.ebuild (renamed from sys-boot/vboot-utils/vboot-utils-72_p20181229.ebuild)2
2 files changed, 13 insertions, 0 deletions
diff --git a/sys-boot/vboot-utils/files/vboot-utils-72_p20181229-libressl.patch b/sys-boot/vboot-utils/files/vboot-utils-72_p20181229-libressl.patch
new file mode 100644
index 000000000000..6702a9f590bc
--- /dev/null
+++ b/sys-boot/vboot-utils/files/vboot-utils-72_p20181229-libressl.patch
@@ -0,0 +1,11 @@
+--- a/host/include/openssl_compat.h 2019-01-03 17:32:20.000000000 -0500
++++ b/host/include/openssl_compat.h 2019-02-23 13:40:27.521664838 -0500
+@@ -12,7 +12,7 @@
+
+ #include <openssl/rsa.h>
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER < 0x2080000L
+
+ static inline void RSA_get0_key(const RSA *rsa, const BIGNUM **n,
+ const BIGNUM **e, const BIGNUM **d)
diff --git a/sys-boot/vboot-utils/vboot-utils-72_p20181229.ebuild b/sys-boot/vboot-utils/vboot-utils-72_p20181229-r1.ebuild
index 273d3ec48ff2..a6628bdafb37 100644
--- a/sys-boot/vboot-utils/vboot-utils-72_p20181229.ebuild
+++ b/sys-boot/vboot-utils/vboot-utils-72_p20181229-r1.ebuild
@@ -42,6 +42,8 @@ DEPEND="${RDEPEND}
S=${WORKDIR}
src_prepare() {
+ eapply "${FILESDIR}"/${P}-libressl.patch
+
default
sed -i \
-e 's:${DESTDIR}/\(bin\|${LIBDIR}\):${DESTDIR}/usr/\1:g' \