commit: 544a669875539c09fa3702310a6ecbb1abf2d6d7 Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org> AuthorDate: Sat Oct 21 00:10:40 2017 +0000 Commit: Jason Donenfeld <zx2c4 <AT> gentoo <DOT> org> CommitDate: Sat Oct 21 00:11:13 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=544a6698
net-vpn/wireguard: include headers for happy building Package-Manager: Portage-2.3.11, Repoman-2.3.3 .../wireguard-0.0.20171017-blake-headers.patch | 25 ++++++++++++++++++++++ net-vpn/wireguard/wireguard-0.0.20171017.ebuild | 2 ++ 2 files changed, 27 insertions(+) diff --git a/net-vpn/wireguard/files/wireguard-0.0.20171017-blake-headers.patch b/net-vpn/wireguard/files/wireguard-0.0.20171017-blake-headers.patch new file mode 100644 index 00000000000..d083a80fb5b --- /dev/null +++ b/net-vpn/wireguard/files/wireguard-0.0.20171017-blake-headers.patch @@ -0,0 +1,25 @@ +From cf21875fe39d21bff2028a78921e03d96dc56e5a Mon Sep 17 00:00:00 2001 +From: "Jason A. Donenfeld" <[email protected]> +Date: Sat, 21 Oct 2017 01:30:45 +0200 +Subject: blake2: include headers for macros + +--- + src/crypto/blake2s.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/crypto/blake2s.h b/src/crypto/blake2s.h +index 615010f..99de9f9 100644 +--- a/src/crypto/blake2s.h ++++ b/src/crypto/blake2s.h +@@ -4,6 +4,8 @@ + #define _WG_BLAKE2S_H + + #include <linux/types.h> ++#include <linux/kernel.h> ++#include <crypto/algapi.h> + + enum blake2s_lengths { + BLAKE2S_BLOCKBYTES = 64, +-- +cgit v1.1-31-g4243 + diff --git a/net-vpn/wireguard/wireguard-0.0.20171017.ebuild b/net-vpn/wireguard/wireguard-0.0.20171017.ebuild index fdc71975143..64a7738a1b8 100644 --- a/net-vpn/wireguard/wireguard-0.0.20171017.ebuild +++ b/net-vpn/wireguard/wireguard-0.0.20171017.ebuild @@ -30,6 +30,8 @@ MODULE_NAMES="wireguard(kernel/drivers/net:src)" BUILD_TARGETS="module" CONFIG_CHECK="NET INET NET_UDP_TUNNEL CRYPTO_BLKCIPHER" +PATCHES=( "${FILESDIR}/${P}-blake-headers.patch" ) + pkg_setup() { if use module; then linux-mod_pkg_setup
