diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-10-17 15:00:01 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-10-17 15:00:01 +0300 |
commit | cbbb03e3a34d492a7163f5a02f77b7e806702b41 (patch) | |
tree | 836ddcee45c256376bf8ef89f0aeaf9712e36153 /scripts | |
parent | 927f384a9bc058eb6f954e93cc515cc1293fd2a3 (diff) | |
download | librpm-tizen-cbbb03e3a34d492a7163f5a02f77b7e806702b41.tar.gz librpm-tizen-cbbb03e3a34d492a7163f5a02f77b7e806702b41.tar.bz2 librpm-tizen-cbbb03e3a34d492a7163f5a02f77b7e806702b41.zip |
Trash the horrible brp-sparc64-linux hack from the ancient past
- kludgery like this might've been necessary back in 2000 to get started
with multilib setup but it certainly isn't needed now
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.am | 2 | ||||
-rw-r--r-- | scripts/brp-sparc64-linux | 41 |
2 files changed, 1 insertions, 42 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 3af78429b..aadacc54c 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -24,7 +24,7 @@ EXTRA_DIST = \ rpmconfig_SCRIPTS = \ brp-compress brp-python-bytecompile brp-java-gcjcompile \ brp-strip brp-strip-comment-note \ - brp-strip-shared brp-strip-static-archive brp-sparc64-linux \ + brp-strip-shared brp-strip-static-archive \ check-files check-prereqs \ check-buildroot check-rpaths check-rpaths-worker \ find-lang.sh \ diff --git a/scripts/brp-sparc64-linux b/scripts/brp-sparc64-linux deleted file mode 100644 index 5e511b3ce..000000000 --- a/scripts/brp-sparc64-linux +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -# If using normal root, avoid changing anything. -if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then - exit 0 -fi -files= -LC_ALL= -LANG= - -# Move 64bit ELF objects from /lib, /usr/lib, /usr/X11R6/lib to */lib64 -# directories - -for f in `find $RPM_BUILD_ROOT{,/usr,/usr/X11R6}/lib -maxdepth 1 -type f -o -type l 2>/dev/null`; do - ff=$f - while [ -L $ff ]; do - l=`ls -l $ff | awk '{ print $11 }'` - case $l in - /*) ff=$RPM_BUILD_ROOT$l ;; - *) ff=`dirname $ff`/$l ;; - esac - done - if file $ff 2>/dev/null | grep ': ELF 64-bit .SB' | grep -v ': ELF 64-bit .SB executable' > /dev/null; then - files="$files $f" - elif file $ff 2>/dev/null | grep 'ar archive' > /dev/null; then - if objdump -h $ff 2>/dev/null | grep ':[ ]*file format elf64-sparc' > /dev/null; then - files="$files $f" - fi - fi -done -for f in $files; do - d=`dirname $f` - n=`basename $f` - if [ ! -d ${d}64 ]; then mkdir -p ${d}64; fi - if [ -L $f ]; then - l=`ls -l $f | awk '{ print $11 }' | sed 's_lib\(/[^/]*\)$_lib64\1_'` - ln -sf $l ${d}64/$n - rm -f $f - else - mv -f $f ${d}64/$n - fi -done |