diff options
author | Slava Barinov <v.barinov@samsung.com> | 2020-05-07 11:45:28 +0300 |
---|---|---|
committer | Dongkyun Son <dongkyun.s@samsung.com> | 2020-05-07 11:41:06 +0000 |
commit | fc3c4a93a6e665927ec495cc52130fbb87e35c7c (patch) | |
tree | adbf4af01f2338a515c28593da26dbe9e49a6853 | |
parent | 6428714ec2f4a0aa2b3c3b2e1b81c2cedf06e8c6 (diff) | |
download | rpm-fc3c4a93a6e665927ec495cc52130fbb87e35c7c.tar.gz rpm-fc3c4a93a6e665927ec495cc52130fbb87e35c7c.tar.bz2 rpm-fc3c4a93a6e665927ec495cc52130fbb87e35c7c.zip |
scripts: Fix eu-strip for files with 'debug' in pathnametizen_6.0.m2_releasesubmit/tizen_base/20200604.081031submit/tizen_base/20200511.102732submit/tizen_base/20200507.115505submit/tizen_6.0_base_hotfix/20201102.162702submit/tizen_6.0_base_hotfix/20201030.192502submit/tizen_6.0_base/20201029.184802accepted/tizen/base/20200608.211044accepted/tizen/6.0/base/tool/hotfix/20201102.085444accepted/tizen/6.0/base/tool/hotfix/20201030.124344accepted/tizen/6.0/base/tool/20201029.111542accepted/tizen/6.0/base/20201029.105819tizen_6.0_base_hotfixaccepted/tizen_6.0_base_tool_hotfix
find-debuginfo.sh erroneously detected files with 'debug' in name as
files which do have debuginfo sections.
Change-Id: Ie18714130f2ee315cdabf56e521eb6f63cb98e8b
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
-rwxr-xr-x | scripts/find-debuginfo.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh index f2cc8b8f8..c5bb4196f 100755 --- a/scripts/find-debuginfo.sh +++ b/scripts/find-debuginfo.sh @@ -281,7 +281,7 @@ $strict || strict_error=WARNING 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' | while read nlinks inum f; do - case $(objdump -h $f 2>/dev/null | egrep -o '(debug[\.a-z_]*|gnu.version)') in + case $(objdump -h $f 2>/dev/null | sed -n '/^Sections:/,$p' | egrep -o '(debug[\.a-z_]*|gnu.version)') in *debuglink*) continue ;; *debug*) ;; *gnu.version*) |