Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2003 12:24:54 +0200
From:      Roman Neuhauser <neuhauser@bellavista.cz>
To:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Re: *_DEPENDS, and getting the wrong versions
Message-ID:  <20030423102454.GD24616@freepuppy.bellavista.cz>
In-Reply-To: <20030423095207.GA68462@rot13.obsecurity.org>
References:  <20030422095141.GH13541@freepuppy.bellavista.cz> <20030422172935.GD64086@rot13.obsecurity.org> <20030423090813.GA24616@freepuppy.bellavista.cz> <20030423095207.GA68462@rot13.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
# kris@obsecurity.org / 2003-04-23 02:52:07 -0700:
> On Wed, Apr 23, 2003 at 11:08:13AM +0200, Roman Neuhauser wrote:
> > # kris@obsecurity.org / 2003-04-22 10:29:35 -0700:
> > > On Tue, Apr 22, 2003 at 11:51:41AM +0200, Roman Neuhauser wrote:
> > > > one of the headaches using ports gives me is that it requires too much
> > > > attention. Let me explain this. Think a port that can link in
> > > > libmysqlclient.so.1{0,2}, and will function the same with either of
> > > > them. Most ports today will
> > > 
> > > Just use a regexp in the dependency :-)
> > 
> >     does not compute. care to give an example?
> 
> LIB_DEPENDS can accept regexps thesedays instead of an exact library
> name like foo.1 (see the commit logs for bsd.port.mk).  I don't know
> if it's used anywhere yet.

    nice. has anyone actually used it? how many ports install more than
    one version of a library? how will it help me? libmysqlclient.10 is
    installed by databases/mysql323-client, libmysqlclient.12 by
    databases/mysql40-client.
    
    1. there's no support for regexps in the $dir part
    2. it's not clear to me how the code would pair all possible strings
       matched by the regexp if such support was there.
    3. there could be other stuff conditionalized on the library
       version, but the port Makefile would need to duplicate the code
       in bsd.port.mk or look inside ${LIB_DEPENDS} to find out *which*
       version is being used.

    Or is it just my thick skull?

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html



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