63c57dca19
Don't depend on libcrypto from the multicall binary in the coreutils-single package, because that trades space for speed. Don't depend on libgmp from the multicall binary in the coreutils-single package, because that only benefits factor and expr. The large size of gmp is not seen as an appropriate tradeoff for this functionality. Note also there is reduced startup overhead for all tools with these removed due to not linking with the shared libs.
26 lines
701 B
Bash
Executable File
26 lines
701 B
Bash
Executable File
#!/bin/sh -
|
|
# Reduce requires for coreutils-single
|
|
# Needed since it has overlapping "binaries" with the main package
|
|
# Ideally we could do the following in the spec only for the single subpackage
|
|
# %define __requires_exclude_from ^(%{_bindir}|%{_sbindir})/([^c]|c[^o]|co[^r]|cor[^e])
|
|
|
|
original_find_requires="$1"
|
|
shift
|
|
|
|
# Get the list of files.
|
|
files=`sed "s/['\"]/\\\&/g"`
|
|
|
|
single_bin='/usr/bin/coreutils'
|
|
|
|
single=`echo $files | grep "$single_bin"`
|
|
|
|
echo $files | tr [:blank:] '\n' |
|
|
if [ "$single" ]; then
|
|
# Only allow the coreutils multicall binary
|
|
# Also adjust for .single renaming
|
|
sed -n 's|\(.*'"$single_bin"'\)\(.single\)\?$|\1.single|p'
|
|
else
|
|
cat
|
|
fi |
|
|
$original_find_requires
|