From: Gleb C. <lna...@ya...> - 2025-08-05 13:40:11
|
Commit: 2631557 GitHub URL: https://github.com/SCST-project/scst/commit/2631557383bc892fda0a8f1e87b389ecabfbb567 Author: Gleb Chesnokov Date: 2025-08-05T16:37:31+03:00 Log Message: ----------- 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. Modified Paths: -------------- scst.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) =================================================================== diff --git a/scst.spec.in b/scst.spec.in index 6998a20..e59ddce 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 |