tags:

views:

415

answers:

2

Hi I tried to build a rpm package which is giving me the following error

  • /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) what could be the reason .can any one help me in this...Thanks
A: 

Try defining the BuildRoot variable in your 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}

As to your second question, I can't say without seeing spec file and sources directly, and I am by no means an RPM expert. I will recommend you to Chapter 13 of Maximum RPM(there are copies available free online), and the notes from Tom Callaway's presentation on How to make good RPM packages - I've found the spec examples here to be very helpful in the past.

zerosquid
A: 

Hi, Thank you so much .Now i am able to build. But one error i 'm getting if i try to build a relocatable package.If i add Prefix=/usr it is giving me files must start with "/". In the files section all the files start with /usr only.Any suggestion.

newsen