FS#61275 - graphicsmagick 1.31.1-1 needs libwebp for tiffs

Attached to Project: Arch Linux
Opened by Aaron Bishop (Erroneous) - Friday, 04 January 2019, 17:23 GMT
Last edited by Gaetan Bisson (vesath) - Monday, 09 September 2019, 08:51 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Starting with graphicsmagick 1.31.1-1 working with tiff images produces the following error:
gm convert -size 100x100 xc:white annotate.tif
gm convert: Unable to load module ("/usr/lib/GraphicsMagick-1.3.31/modules-Q16/coders/tiff.la: file not found").

That file is indeed present, so using strace I found that it is getting openat(AT_FDCWD, "/usr/lib/libwebp.so.7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

After installing libwebp and running the same command the error doesn't appear.

This didn't happen with graphicsmagick 1.3.30-4.

Adding --without-webp to ./configure fixes the error

If webp is a desired format to support, we should probably add libwebp as an optdepend (maybe include a note about TIFFs) or we should use --without-webp
This task depends upon

Closed by  Gaetan Bisson (vesath)
Monday, 09 September 2019, 08:51 GMT
Reason for closing:  Implemented
Additional comments about closing:  graphicsmagick-1.3.33-2 in [extra]
Comment by Gaetan Bisson (vesath) - Monday, 09 September 2019, 08:27 GMT
Let's add libwebp as a hard dependency. It's not too big and support for TIFF files is a pretty big feature to leave to an optdepends. And I note that libwebp is already required by a few other packages, like ffmpeg, gd, gimp and webkit.
Comment by Gaetan Bisson (vesath) - Monday, 09 September 2019, 08:28 GMT
And having said that I just realized that libtiff is in the optdepends. :)
Let's make it and libpng hard deps too.

Loading...