summaryrefslogtreecommitdiff
path: root/autodeps
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-06-17 20:18:08 +0000
committerjbj <devnull@localhost>1999-06-17 20:18:08 +0000
commit8fa7181fa3b0db8e282c03e8df251cb32518bfa3 (patch)
tree83f05c2655710ae43131b0e3d89ee4f12961afdf /autodeps
parenta5697afafd9f5c8e480c0f6052cf4885ce8af811 (diff)
downloadlibrpm-tizen-8fa7181fa3b0db8e282c03e8df251cb32518bfa3.tar.gz
librpm-tizen-8fa7181fa3b0db8e282c03e8df251cb32518bfa3.tar.bz2
librpm-tizen-8fa7181fa3b0db8e282c03e8df251cb32518bfa3.zip
eliminate find-requirements on libNoVersion (Red Hat linux only).
add new-fangled requires on "libc.so.6(GLIBC_2.1)" (sparc-linux only). CVS patchset: 3095 CVS date: 1999/06/17 20:18:08
Diffstat (limited to 'autodeps')
-rw-r--r--autodeps/linux.req5
-rw-r--r--autodeps/sparc-linux.req15
2 files changed, 16 insertions, 4 deletions
diff --git a/autodeps/linux.req b/autodeps/linux.req
index 9c69e11c2..ad4d88488 100644
--- a/autodeps/linux.req
+++ b/autodeps/linux.req
@@ -18,7 +18,7 @@ done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | sort -u
for f in $liblist; do
ldd $f | awk '/=>/ { print $1 }'
-done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | sort -u
+done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | grep -v 'libNoVersion.so' | sort -u
for f in $scriptlist; do
if [ -x $f ]; then
@@ -37,5 +37,4 @@ for f in $liblist $exelist ; do
(START==1) && (LIBNAME!="") && ($4!="") { print LIBNAME "(" $4 ")"; }
/^$/ { START=0; }
'
-done
-
+done | sort -u
diff --git a/autodeps/sparc-linux.req b/autodeps/sparc-linux.req
index d2f922e52..66efb5b6f 100644
--- a/autodeps/sparc-linux.req
+++ b/autodeps/sparc-linux.req
@@ -18,10 +18,23 @@ done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | grep -v '4[um]l
for f in $liblist; do
ldd $f | awk '/=>/ { print $1 }'
-done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | grep -v '4[um]lib.so' | sort -u
+done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | grep -v 'libNoVersion.so' | grep -v '4[um]lib.so' | sort -u
for f in $scriptlist; do
if [ -x $f ]; then
head -1 $f | sed -e 's/^\#\![ ]*//' | cut -d" " -f1
fi
done | sort -u
+
+for f in $liblist $exelist ; do
+ objdump -p $f | awk '
+ BEGIN { START=0; LIBNAME=""; }
+ /Version References:/ { START=1; }
+ /required from/ && (START==1) {
+ sub(/:/, "", $3);
+ LIBNAME=$3;
+ }
+ (START==1) && (LIBNAME!="") && ($4!="") { print LIBNAME "(" $4 ")"; }
+ /^$/ { START=0; }
+ '
+done | sort -u