Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Sep 2014 01:36:23 +0100
From:      Gary Palmer <gpalmer@freebsd.org>
To:        Brandon Allbery <allbery.b@gmail.com>
Cc:        Michael Ross <gmx@ross.cx>, FreeBSD Stable Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: pkg question - Difference pkg vs port
Message-ID:  <20140904003623.GA10423@in-addr.com>
In-Reply-To: <CAKFCL4Xx9MUdiTTzNcAmiGpKPnNVUfmp%2BK%2BuMpjaZzJ1cZQZyQ@mail.gmail.com>
References:  <op.xlmsddjrg7njmm@michael-think> <CAKFCL4UX1Z-UsJYix8RR1eSkU38j04UE3WOt7d-Wz4yZX9J9OQ@mail.gmail.com> <op.xlmwnmovg7njmm@michael-think> <CAKFCL4Xx9MUdiTTzNcAmiGpKPnNVUfmp%2BK%2BuMpjaZzJ1cZQZyQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 03, 2014 at 07:32:48PM -0400, Brandon Allbery wrote:
> On Wed, Sep 3, 2014 at 7:24 PM, Michael Ross <gmx@ross.cx> wrote:
> 
> > "Anything that provides" I think is the key to where I started thinking
> > wrong:
> >
> > The dependency is not "Shared libs required" libmysqlclient.so.18,
> > but one specific port that provides libmysqlclient.so.18 - mysql55-client.
> >
> 
> Ports can do "provides library" dependencies. Packages can only depend on
> packages. You can try to force it but you could also confuse your package
> database rather badly.

Why can't packages check to see if the library exists and use it if it
does?  RPM does something like that, although I think they go much
further with that process.

In this case, AFAIK the mysql client library API is stable - the 5.5 and
5.6 library versions should have the same API so the requirement to
install the 5.5 package is a bit silly.

(I'm dreading this e-mail taking us down the RPM path of dozens of
 different packages that make up one program, foo-devel, foo-libs,
 foo-client, etc)

Gary



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