diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-07-25 17:02:09 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-07-25 17:02:09 +0000 |
commit | 7fb8fa5c3839befe2eed4890c6bf4df0da188958 (patch) | |
tree | 13b62b177920b9473321f779b08105fbf0a05ab2 | |
parent | 24110a7693b1d1f2144e3c282a5f1ca329fc244d (diff) | |
download | rpm-setup-7fb8fa5c3839befe2eed4890c6bf4df0da188958.tar rpm-setup-7fb8fa5c3839befe2eed4890c6bf4df0da188958.tar.gz rpm-setup-7fb8fa5c3839befe2eed4890c6bf4df0da188958.tar.bz2 rpm-setup-7fb8fa5c3839befe2eed4890c6bf4df0da188958.tar.xz rpm-setup-7fb8fa5c3839befe2eed4890c6bf4df0da188958.zip |
drop automatically generated dependencies on interpreters we either don't
need dependencies on or that we have other dedicated dependency generators
for making them duplicate, reducing ~5K packages' dependencies at
next rebuild (from Per Oyvind, mdv).
-rw-r--r-- | NEWS | 4 | ||||
-rwxr-xr-x | find-requires.in | 20 |
2 files changed, 22 insertions, 2 deletions
@@ -1,3 +1,7 @@ +- drop automatically generated dependencies on interpreters we either don't + need dependencies on or that we have other dedicated dependency generators + for making them duplicate, reducing ~5K packages' dependencies at + next rebuild. (Per Oyvind, mdv) - drop automatically generated rtld(GNU_HASH) dependencies, it's been provided by glibc for five years now and can safely be assumed that there's no longer any need for it, reducing ~8K packages' dependency on it during next rebuild. diff --git a/find-requires.in b/find-requires.in index b3a2b5f..6d742e5 100755 --- a/find-requires.in +++ b/find-requires.in @@ -116,9 +116,25 @@ uniqdeplist+="$tmpdeplist" for f in $scriptlist; do [ -r $f -a -x $f ] || continue interp=`head -n 1 $f | grep '^#!' | sed -e 's/^\#\![ ]*//' | cut -d" " -f1` - interplist="$interplist $interp" case $interp in - */perl) perllist="$perllist $f" ;; + # we really don't need to add these dependencies as they're required by + # glibc and therefore guaranteed to be satisfied + */sh|*/bash) + continue + ;; + # we already have dedicated dependency generators for these + */python) + pythonlist="$pythonlist $f" + ;; + */perl) + perllist="$perllist $f" + ;; + */ruby) + rubylist="$rubylist $f" + ;; + *) + interplist="$interplist $interp" + ;; esac done if [ -n "$interplist" ]; then |