[Starlingx-discuss] MultiOS: call of python via #!/usr/bin/env (work around)

Dominig ar Foll (Intel Open Source) dominig.arfoll at fridu.net
Wed Sep 11 16:28:10 UTC 2019


due the number of files with that error, I have enabled a work around.

Each packages on th eOBS has not an rpmlintrc file which reduce the
badness of that error.
I did not put is to 0 so, it will still be listed in the build log file.

----- MypackageName.rpmlintrc ----------
setBadness('script-without-shebang', 2)
The issue with python2 and 3 selection will still need to be tackled and
at that time, it would be nice to correct those shebang.


On 11/09/2019 17:54, Dominig ar Foll (Intel Open Source) wrote:
> On 11/09/2019 16:54, Victor Rodriguez wrote:
>> So we agree that either #!/usr/bin/python2 or #!/usr/bin/python3 is
>> better than #!/usr/bin/env . Am I right ?
>> how many files needs this change ?
> Unfortunately that trick has been used a lot. It was obviously systematic.
> for all script calls 589
> dominig at dominig-t480:~/starlingx/git> grep -R --exclude-dir=\.* -F
> '#!/usr/bin/env' * |wc -l
> 589
> Only for python 301
> dominig at dominig-t480:~/starlingx/git> grep -R --exclude-dir=\.* -F
> '#!/usr/bin/env python' * |wc -l
> 301

Dominig ar Foll
Senior Software Architect
Intel Open Source Technology Centre

More information about the Starlingx-discuss mailing list