From 2631557383bc892fda0a8f1e87b389ecabfbb567 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Tue, 5 Aug 2025 16:20:48 +0300 Subject: [PATCH] scst.spec.in: Replace custom Requires line with package names The scst.spec.in file used a custom Requires line that dynamically resolved the full paths of the find and rm commands using shell substitution with 'which'. This method is non-standard and can lead to issues in constrained build environments. This patch replaces the custom Requires line with explicit package names: 'findutils' for find and 'coreutils' for rm. This improves compatibility and aligns with best practices for declaring dependencies in spec files. --- scst.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst.spec.in b/scst.spec.in index 6998a2016..e59ddceab 100644 --- a/scst.spec.in +++ b/scst.spec.in @@ -90,7 +90,7 @@ BuildRequires: %{?kernel_rpm:%{kernel_rpm} = %{krpmver} %{kernel_devel_rpm} = %{ Source: %{kmod_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build AutoReqProv: no -Requires: %{?kernel_rpm:%{kernel_rpm} = %{krpmver}} @depmod@ %{expand:%%(for c in find rm; do echo -n "$(PATH=/usr/sbin:/usr/bin:/sbin:/bin which $c) "; done)} +Requires: %{?kernel_rpm:%{kernel_rpm} = %{krpmver}} @depmod@ coreutils findutils Provides: scst %description