Imported Upstream version 4.14.1
[platform/upstream/rpm.git] / scripts / brp-strip-comment-note
index 323c041..833ac78 100755 (executable)
@@ -16,7 +16,7 @@ esac
 # for already stripped elf files in the build root
 for f in `find "$RPM_BUILD_ROOT" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
         grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug"  | \
-       sed -n -e 's/^\(.*\):[  ]*ELF.*, stripped/\1/p'`; do
+       sed -n -e 's/^\(.*\):[  ]*ELF.*, stripped.*/\1/p'`; do
        note="-R .note"
        if $OBJDUMP -h $f | grep '^[    ]*[0-9]*[       ]*.note[        ]' -A 1 | \
                grep ALLOC >/dev/null; then