Bug 257479 - graphics/pecl-imagick and -im7 why?
Summary: graphics/pecl-imagick and -im7 why?
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-ports-bugs (Nobody)
Depends on:
Reported: 2021-07-28 21:36 UTC by CTS - FreeBSD Team
Modified: 2021-07-28 23:39 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (000.fbsd)


Note You need to log in before you can comment on or make changes to this bug.
Description CTS - FreeBSD Team 2021-07-28 21:36:46 UTC
Is there a strong reason why there are 2 ports instead of jsut one with a knob to select the desired ImageMagick version (or better it just uses the default ImageMagick port)?

Following situation:

I need to install ImageMagick-7 AND www/nextcloud on the same host. The nextcloud port depends on graphics/pecl-imagick which depends on ImageMagick-6 (hardcoded).

This is kind of a chicken-egg problem.

Can't we have only graphics/pecl-imagick that just uses the default ImageMagick version, like most other ports using ImageMagick do?
Comment 1 Miroslav Lachman 2021-07-28 23:39:04 UTC
I do not think it is possible with current FreeBSd ports and packages. Dependencies are hardcoded in the package meta data created at the build time.
It is the same reason why nextcloud has hardcode dependency on pecl-magick even if pecl-imagick-im7 will work too but nextcloud cannot know it.

If current default ImageMagick version is 7 then I think nextcloud should depends on pecl-imagick-im7.