Mailinglist Archive: opensuse-factory (826 mails)

< Previous Next >
Re: [opensuse-factory] rpmlint 1.10 about to enter openSUSE Factory
On Mon, 9 Oct 2017, Dirk Müller wrote:

Hi,
...
- env-script-interpreter: This is a new check that has a Badness of 9.
The value is so low because it triggers tremendously often right now.
Basically, for shell scripts installed with chmod +x in the typical
binary directories like /usr/bin and the like, it is alerting when the
script shebang starts with "#!.*env ". The intention here is to avoid
the rpm-dependency logic add a file-depends on /usr/bin/env (which is
useless) and have the *actual* interpreter added as dependency
instead. So to silence the warning, something like

sed -i -e "1 s,#! */usr/bin/env python,#!/usr/bin/python2,"
%{buildroot}/%{_bindir}/*.py

is needed. This lets the rpm-dependency magic add a proper
file-depends on /usr/bin/python2, pulling in python-base if it isn't
installed already.

Huh, why not fix RPM instead?

Richard.

--
Richard Biener <rguenther@xxxxxxx>
SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB
21284 (AG Nuernberg)
< Previous Next >
References