net-vpn/wireguard: include headers for happy building
authorJason A. Donenfeld <zx2c4@gentoo.org>
Sat, 21 Oct 2017 00:10:40 +0000 (02:10 +0200)
committerJason A. Donenfeld <zx2c4@gentoo.org>
Sat, 21 Oct 2017 00:11:13 +0000 (02:11 +0200)
Package-Manager: Portage-2.3.11, Repoman-2.3.3

net-vpn/wireguard/files/wireguard-0.0.20171017-blake-headers.patch [new file with mode: 0644]
net-vpn/wireguard/wireguard-0.0.20171017.ebuild

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 (file)
index 0000000..d083a80
--- /dev/null
@@ -0,0 +1,25 @@
+From cf21875fe39d21bff2028a78921e03d96dc56e5a Mon Sep 17 00:00:00 2001
+From: "Jason A. Donenfeld" <Jason@zx2c4.com>
+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
+
index fdc71975143aeccfc36c234b6341d30201157c81..64a7738a1b8a9e32b2abe4e0b7201737aac7f8d1 100644 (file)
@@ -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