summaryrefslogtreecommitdiff
path: root/packaging/finddebuginfo.diff
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-09-09 02:33:51 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-09-09 02:33:51 +0900
commitbceda01e970b75fd3a50774e0324a6b18b195902 (patch)
treee28f92e86b754456903475ffd6a176c88fa97fc2 /packaging/finddebuginfo.diff
parent4491550176b76280519a0c6482b4bf29b013fe51 (diff)
downloadrpm-bceda01e970b75fd3a50774e0324a6b18b195902.tar.gz
rpm-bceda01e970b75fd3a50774e0324a6b18b195902.tar.bz2
rpm-bceda01e970b75fd3a50774e0324a6b18b195902.zip
Diffstat (limited to 'packaging/finddebuginfo.diff')
-rw-r--r--packaging/finddebuginfo.diff10
1 files changed, 5 insertions, 5 deletions
diff --git a/packaging/finddebuginfo.diff b/packaging/finddebuginfo.diff
index 3d1245e..e3bf4d5 100644
--- a/packaging/finddebuginfo.diff
+++ b/packaging/finddebuginfo.diff
@@ -39,17 +39,17 @@
- -print |
-file -N -f - | sed -n -e 's/^\(.*\):[ ]*.*ELF.*, not stripped/\1/p' |
-xargs --no-run-if-empty stat -c '%h %D_%i %n' |
-+find $RPM_BUILD_ROOT ! -path "${debugdir}/*.debug" -type f \( -perm +111 -or -name "*.so*" -or -name "*.ko" \) -print 0 | sort -z |
-+xargs --no-run-if-empty -0 stat -c '%h %D_%i %n' |
++find $RPM_BUILD_ROOT ! -path "${debugdir}/*.debug" -type f \( -perm +111 -or -name "*.so*" -or -name "*.ko" \) -print |
++file -N -f - | sed -n -e 's/^\(.*\):[ ]*.*ELF.*, not stripped/\1/p' |
++xargs --no-run-if-empty stat -c '%h %D_%i %n' |
while read nlinks inum f; do
+ case $(objdump -h $f 2>/dev/null | egrep -o '(debug[\.a-z_]*|gnu.version)') in
+ *debuglink*) continue ;;
+ *debug*) ;;
+ *gnu.version*)
-+ echo "WARNING: "`echo $f | sed -e "s,^$RPM_BUILD_ROOT/*,/,"`" is already stripped!"
-+ continue
++ echo "WARNING: "`echo $f | sed -e "s,^$RPM_BUILD_ROOT/*,/,"`" has no debug info!"
+ ;;
-+ *) continue ;;
++ *) ;;
+ esac
get_debugfn "$f"
[ -f "${debugfn}" ] && continue