[build2] Using build2 packages installed by bpkg
Markus Pawellek
markuspawellek at gmail.com
Tue Mar 10 17:13:33 UTC 2020
Sorry for my late answer.
Per Edin <per.edin at sequence-point.se> wrote:
> Maybe https://build2.org/build2-toolchain/doc/build2-toolchain-intro.xhtml#guide-system-deps can help you? I guess that should work even for dependencies installed using bpkg.
Boris Kolpackov <boris at codesynthesis.com> wrote:
> 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.
I have to excuse myself. You are completely right.
I was not aware of the fact that it is possible to specify
system-installed dependencies while creating new configurations with
custom options by using 'bdep init -C'.
Reading through the manual pages of 'bdep-init' made it clear to me
that there exists a separate configuration for packages.
Is there some kind of flag to automatically make the configuration use
system-installed packages for all dependencies which are already
installed and meeting the version constraint?
> 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.
Would this be the same feature as the 'export(PACKAGE ...)'
functionality of CMake?
Greetings
Markus
More information about the users
mailing list