diff options
author | jk7744.park <jk7744.park@samsung.com> | 2015-09-09 02:33:51 +0900 |
---|---|---|
committer | jk7744.park <jk7744.park@samsung.com> | 2015-09-09 02:33:51 +0900 |
commit | bceda01e970b75fd3a50774e0324a6b18b195902 (patch) | |
tree | e28f92e86b754456903475ffd6a176c88fa97fc2 /packaging/debugsource-package.diff | |
parent | 4491550176b76280519a0c6482b4bf29b013fe51 (diff) | |
download | rpm-bceda01e970b75fd3a50774e0324a6b18b195902.tar.gz rpm-bceda01e970b75fd3a50774e0324a6b18b195902.tar.bz2 rpm-bceda01e970b75fd3a50774e0324a6b18b195902.zip |
tizen 2.3.1 releasetizen_2.3.1_releasesubmit/tizen_2.3.1/20150915.100840tizen_2.3.1
Diffstat (limited to 'packaging/debugsource-package.diff')
-rw-r--r-- | packaging/debugsource-package.diff | 10 |
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" |