augment linux provides/requires for glibc 2.1 backward compatibility.
authorjbj <devnull@localhost>
Mon, 15 Feb 1999 18:26:09 +0000 (18:26 +0000)
committerjbj <devnull@localhost>
Mon, 15 Feb 1999 18:26:09 +0000 (18:26 +0000)
CVS patchset: 2790
CVS date: 1999/02/15 18:26:09

CHANGES
autodeps/linux.prov
autodeps/linux.req

diff --git a/CHANGES b/CHANGES
index f562d07..a87b711 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -7,6 +7,7 @@
        - added rpmtransSetScriptFd()
        - fixed config file problems during chroot upgrades
        - fixed %attr brokenness for directories
+       - augment linux provides/requires for glibc 2.1 backward compatibility.
 
 2.5.x -> 2.90
        - added --excludepath
index fd2f987..472d786 100644 (file)
@@ -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##*/}
index cde3266..9c69e11 100644 (file)
@@ -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
+