diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-09-08 17:49:24 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-09-12 22:31:08 +0200 |
commit | ca5b97da228627efcc4be82eaae016f68535f6d9 (patch) | |
tree | edf4b93d62d8f4cd9238c66acfd1aaea92668a7f /devel.prov | |
parent | 562b734c42ca3dc181f5f4cf4b9dff4a4e1265b0 (diff) | |
download | rpm-setup-ca5b97da228627efcc4be82eaae016f68535f6d9.tar rpm-setup-ca5b97da228627efcc4be82eaae016f68535f6d9.tar.gz rpm-setup-ca5b97da228627efcc4be82eaae016f68535f6d9.tar.bz2 rpm-setup-ca5b97da228627efcc4be82eaae016f68535f6d9.tar.xz rpm-setup-ca5b97da228627efcc4be82eaae016f68535f6d9.zip |
convert devel(foo) deps to internal generator
also kill X11R6 path btw (killed years ago)
Diffstat (limited to 'devel.prov')
-rw-r--r-- | devel.prov | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/devel.prov b/devel.prov new file mode 100644 index 0000000..2598585 --- /dev/null +++ b/devel.prov @@ -0,0 +1,16 @@ +#/bin/sh +# --- .so files. +# +filelist= +while read instfile ; do + filelist="$filelist $instfile" +done + +for i in `echo $filelist | tr '[:blank:]' "\n" | egrep '(/usr)?/lib(|64)(/gcc(-lib)?/.+)?/[^/]+\.so$'`; do + objd=`objdump -p ${i} | grep SONAME` + [ -h ${i} -a -n "${objd}" ] && \ + lib64=`if file -L $i 2>/dev/null | grep "ELF 64-bit" >/dev/null; then echo "(64bit)"; fi` && \ + echo ${objd} | perl -p -e "s/.*SONAME\s+(\S+)\.so.*/devel(\1$lib64)/g" +done | sort -u + + |