Whamcloud - gitweb
LU-16661 build: use "Recommends: perl" for lustre-iokit
authorJian Yu <yujian@whamcloud.com>
Mon, 4 Sep 2023 07:10:45 +0000 (00:10 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 7 Sep 2023 00:37:44 +0000 (00:37 +0000)
In lustre-iokit, the "plot" commands all use perl, but
the actual "*-survey" scripts are written in bash, so
the "Requires: perl" in lustre.spec.in for lustre-iokit
could be downgraded to "Recommends: perl" for RHEL 8+
(RHEL 7 does not handle "Recommends:").

Lustre-change: https://review.whamcloud.com/52225
Lustre-commit: TBD (from b5b348bc165d7cacea6fb15e380851b6d676a5e0)

Test-Parameters: trivial testlist=obdfilter-survey

Change-Id: I55f3c57e73ac91cedce745dc4f424c3542978cd4
Fixes: 800a9ec58f78 ("LU-16661 build: improve lustre.spec.in Requires")
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52232
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre.spec.in

index 372d2ab..16ea674 100644 (file)
@@ -440,7 +440,10 @@ to be used by the Lustre testing framework.
 %package -n lustre-iokit
 Summary: The Lustre IO-Kit is a collection of benchmark tools for a cluster with the Lustre file system.
 Group: Applications/System
-Requires: perl, sg3_utils
+Requires: sg3_utils
+%if 0%{?rhel} > 7 || 0%{?fedora} > 33 || 0%{?rhel} < 1
+Recommends: perl
+%endif
 
 %description -n lustre-iokit
 This package includes five tools: