After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 552601 - pyconsole.py plug-in is installed, but not executable
pyconsole.py plug-in is installed, but not executable
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Gimp-Python
2.4.x
Other All
: Normal trivial
: 2.6
Assigned To: Manish Singh
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2008-09-17 08:10 UTC by Nils Philippsen
Modified: 2008-10-30 20:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nils Philippsen 2008-09-17 08:10:31 UTC
Please describe the problem:
SSIA, the plug-in file is installed in the gimp/2.0/plug-ins directory, but not executable.

Steps to reproduce:
nils@gibraltar:~> ls -l /usr/lib64/gimp/2.0/plug-ins/pyconsole.py

Actual results:
-rw-r--r-- 1 root root 21009 2008-05-30 17:10 /usr/lib64/gimp/2.0/plug-ins/pyconsole.py

Expected results:
-rwxr-xr-x 1 root root 21009 2008-05-30 17:10 /usr/lib64/gimp/2.0/plug-ins/pyconsole.py

Does this happen every time?
Yes

Other information:
This is the same in current SVN trunk.
Comment 1 Nils Philippsen 2008-09-17 08:22:12 UTC
Just noticed that the example above is from a machine with 2.4.6 -- the results on another one with 2.4.7 are similar, though.
Comment 2 Michael Schumacher 2008-09-17 08:34:53 UTC
Why do you expect that this plug-in should be installed as executable?
Comment 3 Michael Natterer 2008-09-17 10:47:02 UTC
This is not a plug-in but just a piece of data used my python-console.py
Comment 4 Nils Philippsen 2008-09-17 13:21:04 UTC
Then why is it put into the plug-ins directory and not e.g. into $libdir/gimp/2.0/python? And why does it have a she-bang line -- "#!/usr/bin/env python" -- at the top of the file, which is meaningless unless the file is executable?

This is a bit inconsistent and has been flagged as an error by rpmlint during the review of the gimp package in Fedora (cf. https://bugzilla.redhat.com/show_bug.cgi?id=225799):

gimp.i386: E: non-executable-script /usr/lib/gimp/2.0/plug-ins/pyconsole.py
0644
This text file contains a shebang or is located in a path dedicated for
executables, but lacks the executable bits and cannot thus be executed.  If
the file is meant to be an executable script, add the executable bits,
otherwise remove the shebang or move the file elsewhere.
Comment 5 Nils Philippsen 2008-09-17 13:33:29 UTC
gimp-2.4 doesn't contain python-console.py BTW. Is the situation different on 2.4.x?
Comment 6 Sven Neumann 2008-09-17 21:08:12 UTC
Addressed in trunk:

2008-09-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/pyconsole.py: removed she-bang as this
	file is not a plug-in. Addresses bug #552601.