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

From: Tobias C. Berner <tcberner_at_freebsd.org>
Date: Wed, 15 Dec 2021 11:51:14 UTC
Moin moin


On Wed, 15 Dec 2021 at 12:37, Dmitry Marakasov <amdmi3@amdmi3.ru> wrote:
>
> * 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.



mfg Tobias

>
> 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
>