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

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

问题描述

rpmbuild 的默认行为似乎是扫描 buildroot 中的每个文件以查找 #!行并将这些解释器添加为硬性要求.是否可以禁用此功能?我遇到过一种情况,人们使用 #!/path/to/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.

我找不到抑制这种行为的命令行或规范文件选项.希望我只是看起来不够努力.

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 值;不是最不工作的解决方案,而是一个解决方案.我也猜想像 .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天全站免登陆