From owner-freebsd-ports@freebsd.org Thu Mar 14 17:51:57 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 BBD5A1526115 for ; Thu, 14 Mar 2019 17:51:57 +0000 (UTC) (envelope-from tijl@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 4BBFE8AE55 for ; Thu, 14 Mar 2019 17:51:57 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 09FCF1526114; Thu, 14 Mar 2019 17:51:57 +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 DB89F1526112 for ; Thu, 14 Mar 2019 17:51:56 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay114.isp.belgacom.be (mailrelay114.isp.belgacom.be [195.238.20.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3F9088AE52; Thu, 14 Mar 2019 17:51:56 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2AmBABWk4pc/0RF8lFkHAEBAQQBAQc?= =?us-ascii?q?EAQGBZYIQVxFQIRInhAuIe4pBAQGCDDUBiXSQASyETQKETyM4EgEBAwEBCQE?= =?us-ascii?q?DAm0cDIVLAQUjMyMQCxgCAgUhAgIPKh4GE4MjgXmtaIEviSmBDoELJItEgX+?= =?us-ascii?q?EI4gLglcDpEAJh1iLOyWBe4Vri2afbSGBVk0wCIMnCYINF4dqhjU+AzCQHgE?= =?us-ascii?q?B?= X-IPAS-Result: =?us-ascii?q?A2AmBABWk4pc/0RF8lFkHAEBAQQBAQcEAQGBZYIQVxFQI?= =?us-ascii?q?RInhAuIe4pBAQGCDDUBiXSQASyETQKETyM4EgEBAwEBCQEDAm0cDIVLAQUjM?= =?us-ascii?q?yMQCxgCAgUhAgIPKh4GE4MjgXmtaIEviSmBDoELJItEgX+EI4gLglcDpEAJh?= =?us-ascii?q?1iLOyWBe4Vri2afbSGBVk0wCIMnCYINF4dqhjU+AzCQHgEB?= Received: from 68.69-242-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.242.69.68]) by relay.skynet.be with ESMTP; 14 Mar 2019 18:50:45 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id x2EHohHp024483; Thu, 14 Mar 2019 18:50:44 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Thu, 14 Mar 2019 18:50:43 +0100 From: =?UTF-8?B?VMSzbA==?= Coosemans To: Adam Weinberger Cc: Koichiro Iwao , ports@freebsd.org Subject: Re: loose dependency Message-ID: <20190314185043.4e566819@kalimero.tijl.coosemans.org> In-Reply-To: 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> <20190314143330.2cc6bc8d@kalimero.tijl.coosemans.org> <20190314164134.nvafkejhmljsacep@icepick.vmeta.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 3F9088AE52 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.94 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.94)[-0.943,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 17:51:58 -0000 On Thu, 14 Mar 2019 11:20:09 -0600 Adam Weinberger wrote: > On Thu, Mar 14, 2019 at 10:41 AM Koichiro Iwao wrote: >> On Thu, Mar 14, 2019 at 02:33:30PM +0100, T=C4=B3l Coosemans wrote: =20 >>> Like hrs already said: since this is a build dependency you can just >>> write: >>> >>> BUILD_DEPENDS=3D 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. =20 >> >> I understand now. This is what I wanted. Perfect! >> =20 >>> 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. =20 >> >> That's good to know. I'd been thinking the only difference between RUN_ >> and BUILD_DEPENDS is when the dependency is checked. =20 >=20 > This makes building from ports behave differently from pkg. Please, > just make an OPTIONS_SINGLE for it, and default it to the current > version (7), not the old version. You mean building from ports versus poudriere? Poudriere would always select ImageMagick6 with the BUILD_DEPENDS line above, but that's fine. Options aren't a good interface for this because the user can select an option that conflicts with the installed version. It's not really a port option but a system-wide option. If this needs to be configurable for poudriere then an entry should be added to bsd.default-versions.mk. Then the BUILD_DEPENDS line above can become: BUILD_DEPENDS=3D convert:graphics/ImageMagick${IMAGEMAGICK_DEFAULT}