summaryrefslogtreecommitdiffstats
path: root/find-provides-without-python-sonames.sh
blob: 7a9e224bbf7da5bb946e657a5aed8fac9a2a44b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# The standard find-provides script
# adds provides lines for all SONAME directives in all shared libraries,
# even if those libraries are not in the LD_LIBRARY_PATH

# This leads to the rpm having a redundant Provides "foo.so" for all of the
# various foo.so Python c modules

# So we strip out all /usr/lib/python lines first, before running them through
# the standard script:
grep -v "/usr/lib/python" | grep -v "/usr/lib64/python" | \
    /usr/lib/rpm/redhat/find-provides

exit 0