From a39bf25338633585f2e6a19f760cfd4fd2d1fb82 Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Tue, 29 Nov 2022 09:14:22 -0800 Subject: [PATCH] LU-16317 build: dkms build requires flex, bison and libmount-devel This patch fixes lustre.spec.in and lustre-dkms.spec.in to add requires for flex, bison, libmount and libmount-devel. The last two have already been added into lustre.spec.in. Lustre-change: https://review.whamcloud.com/49183 Lustre-commit: c74c630ff7596317d1b500fd385fca271b31708c Test-Parameters: trivial Fixes: 121a79651f ("LU-15967 build: configure script does not check for required build tools") Fixes: f21b944127 ("LU-15940 build: add a required dependency for libmount") Change-Id: I9923fc7eb09f974e8c38c3664138486a424e16d7 Signed-off-by: Jian Yu Reviewed-by: Andreas Dilger Reviewed-by: Arshad Hussain Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49275 Tested-by: jenkins Tested-by: Maloo --- lustre-dkms.spec.in | 1 + lustre.spec.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre-dkms.spec.in b/lustre-dkms.spec.in index 03d4d0f0..4e84f67 100644 --- a/lustre-dkms.spec.in +++ b/lustre-dkms.spec.in @@ -57,6 +57,7 @@ BuildArch: noarch # (ie, "BUILD_DEPENDS[#]="), and have latest DKMS fixes integrated # for bugs that prevented our module to build/install. Requires: dkms >= 2.2.0.3-28.git.7c3e7c5 +Requires: flex bison libmount-devel libmount # for lnetctl Requires: libyaml-devel Requires: zlib-devel diff --git a/lustre.spec.in b/lustre.spec.in index 01b3208..f6dafbb 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -213,7 +213,7 @@ BuildRoot: %{_tmppath}/lustre-%{version}-root %if %{with lustre_modules} Requires: %{requires_kmod_name} = %{requires_kmod_version} %endif -BuildRequires: libtool libyaml-devel zlib-devel +BuildRequires: libtool libyaml-devel zlib-devel flex bison %if "%{_vendor}" == "redhat" BuildRequires: redhat-rpm-config BuildRequires: pkgconfig -- 1.8.3.1