summaryrefslogtreecommitdiff
path: root/packaging/debugsource-package.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/debugsource-package.diff
parent4491550176b76280519a0c6482b4bf29b013fe51 (diff)
downloadrpm-bceda01e970b75fd3a50774e0324a6b18b195902.tar.gz
rpm-bceda01e970b75fd3a50774e0324a6b18b195902.tar.bz2
rpm-bceda01e970b75fd3a50774e0324a6b18b195902.zip
Diffstat (limited to 'packaging/debugsource-package.diff')
-rw-r--r--packaging/debugsource-package.diff10
1 files changed, 5 insertions, 5 deletions
diff --git a/packaging/debugsource-package.diff b/packaging/debugsource-package.diff
index f8e2dfe..998d9c4 100644
--- a/packaging/debugsource-package.diff
+++ b/packaging/debugsource-package.diff
@@ -29,7 +29,7 @@ Index: macros.in
+Summary: Debug sources for package %{name}\
+Group: Development/Debug\
+AutoReqProv: 0\
-+Requires: %{name}-debuginfo = %{version}-%{release}\
++Requires: %{name}-debuginfo = %{?epoch:%{epoch}:}%{version}-%{release}\
+%description debugsource\
+This package provides debug sources for package %{name}.\
+Debug sources are useful when developing applications that use this\
@@ -47,12 +47,12 @@ Index: scripts/find-debuginfo.sh
$strict || strict_error=WARNING
-# Strip ELF binaries
--find $RPM_BUILD_ROOT ! -path "${debugdir}/*.debug" -type f \( -perm +111 -or -name "*.so*" -or -name "*.ko" \) -print 0 | sort -z |
+-find $RPM_BUILD_ROOT ! -path "${debugdir}/*.debug" -type f \( -perm +111 -or -name "*.so*" -or -name "*.ko" \) -print |
+# Strip ELF binaries (and no static libraries)
-+find $RPM_BUILD_ROOT ! -path "${debugdir}/*.debug" -type f \( -perm +111 -or -name "*.so*" -or -name "*.ko" \) ! -name "*.a" -print0 | 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" \) ! -name "*.a" -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
@@ -300,10 +300,16 @@ if [ -d "${RPM_BUILD_ROOT}/usr/lib" -o -
(cd "${RPM_BUILD_ROOT}/usr"