Rpm build Error
Error message:
/Usr/lib/RPM/find-debuginfo.sh/usr/src/RedHat/build/RPMS
Find: Invalid predicate ''error: Bad exit status from/var/tmp/rpm-tmp.86590 (% install)
The error appears to be caused by an empty rpm_build_root variable. below is one offending line:
1 find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*.debug" -type f 2 \( -perm -0100 -or -perm -0010 -or -perm -0001 \) 3 -print |
If rpm_build_root hasn't been defined, then the first argument to find is an empty string "", which causes this error. interestingly enough, if you remove the quotes from und $ rpm_build_root, then command works fine since the first argument wocould become "! ". Since it's not required to define a" buildroot: "In the spec file, this certainly looks like a bug to me.
Solutions:
1. Try defining the buildroot variable in the spec file.
The find-debuginfo script looks in to that directory several times, and will die without it.
This will usually look something like: buildroot: % {_ tmpdir}/% {name}-% {version}-% {release}
2.% define debug_package % {nil}
References: http://cache.baiducontent.com/C? M = Clerk & P = 9a39de16d9c11be54bbd9b7d0c1c81 & newp = Clerk & User = Baidu & fm = SC & query =/usr/lib/RPM/find-debuginfo.sh + invalid + Predicate & qid = & p1 = 2