Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2005 08:30:36 -0800
From:      "Michael C. Shultz" <ringworm01@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: devel/pcre and WITH_UTF8
Message-ID:  <200502210830.37208.ringworm01@gmail.com>
In-Reply-To: <20050221161638.GA49381@pc5-179.lri.fr>
References:  <20050221142951.GA48781@pc5-179.lri.fr> <20050221155832.GJ51280@zi025.glhnet.mhn.de> <20050221161638.GA49381@pc5-179.lri.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 21 February 2005 08:16 am, Marwan Burelle wrote:
> On Mon, Feb 21, 2005 at 04:58:32PM +0100, Simon Barner wrote:
> > We probably need a mechanism to require compile time options via
> > the dependency mechanism.
> >
> > The following idea just popped into my mind (probably most
> > applicable to OPTIONs):
> >  - encode the set of chosen options into the package name
> >  - enhance the dependency tracking algorithm to accept the
> > installed version of a port if and only if the set of installed
> > options is a super-set of the set of requested options.
> >
> > Admittedly, this might result in lengthy package names (but that's
> > the same if popular combination of options are encoded as slave
> > ports).
>
> Hum, this can break the DEPEND mechanism, actualy it used the
> existance of the desired lib/binary and refer to port/package only if
> it's not here, so you can satisfy a depency wihtout using ports
> ... (I'm not sure if it wanted, but it could be usefull ;)
>
> For the port I'm talking about, I can think of a way to test if pcre
> has UTF8 support, but not on how to force reinstall.

This seems like a good solution on its own. Just do the test you 
described, if it fails print a message that says pcre needs to be built 
with WITH_UTF8=yes or however that port sets its options. No need
to modify the ports system.

-Mike

>
> By the way, would it be simpler to record the build option in
> /var/db/pkg ? In fact, ports using "make config" already record
> option in /var/db/ports, generalizing this for non-interactive ports
> could be a good starting point.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502210830.37208.ringworm01>