From: Kienan Stewart Date: Tue, 29 Aug 2023 13:18:51 +0000 (-0400) Subject: jjb: Extend version range of genheaders patch to cover v4.18.16-rt9-rebase X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7b15f9fa48cf3ca03cd9b2286a2100dad966ee34;p=lttng-ci.git jjb: Extend version range of genheaders patch to cover v4.18.16-rt9-rebase Change-Id: I1d5ea08b1fd3786e21be77e046a548d3bd633b26 --- 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