State of Provides/Requires

Baptiste Daroussin bapt at freebsd.org
Sat Jul 16 16:26:11 UTC 2016


On Sat, Jul 16, 2016 at 12:00:15PM -0400, Atomic Beef wrote:
> On Sat, Jul 16, 2016 at 11:13 AM, Baptiste Daroussin <bapt at freebsd.org>
> wrote:
> 
> > Provides/Requires has been added in pkg around 1.4 (iirc)
> >
> > They are not perfect and we would prefer to use what we call flexible
> > dependencies instead. that said flexible dependencies are not any close to
> > be
> > implemented. So I think we should use current provides/requires mechanism
> > in the
> > mean time.
> >
> > To use them the only issue in on the ports tree itself
> >
> > Best regards,
> > Bapt
> >
> What are the differences between flexible dependencies and the current
> provides/requires implementation? What needs to be done to the ports tree
> to allow for the use of provides/requires?

Current provides/requires are basic keywords that should exactly match

Flexible dependencies is a formula like

php > 9 < 9.5, libmysql.so.X; gmake = 12

All the current form of dependencies (shlibs, provides/requires, regular deps)
can be expressed in a single form without the need of special treatment.

To implements in ports the goal is to add everywhere in the ports things
informations that will be exposed in the manifest as provides: [ X, Y, Z]
and a way to express when requiring X, the default build package will be libX
but will not be registered as a deps because the requires line in the manifest
will handle the deps.

Noone really started working on the port side.

Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20160716/104fec34/attachment.sig>


More information about the freebsd-pkg mailing list