[build2] Using build2 packages installed by bpkg

Boris Kolpackov boris at codesynthesis.com
Tue Feb 25 13:00:26 UTC 2020


Markus Pawellek <markuspawellek at gmail.com> writes:

> is it possible to use a build2 package 'A', that was installed by bpkg
> to '/usr/local', as a system-installed dependency for another build2
> project 'X' which is stating the package 'A' as an explicit dependency
> in its manifest file by 'depends: A'?

Yes, as Per has suggested, this should work out of the box. In fact,
/usr/local is system-installed, at least from build2's POV.


> Currently, every build configuration used in a project has to download
> its dependencies anew.
> Of course, this makes sense if I would like to build the dependencies
> with the same configuration and a specific version.
> But for example, if I would use a rare-changing, header-only library
> with some specific version, it would be easier to rely on the globally
> installed package.

It's also not unreasonable to want to use such packages directly
from the build configuration without first installing them, And
this won't work as smoothly. So at some point we may want to
consider supporting "overlay configuration" or some such.



More information about the users mailing list