From be37ba4b298dba3a2eae99e0e44546de54081e62 Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Tue, 29 Nov 2022 09:01:45 -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/fs/lustre-release/+/49272 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- 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 755a3b5..242658f 100644 --- a/lustre-dkms.spec.in +++ b/lustre-dkms.spec.in @@ -61,6 +61,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 348a7d9..13ec7c0 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -194,7 +194,7 @@ Requires: %{requires_kmod_name} = %{requires_kmod_version} Requires: python3 >= 3.6.0 BuildRequires: python3-devel >= 3.6.0, swig %endif -BuildRequires: libtool libyaml-devel zlib-devel libnl3-devel +BuildRequires: libtool libyaml-devel zlib-devel libnl3-devel flex bison %if "%{_vendor}" == "redhat" BuildRequires: redhat-rpm-config BuildRequires: pkgconfig -- 1.8.3.1