Re: rpmdeps: find requires for scripts with env shebang

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/15, Orion Poplawski wrote:
> 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).

Indeed, "appropriate" is the key term there. I can see how to return
something that is appropriate for us, but not for general consumption.

We use rpmdeps as part of our build system (OE), and I can do some
high level processing after rpmdeps to figure out what executables are
on the path, and hence what the correct dependencies should be.

I figured that I should ask if any of this made sense in the general
case, though my initial impression was much the same as yours.



> 
> 
> -- 
> Orion Poplawski
> Technical Manager                     303-415-9701 x222
> NWRA, Boulder/CoRA Office             FAX: 303-415-9702
> 3380 Mitchell Lane                       orion@xxxxxxxx
> Boulder, CO 80301                   http://www.nwra.com
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxxxxx
> http://lists.rpm.org/mailman/listinfo/rpm-list
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list



[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux