Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple text files have the executable bits set #66

Open
glaubitz opened this issue Apr 1, 2019 · 0 comments
Open

Multiple text files have the executable bits set #66

glaubitz opened this issue Apr 1, 2019 · 0 comments

Comments

@glaubitz
Copy link

glaubitz commented Apr 1, 2019

Multiple files contained in the source tree have their executable bits set which triggers warnings when building an RPM package:

[  195s] RPMLINT report:
[  195s] ===============
[  197s] python2-uamqp.x86_64: W: script-without-shebang /usr/lib64/python2.7/site-packages/uamqp-1.1.0-py2.7.egg-info/PKG-INFO
[  197s] python2-uamqp.x86_64: W: script-without-shebang /usr/lib64/python2.7/site-packages/uamqp-1.1.0-py2.7.egg-info/SOURCES.txt
[  197s] python2-uamqp.x86_64: W: script-without-shebang /usr/lib64/python2.7/site-packages/uamqp-1.1.0-py2.7.egg-info/dependency_links.txt
[  197s] python2-uamqp.x86_64: W: script-without-shebang /usr/lib64/python2.7/site-packages/uamqp-1.1.0-py2.7.egg-info/not-zip-safe
[  197s] python2-uamqp.x86_64: W: script-without-shebang /usr/lib64/python2.7/site-packages/uamqp-1.1.0-py2.7.egg-info/requires.txt
[  197s] python2-uamqp.x86_64: W: script-without-shebang /usr/lib64/python2.7/site-packages/uamqp-1.1.0-py2.7.egg-info/top_level.txt
[  197s] python3-uamqp.x86_64: W: script-without-shebang /usr/lib64/python3.7/site-packages/uamqp-1.1.0-py3.7.egg-info/PKG-INFO
[  197s] python3-uamqp.x86_64: W: script-without-shebang /usr/lib64/python3.7/site-packages/uamqp-1.1.0-py3.7.egg-info/SOURCES.txt
[  197s] python3-uamqp.x86_64: W: script-without-shebang /usr/lib64/python3.7/site-packages/uamqp-1.1.0-py3.7.egg-info/dependency_links.txt
[  197s] python3-uamqp.x86_64: W: script-without-shebang /usr/lib64/python3.7/site-packages/uamqp-1.1.0-py3.7.egg-info/not-zip-safe
[  197s] python3-uamqp.x86_64: W: script-without-shebang /usr/lib64/python3.7/site-packages/uamqp-1.1.0-py3.7.egg-info/requires.txt
[  197s] python3-uamqp.x86_64: W: script-without-shebang /usr/lib64/python3.7/site-packages/uamqp-1.1.0-py3.7.egg-info/top_level.txt
[  197s] This text file has executable bits set or is located in a path dedicated for
[  197s] executables, but lacks a shebang and cannot thus be executed.  If the file is
[  197s] meant to be an executable script, add the shebang, otherwise remove the
[  197s] executable bits or move the file elsewhere.

and

[  197s] python2-uamqp.x86_64: E: spurious-executable-perm (Badness: 50) /usr/lib64/python2.7/site-packages/uamqp/c_uamqp.c
[  197s] python3-uamqp.x86_64: E: spurious-executable-perm (Badness: 50) /usr/lib64/python3.7/site-packages/uamqp/c_uamqp.c
[  197s] python2-uamqp.x86_64: E: spurious-executable-perm (Badness: 50) /usr/share/doc/packages/python2-uamqp/README.rst
[  197s] python3-uamqp.x86_64: E: spurious-executable-perm (Badness: 50) /usr/share/doc/packages/python3-uamqp/README.rst
[  197s] The file is installed with executable permissions, but was identified as one
[  197s] that probably should not be executable.  Verify if the executable bits are
[  197s] desired, and remove if not. NOTE: example scripts should be packaged under
[  197s] %docdir/examples, which will avoid this warning.

To fix this, just unset the executable bits using chmod ugo-x $FILES. Luckily, git is able to track file permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant