commit 80d2dc570330f214f0b4809018bce4932d2b4d02
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Mon Nov 22 19:14:02 2021 +0000
Fix el8
el8_fix.patch | 11 +++++++++++
xtables-addons-kmod.spec | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/el8_fix.patch b/el8_fix.patch
new file mode 100644
index 0000000..7645141
--- /dev/null
+++ b/el8_fix.patch
@@ -0,0 +1,11 @@
+--- xtables-addons-3.18/extensions/compat_xtables.h
++++ xtables-addons-3.18/extensions/compat_xtables.h
+@@ -24,7 +24,7 @@
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0) || \
+ LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 9) && LINUX_VERSION_CODE <
KERNEL_VERSION(5, 10, 0) || \
+ LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 78) && LINUX_VERSION_CODE <
KERNEL_VERSION(5, 5, 0) || \
+- LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 158) && LINUX_VERSION_CODE
< KERNEL_VERSION(4, 20, 0)
++ LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18,0) && LINUX_VERSION_CODE <
KERNEL_VERSION(4, 20, 0)
+ #else
+ # define ip_route_me_harder(xnet, xsk, xskb, xaddrtype) ip_route_me_harder((xnet),
(xskb), (xaddrtype))
+ # define ip6_route_me_harder(xnet, xsk, xskb) ip6_route_me_harder((xnet), (xskb))
diff --git a/xtables-addons-kmod.spec b/xtables-addons-kmod.spec
index 75e3faf..7f2e038 100644
--- a/xtables-addons-kmod.spec
+++ b/xtables-addons-kmod.spec
@@ -15,7 +15,7 @@ Release: 4%{?dist}
License: GPLv2
URL:
https://inai.de/projects/xtables-addons/
Source0:
https://inai.de/files/xtables-addons/xtables-addons-%{version}.tar.xz
-
+Patch0: el8_fix.patch
BuildRequires: %{_bindir}/kmodtool
%{!?kernels:BuildRequires: gcc, elfutils-libelf-devel,
buildsys-build-rpmfusion-kerneldevpkgs-%{?buildforkernels:%{buildforkernels}}%{!?buildforkernels:current}-%{_target_cpu}
}