enable debug packages, etc.
This commit is contained in:
parent
53cca9f509
commit
dce3663fe6
@ -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" | \
|
||||||
|
@ -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
2
macros
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user