Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 2019 18:54:13 +0900
From:      Koichiro Iwao <meta@FreeBSD.org>
To:        Eugene Grosbein <eugen@grosbein.net>
Cc:        Hiroki Sato <hrs@FreeBSD.org>, ports@FreeBSD.org
Subject:   Re: loose dependency
Message-ID:  <20190314095413.rthlg3kkiwhaezjf@icepick.vmeta.jp>
In-Reply-To: <f89d94bb-b368-b6e7-2ce3-e7513a78db44@grosbein.net>
References:  <20190314031726.aaspgwdcuithhgnc@icepick.vmeta.jp> <20190314.134014.2127053084940820202.hrs@allbsd.org> <f89d94bb-b368-b6e7-2ce3-e7513a78db44@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 14, 2019 at 01:01:42PM +0700, Eugene Grosbein wrote:
> 14.03.2019 11:40, Hiroki Sato wrote:
> 
> > Koichiro Iwao <meta@FreeBSD.org> wrote
> >   in <20190314031726.aaspgwdcuithhgnc@icepick.vmeta.jp>:
> > 
> > me> Hi,
> > me>
> > me> If a port have runtime dependency on bin/convert command of ImageMagick
> > me> but whichever ImageMagick{6,7}{,-nox11} are OK, how port Makefile should
> > me> be written?
> > me>
> > me> ImageMagick6 and 7 conflicts each other. I want to respect user's
> > me> choice which ImageMagick to use.
> > 
> >  There is no easy solution to solve it completely because currently
> >  package dependency is solved in a strict manner including package
> >  names and version numbers, not only existence of specific files.
> >  Creating multiple ports which depend on each software or using
> >  FLAVORS to make it easier is a way to provide packages with every
> >  possible combinations of dependency and let one to choose.
> 
> OTOH, one still may create a port depending on existence of specific file
> and fetching another port automatically in case of file absence.
> It works just fine for those using ports as primary source, not packages.
> 
> And yes, if one uses packages, it is forced to live with "default" versions
> including dependencies or build its own pkg repo.

In this case, I think FLAVORS don't fit but that's OK.

Regarding FLAVORS, is it possible to depend on any of FLAVORS, not on
one specific FLAVORS? For example, a port requires some command written
in python but python version doesn't matter.

-- 
meta <meta@FreeBSD.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190314095413.rthlg3kkiwhaezjf>