rpmdeps: find requires for scripts with env shebang

Orion Poplawski orion at cora.nwra.com
Wed Jun 15 19:50:43 UTC 2016

On 06/15/2016 11:54 AM, Stephano Cetola wrote:
> I'm working on getting rpmdeps to return a "Requires" result for scripts
> with "/usr/bin/env python" (more descriptive than the current result of
> "Requires:/usr/bin/env"). I've looked over rpmfcSCRIPT and I have some
> ideas on how to remedy the issue.
> Is this something that would be of interest, or is there any way I could
> bend this project to your needs?
> Cheers,
> Stephano

Well, I really don't see how you could generate an appropriate "Requires" that
matches "there is a 'python' executable somewhere in the user's PATH".  Fedora
packages are already expected to replace #!/usr/bin/env python with
#!/usr/bin/python (or even /usr/bin/python2.7 or 3.5).

Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion at nwra.com
Boulder, CO 80301                   http://www.nwra.com

More information about the Rpm-list mailing list