]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- obsolete since 4.3 snaps... and broken
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 10 Jan 2004 18:18:36 +0000 (18:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-find-provides -> 1.4
    rpm-find-requires -> 1.11
    rpm-find-rpm-provides -> 1.2

rpm-find-provides [deleted file]
rpm-find-requires [deleted file]
rpm-find-rpm-provides [deleted file]

diff --git a/rpm-find-provides b/rpm-find-provides
deleted file mode 100644 (file)
index 72e4a9b..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-cd `rpm --eval %{_builddir}`
-
-# This script reads filenames from STDIN and outputs any relevant provides
-# information that needs to be included in the package.
-
-filelist=$(grep "\\.so" | grep -v "^/lib/ld.so" | xargs file -L 2>/dev/null | grep "ELF.*shared object" | cut -d: -f1)
-if [ -f __rpm_noautoprovfiles ] ; then
-       for i in `cat __rpm_noautoprovfiles`; do
-               filelist=`echo $filelist | sed "s![[:space:]]*$i[[:space:]]*!!g"`
-       done
-fi
-
-case `uname -m` in
-    alpha*)       mark64="" ;;
-    *)            mark64="()(64bit)" ;;
-esac
-    
-allprovides=`for f in $filelist; do
-    soname=$(objdump -p $f 2> /dev/null | awk '/SONAME/ {print $2}')
-
-    lib64=`if file -L $f 2>/dev/null | \
-       grep "ELF 64-bit" >/dev/null; then echo "$mark64"; fi`
-       
-    if [ "$soname" != "" ]; then
-        if [ ! -L $f ]; then
-            echo $soname$lib64
-           objdump -p $f 2> /dev/null | 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)`echo $lib64 | sed 's/()//'`"
-               done
-       fi
-    else
-       echo ${f##*/}$lib64
-    fi
-done | sort -u`
-
-if [ -f __rpm_noautoprov ] ; then
-       for i in `cat __rpm_noautoprov`; do
-               allprovides=`echo $allprovides | sed "s!\<$i[[:space:]]*!!g"`
-       done
-fi
-
-echo "$allprovides"
-
-
diff --git a/rpm-find-requires b/rpm-find-requires
deleted file mode 100755 (executable)
index 431d965..0000000
+++ /dev/null
@@ -1,118 +0,0 @@
-#!/bin/sh
-
-cd `rpm --eval %{_builddir}`
-
-# note this works for both a.out and ELF executables
-# it also auto-generates requirment lines for shell scripts
-
-ulimit -c 0
-
-filelist=`sed "s/['\"]/\\\&/g"`
-for i in /examples/ /doc/; do
-filelist=`echo $filelist | sed "s!\<[^[:space:]]*$i[^[:space:]]*[[:space:]]*!!g"`
-done
-if [ -f __rpm_noautoreqfiles ] ; then
-       for i in `cat __rpm_noautoreqfiles`; do
-               filelist=`echo $filelist | sed "s![[:space:]]*$i[[:space:]]*!!g"`
-       done
-fi
-
-# --- Alpha does not mark 64bit dependencies
-case `uname -m` in
-    alpha*)       mark64="" ;;
-    *)            mark64="()(64bit)" ;;
-esac
-    
-exelist=`echo $filelist | xargs -r file | grep ":.*executable" |grep -v ":.*script"| cut -d: -f1 `
-elfexelist=`echo $exelist | xargs -r file | egrep  ":.* ELF" | cut -d: -f1 `
-aoutexelist=`echo $exelist | xargs -r file | egrep  -v ":.* ELF" | cut -d: -f1 `
-scriptlist=`echo $filelist | xargs -r file | egrep ":.* (commands|script) .*executable" | cut -d: -f1 `
-liblist=`echo $filelist | xargs -r file | grep ":.*shared object" | cut -d : -f1 `
-elfliblist=`echo $liblist | xargs -r file | egrep  ":.* ELF" | cut -d: -f1 `
-aoutliblist=`echo $liblist | xargs -r file | egrep  -v ":.* ELF" | cut -d: -f1 `
-
-aoutexerequires=`for f in $aoutexelist; do
-       ldd $f | awk '/=>/ { print $1 }'
-done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | grep -v 'libNoVersion.so' | sort -u
-`
-
-elfexerequires=`for f in $elfexelist; do 
-       lib64=`if file -L $f 2>/dev/null | \
-               grep "ELF 64-bit" >/dev/null; then echo "$mark64"; fi`
-       objdump -p $f | awk -v lib64="$lib64" '/NEEDED/ {print $2 lib64}'
-done | sed "s/['\"]/\\\&/g" | grep -v 'libNoVersion.so' | sort -u
-`
-               
-aoutlibrequires=`for f in $aoutliblist; do
-    ldd $f | awk '/=>/ { print $1 }'
-done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | grep -v 'libNoVersion.so' | sort -u
-`
-
-elflibrequires=`for f in $elfliblist; do
-       lib64=`if file -L $f 2>/dev/null | \
-               grep "ELF 64-bit" >/dev/null; then echo "$mark64"; fi`
-       objdump -p $f | awk -v lib64="$lib64" '/NEEDED/ {print $2 lib64}'
-done | sed "s/['\"]/\\\&/g" | grep -v 'libNoVersion.so' | sort -u
-`
-
-scriptrequires=`for f in $scriptlist; do
-    if [ -x $f ]; then
-       head -1 $f | sed -ne '/^\#\!/p' | sed -e 's/^\#\![      ]*//' | cut -d" " -f1
-    fi
-done | sort -u
-`
-
-elflibverrequires=`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~/^GLIBC_*/) { print LIBNAME "(" $4 ")"; }
-       /^$/ { START=0; }
-    '
-done | sort -u
-`
-# Generate name of rpm package provides library
-
-allrequires="$aoutexerequires
-$elfexerequires
-$aoutlibrequires
-$elflibrequires
-$elflibverrequires"
-
-if [ -f __rpm_noautoreq ] ; then
-       for i in `cat __rpm_noautoreq`; do
-               scriptrequires=`echo $scriptrequires | sed "s!\<$i[[:space:]]*!!g"`
-               allrequires=`echo $allrequires | sed "s!\<$i[[:space:]]*!!g"`
-       done
-fi
-
-# omit autoreqdep for scriptrequires
-echo "$scriptrequires"
-
-# Delete all the provided stuff
-
-echo $filelist|/usr/lib/rpm/find-provides|awk '
-{
-       if (FNR!=1)
-               printf "&& "
-       printf "$0 !~ \"^" $0 "$\" "
-}
-END {
-       print "{ print $0 }"
-}' > .findreq_delprovs_$$
-notprovreqs=`echo "$allrequires"|awk -f .findreq_delprovs_$$`
-rm .findreq_delprovs_$$
-echo "$notprovreqs" | sort -u
-
-if [ -f __rpm_noautoreqdep ] ; then
-       for i in `cat __rpm_noautoreqdep`; do
-               notprovreqs=`echo $notprovreqs | sed "s!\<$i[[:space:]]*!!g"`
-       done
-fi
-
-echo "$notprovreqs" | LC_ALL=C xargs -r -- rpm -q --whatprovides --qf "%{NAME}\n"  2>/dev/null \
-       | grep -v "no package provides" | sort -u
diff --git a/rpm-find-rpm-provides b/rpm-find-rpm-provides
deleted file mode 100644 (file)
index dc9e1b4..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-# add rpm's obscured capabilities to rpm package
-
-filelist=`sed "s/['\"]/\\\&/g" | sed 's/^[[:space:]]*//g'`
-echo $filelist | /usr/lib/rpm/find-provides
-
-LOG=/tmp/logg
-
-for f in $filelist; do 
-    RPM=`echo $f | awk '/\/bin\/rpm$/ { print }'`
-    if [ ! -z $RPM ]; then
-       break
-    fi
-done
-
-if [ -z $RPM ]; then
-    exit 0;
-fi
-
-if [ ! -x $RPM ]; then
-    exit 1
-fi
-
-$RPM --rcfile="" --showrc | pgrep 'rpmlib\(.*?\)' | sed 's/^[[:space:]]*//g'
-
This page took 0.054005 seconds and 4 git commands to generate.