[build2] Arch Linux - build2-toolchain added in AUR

Boris Kolpackov boris at codesynthesis.com
Mon Aug 14 18:55:49 UTC 2017

Filipe Verri <filipeverri at gmail.com> writes:

> I've just packaged build2-toolchain in the Arch Linux User Repository:
> https://aur.archlinux.org/packages/build2-toolchain/


BTW, there is a thread going right now about packaging build2 for
Debian. You may find some information there useful:


> In the bootstrapping process, I've decided to link the dependencies
> statically, so it doesn't clash with system libraries.
> See https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=build2-toolchain
> However, by doing so, libbutl is also installed as a static library after
> the process.
> Is it possible to setup a configuration that all other dependencies are
> statically linked, but libbutl is dynamically linked?

I think a better approach would be to:

1. Package everything using individual archives (as described in the
   thread mentioned above). A bit more work but also a lot more

2. Use system packages for things like libsqlite.

3. Install libbutl and libbpkg as shared libraries.

4. Link pre-release libodb* libraries as static (and perhaps don't
   install them).


More information about the users mailing list