FS#73476 - [imagemagick] cannot use convert with pdf files,

Attached to Project: Arch Linux
Opened by vnoel (kaouete) - Sunday, 23 January 2022, 17:17 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 26 January 2022, 10:52 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Calling convert on a pdf, e.g., "convert input.pdf output.pdf", gives the following error:

convert: attempt to perform an operation not allowed by the security policy `gs' @ error/delegate.c/ExternalDelegateCommand/384.
convert: no images defined `output.pdf' @ error/convert.c/ConvertImageCommand/3327.

Removing the line "<policy domain="delegate" rights="none" pattern="gs" />" from "/etc/ImageMagick-7/policy.xml" solves the problem.
This line is added by our package, it was introduced 3 years ago in relation to https://bugs.archlinux.org/task/62785: https://github.com/archlinux/svntogit-packages/blob/packages/imagemagick/trunk/PKGBUILD#L114

I wonder if now, years later, the security workaround is still needed or if it could be removed?

Additional info:
* package version: 7.1.0.19-1
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 26 January 2022, 10:52 GMT
Reason for closing:  Fixed
Additional comments about closing:  imagemagick 7.1.0.20-2
Comment by Antonio Rojas (arojas) - Wednesday, 26 January 2022, 10:52 GMT
Yah, bugs in libraries should be fixed there instead of crippling unrelated packages

Loading...