diff --git a/rpm/busybox-sailfish.config b/rpm/busybox-sailfish.config index 0298f8a..14fca91 100644 --- a/rpm/busybox-sailfish.config +++ b/rpm/busybox-sailfish.config @@ -375,7 +375,7 @@ CONFIG_DEFAULT_SETFONT_DIR="" # CONFIG_START_STOP_DAEMON is not set # CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS is not set # CONFIG_FEATURE_START_STOP_DAEMON_FANCY is not set -# CONFIG_WHICH is not set +CONFIG_WHICH=y # # klibc-utils diff --git a/rpm/busybox.spec b/rpm/busybox.spec index 52d3931..48da7a6 100644 --- a/rpm/busybox.spec +++ b/rpm/busybox.spec @@ -157,6 +157,20 @@ useful for recovering from certain types of system failures, particularly those involving broken shared libraries. This is the symlink implementing tar replacement. +%package symlinks-which +Requires: %{name} = %{version}-%{release} +Group: System/Shells +Summary: Busybox replacements for which +Provides: which = %{version} +Conflicts: util-linux <= 2.33+git1 + +%description symlinks-which +Busybox is a single binary which includes versions of a large number +of system commands, including a shell. This package can be very +useful for recovering from certain types of system failures, +particularly those involving broken shared libraries. This +is the symlink implementing which replacement. + %prep %setup -q -n %{name}-%{version}/upstream %patch0 -p1 @@ -265,3 +279,7 @@ install -m 644 -t %{buildroot}/%{_docdir}/%{name}-%{version} \ %defattr(-,root,root,-) %{_bindir}/tar /bin/tar + +%files symlinks-which +%defattr(-,root,root,-) +%{_bindir}/which