summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanho Park <chanho61.park@samsung.com>2014-12-03 10:15:37 +0900
committerChanho Park <chanho61.park@samsung.com>2014-12-03 19:50:56 +0900
commit3ef23ff0bfc2ac3cfe81148655bfcd028edb1400 (patch)
tree9aa2152956acb3dd37a4b966e1227b84a49266a2
parentd962be480686977a9573650fe4b05c477d5d0eea (diff)
downloadrpm-3ef23ff0bfc2ac3cfe81148655bfcd028edb1400.tar.gz
rpm-3ef23ff0bfc2ac3cfe81148655bfcd028edb1400.tar.bz2
rpm-3ef23ff0bfc2ac3cfe81148655bfcd028edb1400.zip
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 <chanho61.park@samsung.com>
-rw-r--r--scripts/find-debuginfo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
index c73f06bf0..efcc72ed2 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