禁用rpmbuild自动需求查找 [英] Disable rpmbuild automatic requirement finding

查看:486
本文介绍了禁用rpmbuild自动需求查找的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

rpmbuild的默认行为似乎是扫描buildroot中的每个文件#!并将这些解释器添加为严格要求。是否可以禁用这个?我遇到了一种情况,人们提交#!/ path /到/ local / install / of / something的脚本,这个需求正在嵌入到rpm。

The default behavior of rpmbuild seems to be to scan every file in the buildroot for #! lines and add those interpreters as hard requirements. Is it possible to disable this? I've run into a situation where people are committing scripts with #!/path/to/local/install/of/something and that requirement is becoming embedded in the rpm.

我找不到一个命令行或spec文件选项,抑制这种行为。希望我只是没有看起来很难。

I haven't been able to find a command line or spec file option that suppresses this behavior. Hopefully I just didn't look hard enough.

推荐答案

我认为这个问题有一个答案在 rpm在哪里查找依赖关系。至少 AutoReqProv:no 禁用扫描,然后您需要手动 Requires:xxx values;不是最少的工作解决方案,而是一个解决方案。我还会猜想像 .rpmmacros 有一个方法可以禁用脚本扫描。看看 / usr / lib / rpm / find-requires

I think the question has an answer in Where does rpm look for dependencies. At least AutoReqProv: no disables scanning and then you would need manual Requires: xxx values; not the least work solution, but a solution. I would also guess that something like .rpmmacros has a way to disable the script scanning. Take a look at /usr/lib/rpm/find-requires.

这篇关于禁用rpmbuild自动需求查找的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆