*_DEPENDS, and getting the wrong versions

Roman Neuhauser neuhauser at bellavista.cz
Wed Apr 23 03:25:05 PDT 2003


# kris at obsecurity.org / 2003-04-23 02:52:07 -0700:
> On Wed, Apr 23, 2003 at 11:08:13AM +0200, Roman Neuhauser wrote:
> > # kris at 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


More information about the freebsd-ports mailing list