Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414889 - x11-misc/shutter-0.88.2: Problems loading plugins (missing dependency)
Summary: x11-misc/shutter-0.88.2: Problems loading plugins (missing dependency)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-06 15:49 UTC by antu456
Modified: 2012-05-21 19:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of "emerge --info". (emergeinfo,5.20 KB, text/plain)
2012-05-06 15:49 UTC, antu456
Details

Note You need to log in before you can comment on or make changes to this bug.
Description antu456 2012-05-06 15:49:14 UTC
Created attachment 310983 [details]
Output of "emerge --info".

I have installed shutter and put it into KDE autostart so it's always started after I login. I'm starting it with '--min_at_startup', so the 'Updating plugins' dialog shouldn't show, but it does show every start.

This has already been reported in the Shutter bugtracker, but seems to be a Gentoo bug: https://bugs.launchpad.net/shutter/+bug/909195 (see post #4 and #6).

After following the instructions (with an addition) in #6, the problem does not appear anymore.

1. I've emerged media-gfx/imagemagick with USE flag +perl (after that, the "Can't locate ImageMagick" errors disappeared). 
2. I did a "chmod a+x /usr/share/shutter/resources/system/upload_plugins/upload" (fixed the "ERROR: upload-plugin exists but is not executable").
3. I emerged "dev-perl/JSON", which fixed the Missing JSON messages.

Only one message is remaining, complaining about missing Dropbox API:

INFO: new upload-plugin information detected - /usr/share/shutter/resources/system/upload_plugins/upload/Dropbox
Can't locate Net/Dropbox/API.pm in @INC (@INC contains: /usr/share/shutter/resources/modules /etc/perl /usr/lib64/perl5/site_perl/5.12.4/x86_64-linux /usr/lib64/perl5/site_perl/5.12.4 /usr/lib64/perl5/vendor_perl/5.12.4/x86_64-linux /usr/lib64/perl5/vendor_perl/5.12.4 /usr/lib64/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.12.3/x86_64-linux /usr/lib64/perl5/vendor_perl/5.12.3 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.12.4/x86_64-linux /usr/lib64/perl5/5.12.4 /usr/local/lib/site_perl .) at /usr/share/shutter/resources/system/upload_plugins/upload/Dropbox.pm line 73.
BEGIN failed--compilation aborted at /usr/share/shutter/resources/system/upload_plugins/upload/Dropbox.pm line 73.

Deleting the Dropbox plugin fixed this for me, but that's just a workaround for people who don't need it.

I think the ebuild should have ImageMagick (with +perl) and dev-perl/JSON as dependencies, and the permissions should be correct after installation. The Dropbox ebuild has no perl use flag so I have no idea how to fix that. :-)

I have attached the output of "emerge --info", please tell me if you need more information.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-06 23:24:43 UTC
How about 0.88.3?
Comment 2 antu456 2012-05-07 08:19:05 UTC
I've emerged 0.88.3, permissions are still wrong and I've looked in the .ebuild file, the dependencies are still missing.
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2012-05-07 08:52:22 UTC
I agree on the missing deps but this seems wrong

chmod a+x /usr/share/shutter/resources/system/upload_plugins/upload

The default permissions are just fine


testing dev # ls -la /usr/share/shutter/resources/system/upload_plugins/|grep upload
drwxr-xr-x 2 root root 4096 May  7 09:50 upload
Comment 4 antu456 2012-05-07 14:06:56 UTC
My fault, I didn't mean the directory but the plugin files in the directory ("chmod a+x /usr/share/shutter/resources/system/upload_plugins/upload/*").

Those aren't executable by default:
# ls -lah /usr/share/shutter/resources/system/upload_plugins/upload/
-rw-r--r-- 1 root root 6,0K  7. Mai 15:49 Dropbox.pm
-rw-r--r-- 1 root root 6,2K  7. Mai 15:49 ImageBanana.pm
[...]

When starting shutter, this leads to the following error messages on the console:
$ shutter

ERROR: upload-plugin exists but is not executable - /usr/share/shutter/resources/system/upload_plugins/upload/Dropbox.pm

ERROR: upload-plugin exists but is not executable - /usr/share/shutter/resources/system/upload_plugins/upload/ImageBanana.pm

[...]

After a screenshot is made, you can open an export/upload dialog with Ctrl+U, but there won't be any websites selectable under "Public hosting". 

Giving all the plugin files the executable attribute fixed this for me, when they are executable there is only the Dropbox error left and I'm able to select a website in the export dialog. It's enough to give "others" the right to execute, root won't start shutter anyway, I think.

Remaining error after chmod:

INFO: new upload-plugin information detected - /usr/share/shutter/resources/system/upload_plugins/upload/Dropbox
Can't locate Net/Dropbox/API.pm in @INC (@INC contains: /usr/share/shutter/resources/modules /etc/perl /usr/lib64/perl5/site_perl/5.12.4/x86_64-linux /usr/lib64/perl5/site_perl/5.12.4 /usr/lib64/perl5/vendor_perl/5.12.4/x86_64-linux /usr/lib64/perl5/vendor_perl/5.12.4 /usr/lib64/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.12.3/x86_64-linux /usr/lib64/perl5/vendor_perl/5.12.3 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.12.4/x86_64-linux /usr/lib64/perl5/5.12.4 /usr/local/lib/site_perl .) at /usr/share/shutter/resources/system/upload_plugins/upload/Dropbox.pm line 73.
BEGIN failed--compilation aborted at /usr/share/shutter/resources/system/upload_plugins/upload/Dropbox.pm line 73.

ERROR: upload-plugin exists but does not work properly - /usr/share/shutter/resources/system/upload_plugins/upload/Dropbox

I didn't find the Dropbox perl API in portage though. :-/
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2012-05-19 09:55:31 UTC
As far as I can tell there is nothing I can do for the dropbox api problem. It is not fatal anyway
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2012-05-21 19:02:28 UTC
Should be fixed now