Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639996 - dev-libs/sway USE=swaygrab should RDEPEND on media-gfx/imagemagick - swaygrab: Swaygrab could not run convert.
Summary: dev-libs/sway USE=swaygrab should RDEPEND on media-gfx/imagemagick - swaygrab...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mykyta Holubakha
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-06 05:30 UTC by Rullie
Modified: 2017-12-06 11:05 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.