From 7b15f9fa48cf3ca03cd9b2286a2100dad966ee34 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Tue, 29 Aug 2023 09:18:51 -0400 Subject: [PATCH] jjb: Extend version range of genheaders patch to cover v4.18.16-rt9-rebase Change-Id: I1d5ea08b1fd3786e21be77e046a548d3bd633b26 --- scripts/lttng-modules/param-build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/lttng-modules/param-build.sh b/scripts/lttng-modules/param-build.sh index 6a96fc0..b3d5abc 100644 --- a/scripts/lttng-modules/param-build.sh +++ b/scripts/lttng-modules/param-build.sh @@ -367,8 +367,11 @@ build_linux_kernel() { patch_linux_kernel 9feeb638cde083c737e295c0547f1b4f28e99583 fi - if { vergte "${kversion}" "4.12"; } && { verlt "${kversion}" "4.18"; } ; then - # Old kernels can fail to build while on newer host kernels + if { vergte "${kversion}" "4.12"; } && { verlt "${kversion}" "4.19"; } ; then + # Old kernels can fail to build while on newer host kernels with errors + # such as: + # In file included from scripts/selinux/genheaders/genheaders.c:19: + # ./security/selinux/include/classmap.h:249:2: error: #error New address family defined, please update secclass_map. # @see https://gitlab.com/linux-kernel/stable/-/commit/dfbd199a7cfe3e3cd8531e1353cdbd7175bfbc5e # patch_linux_kernel dfbd199a7cfe3e3cd8531e1353cdbd7175bfbc5e -- 2.34.1