Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 639996

Summary: dev-libs/sway USE=swaygrab should RDEPEND on media-gfx/imagemagick - swaygrab: Swaygrab could not run convert.
Product: Gentoo Linux Reporter: Rullie <b2bsgm>
Component: Current packagesAssignee: Mykyta Holubakha <hilobakho>
Status: RESOLVED INVALID    
Severity: normal CC: proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rullie 2017-12-06 05:30:16 UTC
Hello,

When `dev-libs/sway` is compiled with `swaygrab` on a system without `media-gfx/imagemagick`, swaygrab fails with "Swaygrab could not run convert.".  I believe it has a hard dep on imagemagick as it calls
```
execlp("convert", "convert", "-depth", "8", "-size", size, "rgba:-", "-flip", file, NULL);
```
source: https://github.com/swaywm/sway/blob/master/swaygrab/main.c

Please add swaygrab? ( media-gfx/imagemagick ) to RDEPEND.  

Thank you!
Comment 1 Mykyta Holubakha 2017-12-06 11:05:42 UTC
Please read the einfo messages provided to you after the package installation. Swaygrab does not in anyway link to imagemagick, only exec'ing the convert binary. It is mentioned after the installation that imagemagick is required for grabbing screenshots (as an _optional_ feature). You can capture raw images and videos without imagemagick.

Closing, as imagemagick is not in strict sense a dependency and it is mentioned that imagemagick is required for capturing .jpg/.png screenshots in the post-install messages, which are there for a reason: you SHOULD read them.