Date: Fri, 21 Dec 2007 21:05:18 -0600 From: Josh Paetzel <josh@tcbug.org> To: Edwin Groothuis <edwin@mavetju.org> Cc: freebsd-ports@freebsd.org Subject: Re: Opinion on cross-port OPTIONS CONFLICTS Message-ID: <200712212105.21520.josh@tcbug.org> In-Reply-To: <20071222015059.GA82459@k7.mavetju> References: <200712211524.25454.josh@tcbug.org> <200712211613.50439.josh@tcbug.org> <20071222015059.GA82459@k7.mavetju>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart11686565.pdzfkijqIK Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 21 December 2007 07:50:59 pm Edwin Groothuis wrote: > On Fri, Dec 21, 2007 at 04:13:46PM -0600, Josh Paetzel wrote: > > On Friday 21 December 2007 03:43:19 pm Edwin Groothuis wrote: > > > On Fri, Dec 21, 2007 at 03:24:20PM -0600, Josh Paetzel wrote: > > > > I've recently run across some brokeness in ports that would be > > > > relatively trivial to deal with if one port had a way to know about > > > > the OPTIONS another port was compiled with. > > > > > > I have been working on it a not-so-long-time-ago and found that > > > this could be the best way: > > > > > > [/var/db/ports/arts] edwin@k7>cat options > > > # This file is auto-generated by 'make config'. > > > # No user-servicable parts inside! > > > # Options for arts-1.5.1_1,1 > > > _OPTIONS_READ=3Darts-1.5.1_1,1 > > > WITHOUT_ESD=3Dtrue > > > WITHOUT_NAS=3Dtrue > > > > > > [/var/db/ports/arts] edwin@k7>eval `cat options | grep -v "^\#" | sed > > > -e 's/^/arts_/'` > > > > > > [/var/db/ports/arts] edwin@k7>echo $arts_WITHOUT_NAS > > > true > > > > > > > > > I hadn't put it in a PR yet because it has some synchronity issues: > > > > > > - It only works for ports already installed. > > > - It doesn't work for ports which are being installed by this port. > > > - No idea how to do this for packages build on ye olde cluster. > > > > > > But the idea is there: > > > > > > OPTIONS_DEPENDS=3D arts > > > .include <bsd.port.pre.mk> > > > .if !defined arts_WITH_NAS > > > BROKEN=3D Please build audio/arts first before building this por= t. > > > .fi > > > .if ${arts_WITH_NAS} =3D "true" > > > BROKEN=3D This port can't work with audio/arts enabled with NAS > > > support .fi > > > > > > Edwin > > > > It also doesn't work if someone runs make rmconfig, or make config again > > and changes things after the port is installed. > > > > It probably doesn't work if a package was used to install either. > > Create a slave port audio/arts-withoutnas and let it depends on > that one. > > Edwin I don't think that's a scalable solution. It would create an explosion of= =20 ports in the already taxed tree, as well as confusion as to which port to=20 install among the users. =2D-=20 Thanks, Josh Paetzel PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB --nextPart11686565.pdzfkijqIK Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHbH7xJvkB8SevrssRApj8AJ9MbR89VBb8Gu+G6NtBQHhrApIRTACfQuL/ 1n/pYADJcJsryo24+kLWpiU= =8srX -----END PGP SIGNATURE----- --nextPart11686565.pdzfkijqIK--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712212105.21520.josh>