From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 744A61395E2 for ; Wed, 23 Nov 2016 09:28:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2155AE0C43; Wed, 23 Nov 2016 09:28:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EB3C0E0C43 for ; Wed, 23 Nov 2016 09:28:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C70D83411D7 for ; Wed, 23 Nov 2016 09:28:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6942748B for ; Wed, 23 Nov 2016 09:27:59 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1479893275.4ee3e54b68eb8fab1456957822c85c49b6211839.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/cryptsetup/files/, sys-fs/cryptsetup/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/cryptsetup/cryptsetup-1.7.3.ebuild sys-fs/cryptsetup/files/cryptsetup-1.7.1-sysmacros.patch sys-fs/cryptsetup/files/cryptsetup-1.7.3-libressl.patch X-VCS-Directories: sys-fs/cryptsetup/files/ sys-fs/cryptsetup/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 4ee3e54b68eb8fab1456957822c85c49b6211839 X-VCS-Branch: master Date: Wed, 23 Nov 2016 09:27:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4b4ca83d-ab0a-486b-83ee-bced061edb24 X-Archives-Hash: a4b0d8a63bafba090cf6e01c9db47848 commit: 4ee3e54b68eb8fab1456957822c85c49b6211839 Author: Aric Belsito gmail com> AuthorDate: Wed Nov 2 20:44:44 2016 +0000 Commit: Lars Wendler gentoo org> CommitDate: Wed Nov 23 09:27:55 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ee3e54b sys-fs/cryptsetup: Add LibreSSL patch. Remove unused sysmacros patch. Closes: https://github.com/gentoo/gentoo/pull/2724 sys-fs/cryptsetup/cryptsetup-1.7.3.ebuild | 3 ++ .../files/cryptsetup-1.7.1-sysmacros.patch | 60 ---------------------- .../files/cryptsetup-1.7.3-libressl.patch | 12 +++++ 3 files changed, 15 insertions(+), 60 deletions(-) diff --git a/sys-fs/cryptsetup/cryptsetup-1.7.3.ebuild b/sys-fs/cryptsetup/cryptsetup-1.7.3.ebuild index dd735e2..894bc12 100644 --- a/sys-fs/cryptsetup/cryptsetup-1.7.3.ebuild +++ b/sys-fs/cryptsetup/cryptsetup-1.7.3.ebuild @@ -46,6 +46,8 @@ DEPEND="${RDEPEND} virtual/pkgconfig static? ( ${LIB_DEPEND} )" +PATCHES=( "${FILESDIR}"/${P}-libressl.patch ) + pkg_setup() { local CONFIG_CHECK="~DM_CRYPT ~CRYPTO ~CRYPTO_CBC ~CRYPTO_SHA256" local WARNING_DM_CRYPT="CONFIG_DM_CRYPT:\tis not set (required for cryptsetup)\n" @@ -57,6 +59,7 @@ pkg_setup() { src_prepare() { sed -i '/^LOOPDEV=/s:$: || exit 0:' tests/{compat,mode}-test || die + epatch "${PATCHES[@]}" epatch_user && eautoreconf if use python ; then 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 459cec6..00000000 --- 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 -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 - #include - #include -+#include - #include - #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 - #include - #include -+#include - #include - #include - -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 - #include - #include -+#include - #include - - #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 00000000..a7a708f --- /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));