From owner-freebsd-ports@FreeBSD.ORG Fri Nov 30 16:05:07 2012 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 316A18A9 for ; Fri, 30 Nov 2012 16:05:07 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from mx.critical.ch (cl-8.zrh-02.ch.sixxs.net [IPv6:2001:1620:f00:7::2]) by mx1.freebsd.org (Postfix) with ESMTP id BC0908FC0C for ; Fri, 30 Nov 2012 16:05:06 +0000 (UTC) Received: from wiggles.bwns.ch (snow.ethz.ch [129.132.80.16]) (authenticated bits=0) by mx.critical.ch (8.14.4/8.14.4/critical-1.0) with ESMTP id qAUG54i0027075 for ; Fri, 30 Nov 2012 17:05:05 +0100 (CET) (envelope-from ehaupt@FreeBSD.org) Date: Fri, 30 Nov 2012 17:05:04 +0100 From: Emanuel Haupt To: ports@FreeBSD.org Subject: Re: Dealing with options in dependent ports Message-Id: <20121130170504.7bc37b172743a934a7120bf5@FreeBSD.org> In-Reply-To: <20121130154740.GA16360@graf.pompo.net> References: <20121130154740.GA16360@graf.pompo.net> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2012 16:05:07 -0000 Thierry Thomas wrote: > Hello, >=20 > Le ven 30 nov 12 =E0 16:36:32 +0100, Paul Schmehl > =E9crivait=A0: > > I'm working on a port that has an option for a build_depends on > > another port. If that option is selected, the dependent port MUST > > be built with an option that is not selected by default. > >=20 > > Is there a way to either force that option to be selected in the > > dependent port? Or, failing that, is it possible to pop up a > > message warning the installer that they must select that option > > before building the dependent port or, if they've already installed > > it without the option, they must deinstall and reinstall after > > selecting that option? > >=20 >=20 > I'd suggest to make a slave port where you force the required option. > However, to enforce the right dependency, this option have to produce > a different plist. > --=20 > Th. Thomas. I was in the same situation with dns/ldns requiring python bindings which are not built by default. I solved the problem by creating a stub port dns/py-ldns. Emanuel