From owner-freebsd-ports@freebsd.org Thu Mar 14 06:22:23 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2348915311A2 for ; Thu, 14 Mar 2019 06:22:23 +0000 (UTC) (envelope-from meta@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B4AF88D953 for ; Thu, 14 Mar 2019 06:22:22 +0000 (UTC) (envelope-from meta@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7832B15311A0; Thu, 14 Mar 2019 06:22:22 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 65C05153119F for ; Thu, 14 Mar 2019 06:22:22 +0000 (UTC) (envelope-from meta@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 071288D94F; Thu, 14 Mar 2019 06:22:22 +0000 (UTC) (envelope-from meta@FreeBSD.org) Received: from icepick.vmeta.jp (unknown [IPv6:2405:6586:2280:1200:4931:6862:e0d7:ee6a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: meta/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id A4292F7C8; Thu, 14 Mar 2019 06:22:20 +0000 (UTC) (envelope-from meta@FreeBSD.org) Date: Thu, 14 Mar 2019 15:22:17 +0900 From: Koichiro Iwao To: Hiroki Sato Cc: ports@FreeBSD.org Subject: Re: loose dependency Message-ID: <20190314062217.3wx3h2hp74mo3zja@icepick.vmeta.jp> References: <20190314031726.aaspgwdcuithhgnc@icepick.vmeta.jp> <20190314.134014.2127053084940820202.hrs@allbsd.org> <20190314061242.ixvtakqiel4aa4r3@icepick.vmeta.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190314061242.ixvtakqiel4aa4r3@icepick.vmeta.jp> X-Operating-System: FreeBSD 12.0-STABLE amd64 User-Agent: NeoMutt/20180716 X-Rspamd-Queue-Id: 071288D94F X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.976,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Mar 2019 06:22:23 -0000 On Thu, Mar 14, 2019 at 03:12:43PM +0900, Koichiro Iwao wrote: > On Thu, Mar 14, 2019 at 01:40:14PM +0900, Hiroki Sato wrote: > > 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. > > Specifically talking, net/tigervnc is the case. Actually, the dependency > is build dependency not runtime. ImageMagick is used to create multiple > sizes of icons such as 24x24, 32x32, 48x48 during the build. Whichever > versions of ImageMagick in the current ports tree can be used for the > purpose. Once the port is built, ImageMagick is not required at all and > can be uninstalled if no other packages depends on it. > > I think FLAVORS does not fit such case. Creating > net/tigervnc@ImageMagick[67] sounds me stupid. But If I specify IM6, > IM7 users cannot build net/tigervnc due to ImageMagick conflict and > vise cersa. > > I'm stuck :( BTW, what about this idea? I prepare pre-converted icons and put it to public_distfiles. The port fetches it as EXTRA_DIST. It still sounds me a little bit stupid but I can remove the dependency on ImageMagick from the port... -- meta