When you upgrade media-gfx/imagemagick thou should also rebuild dev-php/pecl-imagick or it can cause problems. Please add a hook/dependency to trigger a rebuild of pecl-imagick.
Example warning: PHP Warning: Version warning: Imagick was compiled against Image Magick version 1690 but version 1691 is loaded. Imagick will run but may behave surprisingly...
As mentioned on IRC, pecl-imagick is already subscribed to imagemagick's subslot for rebuilds, but imagemagick's subslot doesn't change on minor versions and so won't auto-rebuild for those. Not up to me but if the warning is benign it may be simpler to do nothing, auto-rebuild every versions would need to change imagemagick's subslot to ${PV} (which may be unwanted).
We will probably set "skip_version_check" option in extension by default. The check was added because IM upstream has a long history for breaking stuff without changing SONAME. We had 'SLOT=0/${PV}' in media-gfx/imagemagick for a while but I am actively fighting against this bad practice.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef14a7ffc9bb2920ad78678a061f817dcdbaf60d commit ef14a7ffc9bb2920ad78678a061f817dcdbaf60d Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2021-06-18 10:27:25 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2021-06-18 10:27:33 +0000 dev-php/pecl-imagick: disable version check by default Closes: https://bugs.gentoo.org/780738 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> dev-php/pecl-imagick/pecl-imagick-3.5.0.ebuild | 6 ++++++ 1 file changed, 6 insertions(+)