Greg Freemyer
2014-08-20 16:24:36 UTC
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.
Thanks
Greg
--
Greg Freemyer
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.
Thanks
Greg
--
Greg Freemyer
--
To unsubscribe, e-mail: opensuse-packaging+***@opensuse.org
To contact the owner, e-mail: opensuse-packaging+***@opensuse.org
To unsubscribe, e-mail: opensuse-packaging+***@opensuse.org
To contact the owner, e-mail: opensuse-packaging+***@opensuse.org