enable debug packages, etc.

This commit is contained in:
Elliot Lee 2002-11-22 18:56:01 +00:00
parent 53cca9f509
commit dce3663fe6
3 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,8 @@
# This script reads filenames from STDIN and outputs any relevant provides # This script reads filenames from STDIN and outputs any relevant provides
# information that needs to be included in the package. # information that needs to be included in the package.
[ -z "$OBJDUMP" ] && OBJDUMP=objdump
filelist=`sed "s/['\"]/\\\&/g"` filelist=`sed "s/['\"]/\\\&/g"`
solist=$(echo $filelist | grep "\\.so" | grep -v "^/lib/ld.so" | \ solist=$(echo $filelist | grep "\\.so" | grep -v "^/lib/ld.so" | \

View File

@ -15,6 +15,7 @@ if [ X"$1" = Xldd ]; then
elif [ X"$1" = Xobjdump ]; then elif [ X"$1" = Xobjdump ]; then
needed=1 needed=1
fi fi
[ -z "$OBJDUMP" ] && OBJDUMP=objdump
# #
# --- Grab the file manifest and classify files. # --- Grab the file manifest and classify files.
@ -94,7 +95,7 @@ for f in $liblist $exelist ; do
[ -r $f ] || continue [ -r $f ] || continue
lib64=`if file -L $f 2>/dev/null | \ lib64=`if file -L $f 2>/dev/null | \
grep "ELF 64-bit" >/dev/null; then echo "$mark64"; fi` grep "ELF 64-bit" >/dev/null; then echo "$mark64"; fi`
objdump -p $f | awk 'BEGIN { START=0; LIBNAME=""; needed='$needed'; } $OBJDUMP -p $f | awk 'BEGIN { START=0; LIBNAME=""; needed='$needed'; }
/^$/ { START=0; } /^$/ { START=0; }
/^Dynamic Section:$/ { START=1; } /^Dynamic Section:$/ { START=1; }
(START==1) && /NEEDED/ { (START==1) && /NEEDED/ {

2
macros
View File

@ -21,7 +21,7 @@
%_defaultdocdir %{_usr}/share/doc %_defaultdocdir %{_usr}/share/doc
#%_enable_debug_packages 1 %_enable_debug_packages 1
#============================================================================== #==============================================================================
# ---- configure and makeinstall. # ---- configure and makeinstall.