Disable rpmbuild automatic requirement finding

前端 未结 1 1312
误落风尘
误落风尘 2021-01-18 08:22

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

1条回答
  •  野的像风
    2021-01-18 08:53

    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.

    0 讨论(0)
提交回复
热议问题