rpm build error: invalid predicate

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 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.

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=9f65cb4a8c8507ed4fece76310579135480ddd276b97844b22918448e435061e5a25a4ec66644b598f8461640baa4259ebf62b32755c37b7ed98cf1183ed852859df67742d5c92044f934fa08c0765d620e104b2ff0ee7cbb070ccb9d2a28b0f0f9c44040a97f0fd4d01649c38a05364f4a7e913490b4dadec4072ff2e6028ef621aa14788bb6e2a54dfad8b4b4cb268903647ccfe66f669&p=9a39de16d9c11be54bbd9b7d0c1c81&newp=9970c00497934eac59e7df2d021494231610db2151d4d11f34&user=baidu&fm=sc&query=/usr/lib/rpm/find-debuginfo.sh+invalid+predicate&qid=&p1=2

rpm build error: invalid predicate,布布扣,bubuko.com

时间: 2024-12-14 10:15:43

rpm build error: invalid predicate的相关文章

Hadoop build error java.lang.NoClassDefFoundError: org/sonatype/aether/graph/DependencyFilter

When running the command: + mvn site site:stage -DskipTests -DskipTest -DskipITs you get an error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on project hadoop-main: Execution default-site of goa

Android源码编译:出现zip error: Invalid command arguments解决办法

前段时间出版本编译的时候,偶然间发现了这个问题: zip error: Invalid command arguments (cannot repeat names in zip file) make: *** [out/target/product/k200_hdmiin/system/etc/recovery-resource.dat] Error 16 make: *** Waiting for unfinished jobs.... 背景介绍 博主目前从事AndroidTVBox开发,基

关于在xml文件中的 error: invalid symbol: 'switch' 错误

在xml布局文件中使用Switch控件时,出现error: invalid symbol: 'switch'报错,代码如下: <Switch android:id="@+id/switch" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textOn="开启" android:textOff="关

ruby环境sass编译中文出现Syntax error: Invalid GBK character错误解决方法

sass文件编译时候使用ruby环境,无论是界面化的koala工具还是命令行模式的都无法通过,真是令人烦恼. 容易出现中文注释时候无法编译通过,或者出现乱码,找了几天的解决方法终于解决了. 这个问题的奇葩之处在于在xp环境中没有任何问题,只是在windows7环境中才出现的这个. sass编译时候出现如下错误的解决方法: Syntax error: Invalid GBK character "\xE5" on line 8 of E:\work\sass\sass\_big_box.

mysql5.7下的timestampn Error : Invalid default value for &#39;timestamp&#39;

表格创建是爆了个错 Error : Invalid default value for 'timestamp' 参考:http://www.jb51.net/article/71107.htm 这版本导致的. mysql配置文件 mv /usr/local/mysql/suport-file/default-my.cnf /etc/my.cnf explicit_defaults_for_timestamp=1 http://www.shangxueba.com/jingyan/1609295.

JWPlayer Uncaught Error: Invalid SRT file

错误场景: JWPlayer 播放视频,添加了字幕和缩略图: 字幕为Srt格式: 1 00:00:00,000 --> 00:00:02,000 战略管理过程 2 00:00:03,000 --> 00:00:05,000 我们说战略管理过程也称作叫 3 00:00:06,000 --> 00:00:08,000 那么在战略管理过程当中涉及到 4 00:00:09,000 --> 00:00:11,000 战略分析战略选择和战略实施 5 00:00:12,000 --> 00

res\drawable-hdpi\new.png:0: error: invalid symbol: &#39;new&#39;错误原因是new是关键词呀

<ImageView android:id="@+id/new" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_margi

maven:log4j:WARN No appenders could be found for logger (loggerInfo).或者maven build error:org.apache.maven.lifecycle.LifecycleExecutionExceptio

maven在build构建时,加载资源文件时需要配置资源文件插件: 1,在pom.xml文件中加入 <build> <finalName>${project.build.target.file.name}</finalName> <directory>${basedir}/target</directory>  <sourceDirectory>${basedir}/src/main/java</sourceDirectory&

解决Project build error: Unknown packaging: apk

刚要开始尝试Maven 管理Android ,刚要觉得高大上,结果就掉进了一个坑,pom.xml 报错: Project build error: Unknown packaging: apk 看了眼基本上的意思就是,Maven说:"你这是什么鬼啊?!" 说白了,Maven不认识APK的包,恩......好了搜一下得到解决方案: 安装插件: http://rgladwell.github.com/m2e-android/updates/ (在线安装地址.) 顺道提一句,最后给Eclip