find-debuginfo-files: initial revision
This commit is contained in:
parent
818e61d012
commit
88e69e89fd
@ -938,6 +938,7 @@ AC_OUTPUT([ Doxyfile Makefile rpmrc macros platform rpmpopt
|
|||||||
scripts/files.req.files
|
scripts/files.req.files
|
||||||
scripts/find-lang
|
scripts/find-lang
|
||||||
scripts/find-package
|
scripts/find-package
|
||||||
|
scripts/find-debuginfo-files
|
||||||
scripts/find-scriptlet-requires
|
scripts/find-scriptlet-requires
|
||||||
scripts/fixup-binconfig
|
scripts/fixup-binconfig
|
||||||
scripts/fixup-libtool
|
scripts/fixup-libtool
|
||||||
|
@ -118,6 +118,7 @@
|
|||||||
%__find_provides @FINDPROVIDES@
|
%__find_provides @FINDPROVIDES@
|
||||||
%__find_requires @FINDREQUIRES@
|
%__find_requires @FINDREQUIRES@
|
||||||
%__find_scriptlet_requires @RPMCONFIGDIR@/find-scriptlet-requires
|
%__find_scriptlet_requires @RPMCONFIGDIR@/find-scriptlet-requires
|
||||||
|
%__find_debuginfo_files @RPMCONFIGDIR@/find-debuginfo-files
|
||||||
#%__find_prereq ???
|
#%__find_prereq ???
|
||||||
#%__find_conflicts ???
|
#%__find_conflicts ???
|
||||||
#%__find_obsoletes ???
|
#%__find_obsoletes ???
|
||||||
|
@ -455,6 +455,7 @@ fi
|
|||||||
%rpmattr %_rpmlibdir/find-lang
|
%rpmattr %_rpmlibdir/find-lang
|
||||||
%rpmattr %_rpmlibdir/find-provides
|
%rpmattr %_rpmlibdir/find-provides
|
||||||
%rpmattr %_rpmlibdir/find-requires
|
%rpmattr %_rpmlibdir/find-requires
|
||||||
|
%rpmattr %_rpmlibdir/find-debuginfo-files
|
||||||
%rpmattr %_rpmlibdir/find-scriptlet-requires
|
%rpmattr %_rpmlibdir/find-scriptlet-requires
|
||||||
%rpmattr %_rpmlibdir/fixup-*
|
%rpmattr %_rpmlibdir/fixup-*
|
||||||
%rpmattr %_rpmlibdir/files.*
|
%rpmattr %_rpmlibdir/files.*
|
||||||
|
@ -5,6 +5,7 @@ AUTOMAKE_OPTIONS = 1.4 foreign
|
|||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
posttrans-filetriggers 0ldconfig.filetrigger \
|
posttrans-filetriggers 0ldconfig.filetrigger \
|
||||||
functions find-package .provides.sh \
|
functions find-package .provides.sh \
|
||||||
|
find-debuginfo-files \
|
||||||
find-scriptlet-requires \
|
find-scriptlet-requires \
|
||||||
brp-adjust_libraries brp-alt brp-bytecompile_python \
|
brp-adjust_libraries brp-alt brp-bytecompile_python \
|
||||||
brp-cleanup brp-compress brp-debuginfo \
|
brp-cleanup brp-compress brp-debuginfo \
|
||||||
@ -35,6 +36,7 @@ config_DATA = .provides.sh 0common-files.req.list
|
|||||||
config_SCRIPTS = \
|
config_SCRIPTS = \
|
||||||
posttrans-filetriggers 0ldconfig.filetrigger \
|
posttrans-filetriggers 0ldconfig.filetrigger \
|
||||||
functions find-package \
|
functions find-package \
|
||||||
|
find-debuginfo-files \
|
||||||
find-scriptlet-requires \
|
find-scriptlet-requires \
|
||||||
brp-adjust_libraries brp-alt brp-bytecompile_python \
|
brp-adjust_libraries brp-alt brp-bytecompile_python \
|
||||||
brp-cleanup brp-compress brp-debuginfo \
|
brp-cleanup brp-compress brp-debuginfo \
|
||||||
|
30
scripts/find-debuginfo-files.in
Executable file
30
scripts/find-debuginfo-files.in
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/sh -efu
|
||||||
|
|
||||||
|
. @RPMCONFIGDIR@/functions
|
||||||
|
ValidateBuildRoot
|
||||||
|
|
||||||
|
cd "$RPM_BUILD_ROOT"
|
||||||
|
|
||||||
|
rm -rf .tmp
|
||||||
|
mkdir .tmp
|
||||||
|
|
||||||
|
>.tmp/src
|
||||||
|
|
||||||
|
while read -r f; do
|
||||||
|
f=${f#$RPM_BUILD_ROOT}
|
||||||
|
debugf=./usr/lib/debug$f.debug
|
||||||
|
if [ -L "$debugf" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
if [ -f "$debugf" ]; then
|
||||||
|
printf '%s\n' "${debugf#.}"
|
||||||
|
fi
|
||||||
|
if [ -f .debuginfo/links/"$debugf" ]; then
|
||||||
|
cat .debuginfo/links/"$debugf"
|
||||||
|
fi
|
||||||
|
if [ -s .debuginfo/src/"$debugf" ]; then
|
||||||
|
LC_ALL=C sort -m -u -o .tmp/src .tmp/src .debuginfo/src/"$debugf"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
cat .tmp/src
|
Loading…
Reference in New Issue
Block a user