summaryrefslogtreecommitdiff
path: root/autodeps
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-02-15 18:26:09 +0000
committerjbj <devnull@localhost>1999-02-15 18:26:09 +0000
commit5336a6f5e4de9a1b2ca67c80deb3009cee77a793 (patch)
treee636c297f8aaab7d049d0f7ec503d3882dab569d /autodeps
parent206a2b42ccc1f41ed2bb04bedd871d93945bfb74 (diff)
downloadlibrpm-tizen-5336a6f5e4de9a1b2ca67c80deb3009cee77a793.tar.gz
librpm-tizen-5336a6f5e4de9a1b2ca67c80deb3009cee77a793.tar.bz2
librpm-tizen-5336a6f5e4de9a1b2ca67c80deb3009cee77a793.zip
augment linux provides/requires for glibc 2.1 backward compatibility.
CVS patchset: 2790 CVS date: 1999/02/15 18:26:09
Diffstat (limited to 'autodeps')
-rw-r--r--autodeps/linux.prov10
-rw-r--r--autodeps/linux.req14
2 files changed, 24 insertions, 0 deletions
diff --git a/autodeps/linux.prov b/autodeps/linux.prov
index fd2f98748..472d786f8 100644
--- a/autodeps/linux.prov
+++ b/autodeps/linux.prov
@@ -11,6 +11,16 @@ for f in $filelist; do
if [ "$soname" != "" ]; then
if [ ! -L $f ]; then
echo $soname
+ objdump -p $f | awk '
+ BEGIN { START=0 ; }
+ /Version definitions:/ { START=1; }
+ /^[0-9]/ && (START==1) { print $4; }
+ /^$/ { START=0; }
+ ' | \
+ grep -v $soname | \
+ while read symbol ; do
+ echo "$soname($symbol)"
+ done
fi
else
echo ${f##*/}
diff --git a/autodeps/linux.req b/autodeps/linux.req
index cde32666e..9c69e11c2 100644
--- a/autodeps/linux.req
+++ b/autodeps/linux.req
@@ -25,3 +25,17 @@ for f in $scriptlist; do
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
+