From 3ef23ff0bfc2ac3cfe81148655bfcd028edb1400 Mon Sep 17 00:00:00 2001 From: Chanho Park Date: Wed, 3 Dec 2014 10:15:37 +0900 Subject: [PATCH] replace obsoleted "find -perm +NNN" syntax This patch is required when we use findutils-4.5.14 version. When we tried to upgrade the findutils to 4.5.14 version, I've got below error because the version of findutils obsoleted "find -perm +NNN". [ 146s] find: invalid mode '+111' [ 146s] error: Bad exit status from /var/tmp/rpm-tmp.5tcK7o (%install) I picked up this patch from openSUSE[1] to solve this problem. Origin: mail@bernhard-voelker.de - replace obsoleted "find -perm +NNN" syntax [bnc#842004] to "-perm /NNN" in debugsource-package.diff and finddebuginfo.diff. [1]: https://build.opensuse.org/request/show/200349 Change-Id: I38394427e4a806111550ad8ee560a448dd7a7307 Signed-off-by: Chanho Park --- scripts/find-debuginfo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh index c73f06b..efcc72e 100644 --- a/scripts/find-debuginfo.sh +++ b/scripts/find-debuginfo.sh @@ -237,7 +237,7 @@ strict_error=ERROR $strict || strict_error=WARNING # 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 | +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 -- 2.7.4