Rpm build error: Invalid Predicate

Source: Internet
Author: User


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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.