fix 159117

This commit is contained in:
Elliot Lee 2005-06-10 17:19:17 +00:00
parent 1a959d38c8
commit 5fc6cf03a1
9 changed files with 67 additions and 4 deletions

View File

@ -10,5 +10,5 @@ for f in `find $RPM_BUILD_ROOT -type f \( -perm -0100 -or -perm -0010 -or -perm
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
grep -v ' shared object,' | \
sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do
$STRIP -g $f || :
$STRIP -g "$f" || :
done

View File

@ -19,5 +19,5 @@ for f in `find $RPM_BUILD_ROOT -type f \( -perm -0100 -or -perm -0010 -or -perm
grep ALLOC >/dev/null; then
note=
fi
$STRIP -R .comment $note $f || :
$STRIP -R .comment $note "$f" || :
done

View File

@ -16,5 +16,5 @@ for f in `find $RPM_BUILD_ROOT -type f -a -exec file {} \; | \
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
grep ' shared object,' | \
sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do
$STRIP --strip-unneeded $f
$STRIP --strip-unneeded "$f"
done

View File

@ -12,5 +12,5 @@ for f in `find $RPM_BUILD_ROOT -type f -a -exec file {} \; | \
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
grep 'current ar archive' | \
sed -n -e 's/^\(.*\):[ ]*current ar archive/\1/p'`; do
$STRIP -g $f
$STRIP -g "$f"
done

View File

@ -60,4 +60,9 @@ done | sort -u
[ -x /usr/lib/rpm/redhat/tcl.prov -a -n "$tcllist" ] &&
echo $tcllist | tr '[:blank:]' \\n | /usr/lib/rpm/redhat/tcl.prov | sort -u
#
# --- libtool
[ -x /usr/lib/rpm/redhat/find-provides.libtool ] &&
echo $filelist | tr '[:blank:]' \\n | /usr/lib/rpm/redhat/find-provides.libtool | sort -u
exit 0

10
find-provides.libtool Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
while read possible ; do
case "$possible" in
*.la)
if grep -iq '^# Generated by ltmain.sh' "$possible" 2> /dev/null ; then
echo "libtool($possible)"
fi
;;
esac
done

22
find-provides.pkgconfig Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash
pkgconfig=${1:-/usr/bin/pkg-config}
test -x $pkgconfig || exit 0
while read filename ; do
case "${filename}" in
*.pc)
# Assume that this file doesn't contain useful information.
needs_pkgconfig=false
# Query the dependencies of the package.
$pkgconfig --print-provides "$filename" 2> /dev/null | while read n r v ; do
# We have a dependency. Make a note that we need the pkgconfig
# tool for this package.
echo "pkgconfig($n)" "$r" "$v"
needs_pkgconfig=true
done
# The dependency on the pkgconfig package itself.
if $needs_pkgconfig ; then
echo pkgconfig
fi
;;
esac
done

15
find-requires.libtool Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
while read possible ; do
case "$possible" in
*.la)
for dep in `grep ^dependency_libs= "$possible" 2> /dev/null | \
sed -r -e "s,^dependency_libs='(.*)',\1,g"` ; do
case "$dep" in
/*.la)
echo "libtool($dep)"
;;
esac
done
;;
esac
done

11
find-requires.pkgconfig Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
pkgconfig=${1:-/usr/bin/pkg-config}
test -x $pkgconfig || exit 0
while read filename ; do
case "${filename}" in
*.pc)
$pkgconfig --print-requires "$filename" 2> /dev/null | while read n r v ; do
echo "pkgconfig($n)" "$r" "$v"
done
esac
done