From owner-freebsd-ports@FreeBSD.ORG Fri Sep 14 13:37:29 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 457BB106564A; Fri, 14 Sep 2012 13:37:29 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 27B868FC0A; Fri, 14 Sep 2012 13:37:29 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8EDbT9p037015; Fri, 14 Sep 2012 13:37:29 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8EDbSKV036982; Fri, 14 Sep 2012 13:37:28 GMT (envelope-from bapt@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f Date: Fri, 14 Sep 2012 15:37:25 +0200 From: Baptiste Daroussin To: Bryan Drewery Message-ID: <20120914133725.GE68582@ithaqua.etoilebsd.net> References: <583243228.20120914162701@serebryakov.spb.ru> <50532DB9.6000106@shatow.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a+b56+3nqLzpiR9O" Content-Disposition: inline In-Reply-To: <50532DB9.6000106@shatow.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: lev@FreeBSD.org, freebsd-ports@FreeBSD.org Subject: Re: New options: options dependencies feature? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2012 13:37:29 -0000 --a+b56+3nqLzpiR9O Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 14, 2012 at 08:14:33AM -0500, Bryan Drewery wrote: > On 9/14/2012 7:27 AM, Lev Serebryakov wrote: > > Hello, Freebsd-ports. > >=20 > > Is it possible to express options' dependencies in new options > > framework? > >=20 > > I need option, which could be set if and only if some other option > > is already selected. > >=20 > > Now such situations are resolved via IGNORE which is set > > conditionally, but it is old-style, maybe now here is better method? > >=20 >=20 > Beyond simple SINGLE/MULTI dependencies (adding the SINGLE/MULTI as an > option and requiring it be selected to pick from the list), no, we still > need to use IGNORE and other ways of requiring dependent options. The framework doesn't support the options interdependencies, as Brian said = you can cheat with SINGLE/MULTI for simple cases. Shouldn't be that complicated to add the feature you want, I don't have tim= e to work on this now, but I'll be happy to review propositions :) regards, Bapt --a+b56+3nqLzpiR9O Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlBTMxUACgkQ8kTtMUmk6Ew2+QCbBjGrmGYp9xDOxrVpoV19pMCv PvsAn3PHM+6m0RyY+XCTFvpjZ3pigayl =LE4n -----END PGP SIGNATURE----- --a+b56+3nqLzpiR9O--