diff options
author | Aric Belsito <lluixhi@gmail.com> | 2016-11-02 13:44:44 -0700 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2016-11-23 10:27:55 +0100 |
commit | 4ee3e54b68eb8fab1456957822c85c49b6211839 (patch) | |
tree | d9a070c11a48f5dfae45a32f1d34ac89dedc4ad0 /sys-fs/cryptsetup/files | |
parent | net-misc/ntp-4.2.8_p9-r0: stable on alpha (diff) | |
download | gentoo-4ee3e54b68eb8fab1456957822c85c49b6211839.tar.gz gentoo-4ee3e54b68eb8fab1456957822c85c49b6211839.tar.bz2 gentoo-4ee3e54b68eb8fab1456957822c85c49b6211839.zip |
sys-fs/cryptsetup: Add LibreSSL patch.
Remove unused sysmacros patch.
Closes: https://github.com/gentoo/gentoo/pull/2724
Diffstat (limited to 'sys-fs/cryptsetup/files')
-rw-r--r-- | sys-fs/cryptsetup/files/cryptsetup-1.7.1-sysmacros.patch | 60 | ||||
-rw-r--r-- | sys-fs/cryptsetup/files/cryptsetup-1.7.3-libressl.patch | 12 |
2 files changed, 12 insertions, 60 deletions
diff --git a/sys-fs/cryptsetup/files/cryptsetup-1.7.1-sysmacros.patch b/sys-fs/cryptsetup/files/cryptsetup-1.7.1-sysmacros.patch deleted file mode 100644 index 459cec6dd3bc..000000000000 --- a/sys-fs/cryptsetup/files/cryptsetup-1.7.1-sysmacros.patch +++ /dev/null @@ -1,60 +0,0 @@ -https://bugs.gentoo.org/580228 - -From ca5f8f92c161d9bd3b0c539befc13199f8a60813 Mon Sep 17 00:00:00 2001 -From: Mike Frysinger <vapier@gentoo.org> -Date: Tue, 19 Apr 2016 02:13:00 -0400 -Subject: [PATCH] include sys/sysmacros.h for major/minor/makedev - -These functions are defined in that header, so include it when needed. -Otherwise we can get build failures like: -veritysetup-utils_loop.o: In function '_sysfs_backing_file': -utils_loop.c:(.text+0x50): undefined reference to 'minor' -utils_loop.c:(.text+0x5e): undefined reference to 'major' -veritysetup-utils_loop.o: In function 'crypt_loop_device': -utils_loop.c:(.text+0x638): undefined reference to 'major' -../lib/.libs/libcryptsetup.so: undefined reference to 'makedev' ---- - lib/utils_devpath.c | 1 + - lib/utils_loop.c | 1 + - lib/utils_wipe.c | 1 + - 3 files changed, 3 insertions(+) - -diff --git a/lib/utils_devpath.c b/lib/utils_devpath.c -index 963785a..0bc0563 100644 ---- a/lib/utils_devpath.c -+++ b/lib/utils_devpath.c -@@ -30,6 +30,7 @@ - #include <errno.h> - #include <limits.h> - #include <sys/stat.h> -+#include <sys/sysmacros.h> - #include <sys/types.h> - #include "internal.h" - -diff --git a/lib/utils_loop.c b/lib/utils_loop.c -index d7b03a1..36d4c46 100644 ---- a/lib/utils_loop.c -+++ b/lib/utils_loop.c -@@ -27,6 +27,7 @@ - #include <limits.h> - #include <sys/ioctl.h> - #include <sys/stat.h> -+#include <sys/sysmacros.h> - #include <sys/types.h> - #include <linux/loop.h> - -diff --git a/lib/utils_wipe.c b/lib/utils_wipe.c -index 210c566..8e2a2aa 100644 ---- a/lib/utils_wipe.c -+++ b/lib/utils_wipe.c -@@ -29,6 +29,7 @@ - #include <sys/types.h> - #include <sys/stat.h> - #include <sys/ioctl.h> -+#include <sys/sysmacros.h> - #include <fcntl.h> - - #include "libcryptsetup.h" --- -2.7.4 - diff --git a/sys-fs/cryptsetup/files/cryptsetup-1.7.3-libressl.patch b/sys-fs/cryptsetup/files/cryptsetup-1.7.3-libressl.patch new file mode 100644 index 000000000000..a7a708f427a3 --- /dev/null +++ b/sys-fs/cryptsetup/files/cryptsetup-1.7.3-libressl.patch @@ -0,0 +1,12 @@ +diff -Naur cryptsetup-1.7.3.orig/lib/crypto_backend/crypto_openssl.c cryptsetup-1.7.3/lib/crypto_backend/crypto_openssl.c +--- cryptsetup-1.7.3.orig/lib/crypto_backend/crypto_openssl.c 2016-10-28 01:58:10.000000000 -0700 ++++ cryptsetup-1.7.3/lib/crypto_backend/crypto_openssl.c 2016-11-02 13:38:46.094483756 -0700 +@@ -73,7 +73,7 @@ + /* + * Compatible wrappers for OpenSSL < 1.1.0 + */ +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + static EVP_MD_CTX *EVP_MD_CTX_new(void) + { + EVP_MD_CTX *md = malloc(sizeof(*md)); |