Date: Tue, 1 Aug 2006 23:33:02 -0500 From: "Scot Hetzel" <swhetzel@gmail.com> To: "Jeremy Messenger" <mezz7@cox.net> Cc: Jiawei Ye <leafy7382@gmail.com>, freebsd ports <freebsd-ports@freebsd.org> Subject: Re: portmaster, bison, java/jdk15 Message-ID: <790a9fff0608012133i52ed6e53t57a529d940fb2fa3@mail.gmail.com> In-Reply-To: <op.tdm2bak89aq2h7@mezz.mezzweb.com> References: <c21e92e20608012050i4721f83er5d5a6c83e54d754@mail.gmail.com> <op.tdm2bak89aq2h7@mezz.mezzweb.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 8/1/06, Jeremy Messenger <mezz7@cox.net> wrote: > On Tue, 01 Aug 2006 22:50:30 -0500, Jiawei Ye <leafy7382@gmail.com> wrote: > > > I am running into 2 problems. > > > > 1. Some ports want devel/bison as dependancy, I installed devel/bison2 > > and it works too. But when the bison1 depending port gets upgraded by > > portmaster, portmaster will insist on bringing in devel/bison, instead > > of devel/bison2. Not sure what the correct solution is. > > > > It is a known issue, I have reported to Doug a while back. I have a > workaround for it by hack in portmaster, but it is not a right solution. > Someone will have to figure a good solution. However, here's what I hacked > in portmaster. > : > As for solution, right now I am thinking about check on each port's > conflict. Like for example: > > - Check on if devel/bison has any of CONFLICT. > - CONFLICTS is devel/bison2, then check if > devel/bison2 exists. > - devel/bison2 does exist, then remove the > devel/bison out of dependency check list. > - Check if devel/bison2 needs to update. > - [...goes on as normal...] > > I don't know if it's good idea. Looks like create a database is a better > solution? > How about changing the ports that depend on bison to use something like: USE_BISON= 1+ Then either submit a Mk/bsd.bison.mk file, or patch bsd.port.mk so that it will automatically detect which version of bison is installed (see USE_[MYSQL, POSTGRESQL, BDB] in Mk/bsd.databases.mk for an example) and added it as a BUILD_DEPENDS. Note: If a port also needs bison as a RUN_DEPENDS, you could use USE_BISON_RUN= 1+, and it would automatically set both a build, and run dependancy. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0608012133i52ed6e53t57a529d940fb2fa3>