Blame find-provides-without-python-sonames.sh
|
Matej Stuchlik |
2c1c983 |
#!/bin/bash
|
|
Matej Stuchlik |
2c1c983 |
|
|
Matej Stuchlik |
2c1c983 |
# The standard find-provides script
|
|
Matej Stuchlik |
2c1c983 |
# adds provides lines for all SONAME directives in all shared libraries,
|
|
Matej Stuchlik |
2c1c983 |
# even if those libraries are not in the LD_LIBRARY_PATH
|
|
Matej Stuchlik |
2c1c983 |
|
|
Matej Stuchlik |
2c1c983 |
# This leads to the rpm having a redundant Provides "foo.so" for all of the
|
|
Matej Stuchlik |
2c1c983 |
# various foo.so Python c modules
|
|
Matej Stuchlik |
2c1c983 |
|
|
Matej Stuchlik |
2c1c983 |
# So we strip out all /usr/lib/python lines first, before running them through
|
|
Matej Stuchlik |
2c1c983 |
# the standard script:
|
|
Matej Stuchlik |
2c1c983 |
grep -v "/usr/lib/python" | grep -v "/usr/lib64/python" | \
|
|
Matej Stuchlik |
2c1c983 |
/usr/lib/rpm/redhat/find-provides
|
|
Matej Stuchlik |
2c1c983 |
|
|
Matej Stuchlik |
2c1c983 |
exit 0
|