summaryrefslogtreecommitdiffstats
path: root/find-provides-without-python-sonames.sh
diff options
context:
space:
mode:
authorMatej Stuchlik <mstuchli@redhat.com>2015-06-19 07:41:21 +0200
committerMatej Stuchlik <mstuchli@redhat.com>2015-06-19 07:41:21 +0200
commit2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71 (patch)
tree4069b0081d6490198bbb633cc85ae62a6a89dc53 /find-provides-without-python-sonames.sh
parentf5845b442d5e3c252df4de7d56bbafe3e8737613 (diff)
downloadpython34-2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71.tar.gz
python34-2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71.tar.xz
python34-2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71.zip
Initial import (#1219411)
Diffstat (limited to 'find-provides-without-python-sonames.sh')
-rwxr-xr-xfind-provides-without-python-sonames.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/find-provides-without-python-sonames.sh b/find-provides-without-python-sonames.sh
new file mode 100755
index 0000000..7a9e224
--- /dev/null
+++ b/find-provides-without-python-sonames.sh
@@ -0,0 +1,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