Whamcloud - gitweb
LU-15795 lbuild: enable KABI 10/48610/3
authorMinh Diep <mdiep@whamcloud.com>
Tue, 20 Sep 2022 18:32:02 +0000 (11:32 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 26 Oct 2022 04:43:25 +0000 (04:43 +0000)
Enable build kabi and clean up kmodtool patch

Lustre-change: https://review.whamcloud.com/47507
Lustre-commit: 0a639a32cf32423e826420e24726912d5a39f13e

Test-Parameters: trivial fstype=ldiskfs clientdistro=el8.5 serverdistro=el8.5
Test-Parameters: trivial fstype=ldiskfs clientdistro=el8.6 serverdistro=el8.6

Change-Id: I16d54af0004c4ddc1cc5e6acca81e4aa89a1a1c1
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48610
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
contrib/lbuild/lbuild
contrib/lbuild/lbuild-rhel8
contrib/lbuild/rhel8/kmodtool.patch [deleted file]

index eee667e..d236071 100755 (executable)
@@ -73,7 +73,7 @@ KERNELTREE=
 KERNEL_LUSTRE_NAMING=false
 ENABLE_KERNEL_DEBUG=false
 # default not use kabi check.
-USE_KABI=false
+USE_KABI=true
 
 # patchless build
 KERNELRPMSBASE=
index beeb6f2..61d0d62 100644 (file)
@@ -8,7 +8,7 @@ BUILD_GEN+=".0"
 
 SPEC_NAME="kernel.spec"
 DEVEL_PATH_ARCH_DELIMETER="."
-USE_KABI=false
+USE_KABI=true
 
 # force local definition of %dist into ~/.rpmmacros
 # to avoid verbose extended strings like ".el8.centos"
@@ -24,7 +24,6 @@ RHEL_KMODTOOL=/usr/lib/rpm/redhat/kmodtool
 LBUILD_KMODTOOL="${LBUILD_DIR}/rhel8/kmodtool"
 cp  $RHEL_KMODTOOL $LBUILD_KMODTOOL
 pushd ${LBUILD_DIR}/rhel8
-patch -p1 < kmodtool.patch
 # Replace the hardcoded /usr/src/kernels with our build path
 tmp="${TOPDIR}/reused/usr/src/kernels"
 tmp="${tmp//\//\\/}"
diff --git a/contrib/lbuild/rhel8/kmodtool.patch b/contrib/lbuild/rhel8/kmodtool.patch
deleted file mode 100644 (file)
index 52ce2c1..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-lbuild does not install the kernel source in the standard RHEL7 location.
-RHEL's kmodtool (starting in RHEL7) expects the source to be in the standard
-location, and when it fails to find it it adds an extra $arch onto the end
-of verrel.  With lbuild, verrel already contains the arch, so we change the
-kmodtool script so that it does not add another.
-
---- old/kmodtool       2016-06-07 14:36:20.810907740 -0700
-+++ new/kmodtool       2016-06-07 14:37:55.335652424 -0700
-@@ -62,7 +62,7 @@ get_kernel_release ()
-   local versuffix=${verrel#$verprefix}
-   verrel=$(ls -Ud /usr/src/kernels/$verprefix*$versuffix.$arch | sort -V | tail -n 1)
-   verrel=${verrel##*/}
--  [[ -z $verrel ]] && verrel=$1.$arch
-+  [[ -z $verrel ]] && verrel=$1
-   echo "$verrel"
- }