summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <zx2c4@gentoo.org>2017-10-21 02:10:40 +0200
committerJason A. Donenfeld <zx2c4@gentoo.org>2017-10-21 02:11:13 +0200
commit544a669875539c09fa3702310a6ecbb1abf2d6d7 (patch)
treeb7840d27d65901a3a29876f635b3733dc6b1558b /net-vpn
parentdev-python/pyblake2: Default to faster REGS variant (diff)
downloadgentoo-544a669875539c09fa3702310a6ecbb1abf2d6d7.tar.gz
gentoo-544a669875539c09fa3702310a6ecbb1abf2d6d7.tar.bz2
gentoo-544a669875539c09fa3702310a6ecbb1abf2d6d7.zip
net-vpn/wireguard: include headers for happy building
Package-Manager: Portage-2.3.11, Repoman-2.3.3
Diffstat (limited to 'net-vpn')
-rw-r--r--net-vpn/wireguard/files/wireguard-0.0.20171017-blake-headers.patch25
-rw-r--r--net-vpn/wireguard/wireguard-0.0.20171017.ebuild2
2 files changed, 27 insertions, 0 deletions
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 000000000000..d083a80fb5b8
--- /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" <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
+
diff --git a/net-vpn/wireguard/wireguard-0.0.20171017.ebuild b/net-vpn/wireguard/wireguard-0.0.20171017.ebuild
index fdc71975143a..64a7738a1b8a 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