[OE-core] How to avoid spurious RPM dependencies?

Mark Hatle mark.hatle at windriver.com
Tue Jan 17 20:50:22 UTC 2012


On 1/17/12 2:14 PM, Koen Kooi wrote:
> Hi,
>
> I'm running into a problem with vim that seems to be caused by overeager rpmdeps:
>
> | error: Failed dependencies:
> |       /bin/csh is needed by vim-7.2.446-r10.3.armv7a
> |       /usr/local/bin/python is needed by python-imaging-1.1.7-r0.armv7a
>
> For vim I thing it's being caused by this:

The dependency scanner checks that a file is executable before scanning it.

> ./usr/share/vim/vim72/tools/vim132:1:#!/bin/csh
>
> What's the best way to stop rpm from wanting csh? Python-imaging is actually broken:

So in the csh case, if it's an example and not something people would normally 
be executing simply remove the execute bit -- otherwise it's bug and should be 
addressed in some way.  (My preference when I see csh scripts is to execute an 
rm -f)  ;)

> ./usr/bin/pilfile.py:1:#! /usr/local/bin/python
> ./usr/bin/pilprint.py:1:#! /usr/local/bin/python
> ./usr/bin/pilconvert.py:1:#! /usr/local/bin/python
>
> Is #!/usr/bin/env python still the preferred shebang?

Yes, that is the preferred way of referring to python.

--Mark

> regards,
>
> Koen
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core





More information about the Openembedded-core mailing list