English 中文(简体)
rpm build error
原标题:
  • 时间:2009-12-10 09:18:16
  •  标签:
  • build
  • rpm

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
问题回答

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.

In your spec you can do this at the top:

%define debug_package %{nil}

This should bypass this problem

I just hit this same problem when attempting to build on a RedHat 5.3 server. Here is what I found. The error appears to be caused by an empty RPM_BUILD_ROOT variable. Below is one offending line:

find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*.debug" -type f 
                 ( -perm -0100 -or -perm -0010 -or -perm -0001 ) 
                 -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 around $RPM_BUILD_ROOT, then command works fine since the first argument would become the "!". Since it s not required to define a "BuildRoot:" in the spec file, this certainly looks like a bug to me.





相关问题
Elegant way building url request with parameters

There must me a more elegant way to build a URL with parameters in .NET then for example Response.Write("<a href=HeadOfMarketView.aspx"+Session["HOM"] != null ? Session["HOM"]+">Head of Market&...

buildforge problem

when i tried to run the job i am getting the error saying that No server could be found matching all conditions please any one help me on this

您能否防止MSBuild.exe经营活动?

我用文字建造一些项目,偶尔利用习俗制造事件,给建筑系统造成了很大困难。 如果有可能,我想援引MSBuild.exe。

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Keyboard shortcut to build only startup project?

I ve tried to find a keyboard shortcut to build only the startup project In VS2008. I only found a configurable shortcut to build the project which is currently viewed, which isn t as good. Any ...

Dependency bundle (jar-files/sources/API docs) in Eclipse

I m developing various in-house extensions for JIRA, the issue tracker we use. So far I worked with Netbeans and everything worked like a charm. However, now I need to switch to Eclipse and I m ...

How to link to a static library in C?

I use code::blocks to compile my static library. The output result is a libstatic.a file. Now, how do I link to my library to use functions that were compiled? (I tried to use #include "libstatic.a"...

热门标签