diff options
author | Slava Barinov <v.barinov@samsung.com> | 2020-03-04 09:41:24 +0300 |
---|---|---|
committer | Slava Barinov <v.barinov@samsung.com> | 2020-03-04 09:41:24 +0300 |
commit | 6428714ec2f4a0aa2b3c3b2e1b81c2cedf06e8c6 (patch) | |
tree | 3bf69247aea90deed2eec53781cc68b77562aef2 | |
parent | b9f36ab5c6a91132b78c261b645efd279b90d61f (diff) | |
download | rpm-6428714ec2f4a0aa2b3c3b2e1b81c2cedf06e8c6.tar.gz rpm-6428714ec2f4a0aa2b3c3b2e1b81c2cedf06e8c6.tar.bz2 rpm-6428714ec2f4a0aa2b3c3b2e1b81c2cedf06e8c6.zip |
Filter out all debug files not starting with current package namesubmit/tizen_base/20200306.122724submit/tizen_base/20200305.112253accepted/tizen/base/20200309.015355
This removes errors like
cpio: glibc-2.24/csu: Cannot stat: No such file or directory
Change-Id: Ib1a710b72a44be4bc5fd2e6871ef277c66068149
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
-rwxr-xr-x | scripts/find-debuginfo.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh index e4fffe4b5..f2cc8b8f8 100755 --- a/scripts/find-debuginfo.sh +++ b/scripts/find-debuginfo.sh @@ -384,7 +384,11 @@ done || exit if [ -s "$SOURCEFILE" ]; then mkdir -p "${RPM_BUILD_ROOT}/usr/src/debug" + # Get package name from directory and then filter out all files not + # starting with this name + pn=$(basename "$BUILDDIR") LC_ALL=C sort -z -u "$SOURCEFILE" | grep -E -v -z '(<internal>|<built-in>)$' | + grep -E -z "^${pn}" | (cd "$RPM_BUILD_DIR"; cpio -pd0mL "${RPM_BUILD_ROOT}/usr/src/debug") # stupid cpio creates new directories in mode 0700, fixup find "${RPM_BUILD_ROOT}/usr/src/debug" -type d -print0 | |