[arch-commits] Commit in wireguard-dkms/trunk (2 files)

Christian Hesse eworm at archlinux.org
Wed Apr 1 16:41:50 UTC 2020


    Date: Wednesday, April 1, 2020 @ 16:41:49
  Author: eworm
Revision: 379038

upgpkg: wireguard-dkms 1.0.20200330-2

prepare for linux-lts 5.4.29

Added:
  wireguard-dkms/trunk/0001-queueing-skb_reset_redirect-change-has-been-backport.patch
Modified:
  wireguard-dkms/trunk/PKGBUILD

-----------------------------------------------------------------+
 0001-queueing-skb_reset_redirect-change-has-been-backport.patch |   30 ++++++++++
 PKGBUILD                                                        |   16 ++++-
 2 files changed, 42 insertions(+), 4 deletions(-)

Added: 0001-queueing-skb_reset_redirect-change-has-been-backport.patch
===================================================================
--- 0001-queueing-skb_reset_redirect-change-has-been-backport.patch	                        (rev 0)
+++ 0001-queueing-skb_reset_redirect-change-has-been-backport.patch	2020-04-01 16:41:49 UTC (rev 379038)
@@ -0,0 +1,30 @@
+From 6dc327ae77fb02af2b23584776c843753947a911 Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail at eworm.de>
+Date: Wed, 1 Apr 2020 18:28:54 +0200
+Subject: [PATCH 1/1] queueing: skb_reset_redirect change has been backported
+ to 5.[45]
+
+This is a follow up to 2d4fa2a6e7903ec3340f1b075456cbd84ba6a744.
+
+Upstream commit 2c64605b590edadb3fb46d1ec6badb49e940b479 has been backported
+to 5.4.29 and 5.5.14.
+
+Signed-off-by: Christian Hesse <mail at eworm.de>
+---
+ src/compat/compat.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/compat/compat.h b/src/compat/compat.h
+index fe2d07e..7f16332 100644
+--- a/src/compat/compat.h
++++ b/src/compat/compat.h
+@@ -1024,7 +1024,8 @@ out:
+ #define COMPAT_CANNOT_USE_MAX_MTU
+ #endif
+ 
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 29) || \
++    (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 14)))
+ #include <linux/skbuff.h>
+ static inline void skb_reset_redirect(struct sk_buff *skb)
+ {

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-01 15:54:17 UTC (rev 379037)
+++ PKGBUILD	2020-04-01 16:41:49 UTC (rev 379038)
@@ -3,7 +3,7 @@
 
 pkgname=wireguard-dkms
 pkgver=1.0.20200330
-pkgrel=1
+pkgrel=2
 pkgdesc='next generation secure network tunnel - module sources'
 arch=('x86_64')
 url='https://www.wireguard.com/'
@@ -11,13 +11,21 @@
 depends=('dkms')
 provides=('WIREGUARD-MODULE')
 validpgpkeys=('AB9942E6D4A4CFC3412620A749FC7012A5DE03AE') # Jason A. Donenfeld <Jason at zx2c4.com>
-source=("https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-${pkgver}.tar"{.xz,.asc})
+source=("https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-${pkgver}.tar"{.xz,.asc}
+        '0001-queueing-skb_reset_redirect-change-has-been-backport.patch')
 sha256sums=('2d57b239605be2ee0e4c2da935ff1a23e9ed8bb3ee692e10ae032ae50f280bef'
-            'SKIP')
+            'SKIP'
+            '64206515571285962d5fe8378c8dd3a8527561fe2f8807410f4117d3e19cbe6a')
 
-package_wireguard-dkms() {
+prepare() {
 	cd wireguard-linux-compat-${pkgver}/
 
+	patch -Np1 < ../0001-queueing-skb_reset_redirect-change-has-been-backport.patch
+}
+
+package() {
+	cd wireguard-linux-compat-${pkgver}/
+
 	make -C src/ \
 		DESTDIR="${pkgdir}/" \
 		DKMSDIR="/usr/src/wireguard-${pkgver}/" \



More information about the arch-commits mailing list