From 1a56dc5f83793310cbdde18c159fa3e07c1e4867 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 2 Nov 2015 08:11:35 +0100 Subject: [PATCH] linux4.3: fix build with libressl: no CMS support, use PKCS7. --- .../patches/sign-file-use-pkcs7-libressl.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 srcpkgs/linux4.3/patches/sign-file-use-pkcs7-libressl.patch diff --git a/srcpkgs/linux4.3/patches/sign-file-use-pkcs7-libressl.patch b/srcpkgs/linux4.3/patches/sign-file-use-pkcs7-libressl.patch new file mode 100644 index 00000000000..52810d2973f --- /dev/null +++ b/srcpkgs/linux4.3/patches/sign-file-use-pkcs7-libressl.patch @@ -0,0 +1,11 @@ +--- scripts/sign-file.c.orig 2015-11-02 08:09:38.249671776 +0100 ++++ scripts/sign-file.c 2015-11-02 08:10:04.203937498 +0100 +@@ -39,7 +39,7 @@ + * signing with anything other than SHA1 - so we're stuck with that if such is + * the case. + */ +-#if OPENSSL_VERSION_NUMBER < 0x10000000L ++#if defined(LIBRESSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x10000000L + #define USE_PKCS7 + #endif + #ifndef USE_PKCS7