Date: Thu, 14 Mar 2019 14:33:30 +0100 From: =?UTF-8?B?VMSzbA==?= Coosemans <tijl@FreeBSD.org> To: Koichiro Iwao <meta@FreeBSD.org> Cc: Hiroki Sato <hrs@FreeBSD.org>, ports@FreeBSD.org Subject: Re: loose dependency Message-ID: <20190314143330.2cc6bc8d@kalimero.tijl.coosemans.org> In-Reply-To: <20190314100939.lsbmlua5hps5mdia@icepick.vmeta.jp> References: <20190314.134014.2127053084940820202.hrs@allbsd.org> <20190314061242.ixvtakqiel4aa4r3@icepick.vmeta.jp> <20190314062217.3wx3h2hp74mo3zja@icepick.vmeta.jp> <20190314.165018.2032001534188262193.hrs@allbsd.org> <20190314100939.lsbmlua5hps5mdia@icepick.vmeta.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 14 Mar 2019 19:09:40 +0900 Koichiro Iwao <meta@FreeBSD.org> wrote: > On Thu, Mar 14, 2019 at 04:50:18PM +0900, Hiroki Sato wrote: >> That is a workaround while increasing maintenance cost. It is at the >> maintainer's discretion. > > Thanks for the advice. Fortunely, icons are not updated too open. The > maintenance cost is not negligible but might be acceptable. Like hrs already said: since this is a build dependency you can just write: BUILD_DEPENDS= convert:graphics/ImageMagick6 This does not install ImageMagick6 if 7 is installed. It will only install 6 if convert does not exist. It is a loose dependency. This is not the case for RUN_DEPENDS because dependencies in a package are currently specified using package names (including version). They would have to be specified using features where multiple packages can then provide a feature. port1: PROVIDES= feature1 feature2 port2: PROVIDES= feature2 port3: RUN_DEPENDS= feature2:category/port1 Then pkg could see if any installed packages provide feature2 and only install port1 by default.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190314143330.2cc6bc8d>