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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With