Quoting Greg Freemyer <greg.freemyer@gmail.com>:
All,
I had a package (python-dfVFS) that rpmlint is complaining about. I can get the error to go away via these 2 lines in the %files section of the specfile.
%defattr(755,root,root) %{python_sitelib}/dfvfs
I'm told 755 is likely wrong for anything in python_sitelib.
My rpmlint errors without the 755 statement are similar to:
[ 29s] python-dfVFS.noarch: W: non-executable-script /usr/lib/python2.7/site-packages/dfvfs/vfs/tar_file_system_test.py 0644L /usr/bin/python [ 29s] python-dfVFS.noarch: W: non-executable-script /usr/lib/python2.7/site-packages/dfvfs/file_io/fake_file_io_test.py 0644L /usr/bin/python [ 29s] python-dfVFS.noarch: W: non-executable-script /usr/lib/python2.7/site-packages/dfvfs/helpers/source_scanner_test.py 0644L /usr/bin/python
The files seem to start with:
#!/usr/bin/python # -*- coding: utf-8 -*- . . .
There are hundreds of the files. Should I run a sed script to trash "#!/usr/bin/python" in all the files. There are over 150 of them.
I would try to contact upstream, pointing out that this there is no need for a shebang in those files... Dominique -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org