rpmbuild之check-rpaths的问题

原创 2016年08月29日 17:26:31
'[' '%{buildarch}' = noarch ']'
+ QA_CHECK_RPATHS=1
+ case "${QA_CHECK_RPATHS:-}" in
+ /usr/lib/rpm/check-rpaths
*******************************************************************************
*
* WARNING: 'check-rpaths' detected a broken RPATH and will cause 'rpmbuild'
*          to fail. To ignore these errors, you can set the '$QA_RPATHS'
*          environment variable which is a bitmask allowing the values
*          below. The current value of QA_RPATHS is 0x0011.
*
*    0x0001 ... standard RPATHs (e.g. /usr/lib); such RPATHs are a minor
*               issue but are introducing redundant searchpaths without
*               providing a benefit. They can also cause errors in multilib
*               environments.
*    0x0002 ... invalid RPATHs; these are RPATHs which are neither absolute
*               nor relative filenames and can therefore be a SECURITY risk
*    0x0004 ... insecure RPATHs; these are relative RPATHs which are a
*               SECURITY risk
*    0x0008 ... the special '$ORIGIN' RPATHs are appearing after other
*               RPATHs; this is just a minor issue but usually unwanted
*    0x0010 ... the RPATH is empty; there is no reason for such RPATHs
*               and they cause unneeded work while loading libraries
*    0x0020 ... an RPATH references '..' of an absolute path; this will break
*               the functionality when the path before '..' is a symlink
*
*
* Examples:
* - to ignore standard and empty RPATHs, execute 'rpmbuild' like
*   $ QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild my-package.src.rpm
* - to check existing files, set $RPM_BUILD_ROOT and execute check-rpaths like
*   $ RPM_BUILD_ROOT=<top-dir> /usr/lib/rpm/check-rpaths
*
*******************************************************************************
ERROR   0002: file '' contains an invalid rpath '' in []
ERROR   0002: file '' contains an invalid rpath '' in []
ERROR   0002: file '' contains an invalid rpath '' in []
错误:/var/tmp/rpm-tmp.0yqpeS (%install) 退出状态不好


RPM 构建错误:
    /var/tmp/rpm-tmp.0yqpeS (%install) 退出状态不好



#   解决方案:
#   vi ~/.rpmmacros
#   comment this out
#   case "${QA_CHECK_RPATHS:-}" in [1yY]*) /usr/lib/rpm/check-rpaths ;; esac \

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

rpmbuild编译一个软件时如何加入自己的补丁patch

场景 有许些时候,服务源没有平台的软件,需下载一个SRC的源码包,重新制作,但有时在制作的过程中涉及修改src的源码,怎么办?直接修改BUILD下的源码显然是不可以的,因为每次执行  rpmbuild...

CEPH CRUSH 算法源码分析 原文CEPH CRUSH algorithm source code analysis

原文地址 CEPH CRUSH algorithm source code analysis http://www.shalandis.com/original/2016/05/19/CEPH-...

您能看出这个Double Check里的问题吗?(解答)

问题请参考:您能看出这个Double Check里的问题吗? 已经很有很多朋友得到了结果,是由于m_categories过早初始化,而导致double check的验证条件被破坏(或者说,满足)...

clearcase check in时遇到Evil Twin found问题

当文件mkelement的时候遇到Evil Twin found问题 c mkelem -c "DR-2-210-643" PROJ_RC_CHANGE_HISTORY.table tables@...

给本地openwrt/LEDE软件源添加软件包,更新Package.sig签名文件,解决Signature check failed问题

解决更新openwrt/LEDE本地源服务器后Signature check failed问题

【BZOJ1052】【HAOI2007】覆盖问题 二分+深搜check

题解:乱搞。 就是搜每个正方形的位置(一定在一个角,证明自己想想吧,很容易但是不算太好写) 代码: #include #include #include #include #de...

关于Inline hook check的一些想法与问题

这东西弄了近一周才有点眉目,网络上的资料不是很多。爆搜百度google好久还是发现有一点点资料的: 1.rootkits那本书讲了一点,不过那个太挫了,检测了跟没检测一样。就是搜e9 e8判断跳转模...

check not complete问题

解决项目数据库问题,记录如下:         问题原因:         总的来说这个数据问题主要是日志切换频繁导致脏块来不及写入数据文件,以至于数据库hang住; &...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)