rpmbuild打包错误:*** ERROR: No build ID note found in ******
http://www.voidcn.com/article/p-pwqdfovv-bky.html

但是在rpmbuild -ba时,遇到如下错误:

*** ERROR: No build ID note found in /home/wuyang/rpmbuild/BUILDROOT/****** error: Bad exit status from /var/tmp/rpm-tmp.BPd1OI (%install)

解决方法是在.spec文件中任意位置添加如下参数: %define __debug_install_post
%{_rpmconfigdir}/find-debuginfo.sh %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}"
%{nil}


重新打包,即可。
 参考文章:(http://www.voidcn.com/article/p-owfaqzvv-qg.html)
[1. rpmbuild打包错误:*** ERROR: No build ID note found in ******
2. rpmbuild打包错误记录
3. 解决 rpmbuild 打包后安装错误
4. No Application ID has been found错误提示。
5. rpmbuild打包qwt
6. Linux no acceptable C compiler found in $PATH错误
7. junit4 junit.framework.AssertionFailedError: No tests found in错误
8. No setter found for property 'sessionFactory' in class错误
9. lucene 错误 no segments* file found in org.apache.lucene.store.FSDirectory@ write.lock
10. 用rpmbuild打包php