From: "Aaron Bauman" <bman@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/efitools/, app-crypt/efitools/files/
Date: Mon, 23 Apr 2018 17:29:49 +0000 (UTC) [thread overview]
Message-ID: <1524504577.b34e70a62caf31299d173736f3297bb7e505dd5e.bman@gentoo> (raw)
commit: b34e70a62caf31299d173736f3297bb7e505dd5e
Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 23 17:29:24 2018 +0000
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Mon Apr 23 17:29:37 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b34e70a6
app-crypt/efitools: add compatibility patch for LibreSSL
This patch fixes building with LibreSSL due to a conditional function
for API.
Closes: https://bugs.gentoo.org/653716
Package-Manager: Portage-2.3.31, Repoman-2.3.9
app-crypt/efitools/efitools-1.8.1.ebuild | 2 ++
.../files/efitools-1.8.1-libressl-compatibility.patch | 11 +++++++++++
2 files changed, 13 insertions(+)
diff --git a/app-crypt/efitools/efitools-1.8.1.ebuild b/app-crypt/efitools/efitools-1.8.1.ebuild
index 073dcca2de8..f18e8b8ea27 100644
--- a/app-crypt/efitools/efitools-1.8.1.ebuild
+++ b/app-crypt/efitools/efitools-1.8.1.ebuild
@@ -25,6 +25,8 @@ DEPEND="${RDEPEND}
sys-boot/gnu-efi
virtual/pkgconfig"
+PATCHES=( "${FILESDIR}/${P}-libressl-compatibility.patch" )
+
src_prepare() {
# Respect users CFLAGS
sed -i -e 's/CFLAGS.*= -O2 -g/CFLAGS += /' Make.rules || die
diff --git a/app-crypt/efitools/files/efitools-1.8.1-libressl-compatibility.patch b/app-crypt/efitools/files/efitools-1.8.1-libressl-compatibility.patch
new file mode 100644
index 00000000000..876baae16f8
--- /dev/null
+++ b/app-crypt/efitools/files/efitools-1.8.1-libressl-compatibility.patch
@@ -0,0 +1,11 @@
+--- a/cert-to-efi-hash-list.c 2018-04-21 20:59:24.814748503 +0200
++++ b/cert-to-efi-hash-list.c 2018-04-21 20:59:51.868581307 +0200
+@@ -135,7 +135,7 @@
+ X509 *cert = PEM_read_bio_X509(cert_bio, NULL, NULL, NULL);
+ unsigned char *cert_buf = NULL;
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ int cert_len = i2d_X509_CINF(cert->cert_info, &cert_buf);
+ #else
+ int cert_len = i2d_re_X509_tbs(cert, &cert_buf);
next reply other threads:[~2018-04-23 17:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-23 17:29 Aaron Bauman [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-08-05 15:03 [gentoo-commits] repo/gentoo:master commit in: app-crypt/efitools/, app-crypt/efitools/files/ Matthias Maier
2017-12-18 19:07 Mike Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1524504577.b34e70a62caf31299d173736f3297bb7e505dd5e.bman@gentoo \
--to=bman@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox