Hello community, here is the log from the commit of package wireguard for openSUSE:Factory checked in at 2020-03-06 21:27:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/wireguard (Old) and /work/SRC/openSUSE:Factory/.wireguard.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "wireguard" Fri Mar 6 21:27:57 2020 rev:12 rq:781950 version:0.0.20200215 Changes: -------- --- /work/SRC/openSUSE:Factory/wireguard/wireguard.changes 2020-02-26 15:09:03.737671934 +0100 +++ /work/SRC/openSUSE:Factory/.wireguard.new.26092/wireguard.changes 2020-03-06 21:27:59.737575898 +0100 @@ -1,0 +2,6 @@ +Thu Mar 5 19:49:50 UTC 2020 - Michal Suchanek <msucha...@suse.de> + +- Fix build on openSUSE 15.2 + + wireguard-fix-leap152.patch + +------------------------------------------------------------------- New: ---- wireguard-fix-leap152.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ wireguard.spec ++++++ --- /var/tmp/diff_new_pack.K2R2JX/_old 2020-03-06 21:28:00.333576266 +0100 +++ /var/tmp/diff_new_pack.K2R2JX/_new 2020-03-06 21:28:00.333576266 +0100 @@ -29,6 +29,7 @@ Source2: wireguard-kmp-preamble Source99: https://www.zx2c4.com/keys/AB9942E6D4A4CFC3412620A749FC7012A5DE03AE.asc#/WireGuard.keyring Patch2: wireguard-fix-leap151.patch +Patch3: wireguard-fix-leap152.patch BuildRequires: %{kernel_module_package_buildreqs} # disable flavors xen,desktop,pae,pv %kernel_module_package -p wireguard-kmp-preamble @@ -47,6 +48,9 @@ %if 0%{?sle_version} == 150100 %patch2 -p1 %endif +%if 0%{?sle_version} == 150200 +%patch3 -p1 +%endif cd src set -- * ++++++ wireguard-fix-leap152.patch ++++++ --- wireguard-linux-compat-0.0.20200215/src/compat/compat.h 2020-03-05 20:40:22.527460178 +0100 --- wireguard-linux-compat-0.0.20200215/src/compat/compat.h 2020-03-05 20:40:22.527460178 +0100 @@ -37,6 +37,9 @@ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 13, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) #define ISOPENSUSE15 #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0) +#define ISOPENSUSE152 +#endif #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) @@ -859,7 +862,7 @@ #endif #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 0) && !defined(ISOPENSUSE152) #define genl_dumpit_info(cb) ({ \ struct { struct nlattr **attrs; } *a = (void *)((u8 *)cb->args + offsetofend(struct dump_ctx, next_allowedip)); \ BUILD_BUG_ON(sizeof(cb->args) < offsetofend(struct dump_ctx, next_allowedip) + sizeof(*a)); \