Re: git: 45526ecbeec3 - main - framework: Add new USES 'magick' for graphics/ImageMagick*

From: Dmitry Marakasov <amdmi3_at_amdmi3.ru>
Date: Wed, 15 Dec 2021 12:04:38 UTC
* Tobias C. Berner (tcberner@freebsd.org) wrote:

> > > URL: https://cgit.FreeBSD.org/ports/commit/?id=45526ecbeec33dbb87f0b678d4c04988aab9b657
> > >
> > > commit 45526ecbeec33dbb87f0b678d4c04988aab9b657
> > > Author:     Tobias C. Berner <tcberner@FreeBSD.org>
> > > AuthorDate: 2021-10-30 18:08:16 +0000
> > > Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
> > > CommitDate: 2021-12-11 13:50:53 +0000
> > >
> > >     framework: Add new USES 'magick' for graphics/ImageMagick*
> >
> > It's great that someone finally decided to unify imagemagick
> > version handling, however as it is now it's a huge pessimization
> > and I'm rolling it back for my ports.
> >
> > The problem is that ports which depend just on e.g. convert utility
> > built with any version and flavor of imagemagick before, but now these
> > require specific version and cause conflicts.
> >
> > Please rollback all cases which depend on utilities, e.g.
> >
> > {BUILD,RUN}_DEPENDS={convert,montage,identify,...}:graphics/ImageMagick*
> 
> You can already depend on any version (i.e. the default) by not
> specifying the version -- ports that explicitly only require the
> binaries should be using
> USES=magick:run resp USES=magick:build,run
> So they pull in what the user specified as IMAGEMAGIC_DEFAULT-version.

The default version is not an "any" version, it's a specific
conflicting version, so no, you cannot depend on any version.
As a result, after installing something which requires magick:6
you cannot install something which requires magick:build.

> > or provide a way to depend on *any* version of imagemagick in the
> > framework.
> >
> > >     A new USES has been added to depend on ImageMagick.
> > >
> > >             USES=magick
> > >
> > >     adds a LIB_DEPENDS on graphics/ImageMagick${IMAGEMAGICK_DEFAULT}.
> > >
> > >     If a specific version is required, use for example
> > >
> > >             USES=magick:6        resp.     USES=magick:7
> > >
> > >     If only a build, run or test is required, use for example
> > >
> > >             USES=magick:build    resp.     USES=magick:6,build,test
> > >
> > >     If a dependency on the nox11 flavor is required, use for example
> > >
> > >             USES=magick:nox11    resp.     USES=magick:7,nox11,run,test
> > >
> > >     See magick.mk for more details on the available flags.
> > >
> > >     The tree has been completely converted to make use of this.
> > >
> > >     Approved by:    bapt
> > >     Differential Revision: https://reviews.freebsd.org/D32754
> >
> > --
> > Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
> > amdmi3@amdmi3.ru  ..:     https://github.com/AMDmi3  https://amdmi3.ru
> >
> 

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:     https://github.com/AMDmi3  https://amdmi3.ru