Remove scripts/rpm2dynsym.sh

Message ID alpine.DEB.2.10.1510061632250.21786@digraph.polyomino.org.uk
State Committed
Headers

Commit Message

Joseph Myers Oct. 6, 2015, 4:33 p.m. UTC
  The file scripts/rpm2dynsym.sh appears to be unused anywhere in glibc;
it's some sort of helper script for use by packagers on (not
necessarily glibc) packages.  I don't think it's useful for glibc to
contain such essentially unconnected scripts - packagers wanting it
can maintain it elsewhere, and in any case I think there's better
technology now for tracking ABIs of shared libraries.  This patch
removes this script.

Tested for x86_64 and x86 (testsuite, and that installed shared
libraries are unchanged by the patch).

2015-10-06  Joseph Myers  <joseph@codesourcery.com>

	* scripts/rpm2dynsym.sh: Remove file.
  

Comments

Roland McGrath Oct. 6, 2015, 6:25 p.m. UTC | #1
It was used to extract retrospective ABI baselines from past-release
binaries when the .abilist file checking was new.  Since we have all
the old baselines in now, it's unlikely to be useful in the future.
It's fine to remove it now.
  

Patch

diff --git a/scripts/rpm2dynsym.sh b/scripts/rpm2dynsym.sh
deleted file mode 100755
index ce3fc40..0000000
--- a/scripts/rpm2dynsym.sh
+++ /dev/null
@@ -1,36 +0,0 @@ 
-#!/bin/sh
-
-# This script takes rpm package files, finds *.so.N files in them,
-# and runs objdump --dynamic-syms on them.  The arguments are rpm file
-# names.  For each rpm, it creates an output file with the name
-# "NAME-VERSION-RELEASE.ARCH.dynsym", the variable parts being extracted
-# from the rpm's headers (not its file name).  Each file contains the
-# collected objdump output for all the *.so.N files in the corresponding rpm.
-# This can be processed with abilist.awk or sent to someone who will do that.
-# This does not do a lot of error-checking, so you should always watch stderr
-# and sanity-check the resulting output files.
-
-RPM=${RPM:-rpm}
-RPM2CPIO=${RPM2CPIO:-rpm2cpio}
-CPIO=${CPIO:-cpio}
-OBJDUMP=${OBJDUMP:-objdump}
-
-unpackdir=/tmp/rpm2dynsym$$
-trap 'rm -rf $unpackdir' 0 1 2 15
-
-for rpm; do
-  name=`$RPM -qp $rpm --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n'`
-  mkdir $unpackdir || exit
-  $RPM2CPIO "$rpm" | {
-    cd $unpackdir
-    $CPIO -i -d --no-absolute-filenames -uv '*.so.*' '*.so' 2>&1 |
-    while read file b; do
-      test x"$b" = x || break
-      case "$file" in
-      *.so.[0-9]*) $OBJDUMP --dynamic-syms $file ;;
-      esac
-    done
-  } > $name.dynsym
-  echo wrote $name.dynsym for $rpm
-  rm -rf $unpackdir
-done