Re: [PATCH v5 1/1] build: Add meson build system

Marcel Holtmann <[email protected]> Fri, 12 Sep 2025 11:30:22 +0200
Newsgroups dev.linux.lists.ell
Message-ID <[email protected]>
Hi Bastien,

> --enable-pie is replaced by the meson base option "b_pie":
> https://mesonbuild.com/Builtin-options.html#base-options
>=20
> --enable-maintainer-mode is replaced by the "debug" build-types:
> https://mesonbuild.com/Builtin-options.html#core-options
>=20
> --enable-debug and --disable-optimization are replaced by the
> debug build type:
> https://mesonbuild.com/Builtin-options.html#details-for-buildtype
>=20
> Each of the sanitisers have their own b_sanitize option:
> - asan: b_sanitize=3Daddress
> - lsan: b_sanitize=3Dleak
> - ubsan: b_sanitize=3Daddress,undefined
> https://mesonbuild.com/Builtin-options.html#base-options
>=20
> --enable-coverage is replaced by the b_coverage option:
> https://mesonbuild.com/Builtin-options.html#base-options
> ---
> ell/meson.build              | 187 +++++++++++++
> examples/meson.build         |  32 +++
> meson.build                  |  69 +++++
> meson_options.txt            |   5 +
> tools/meson.build            |  18 ++
> unit/gen-cert-expired-pem.sh |  14 +
> unit/meson.build             | 501 +++++++++++++++++++++++++++++++++++
> unit/xxd.sh                  |   3 +
> 8 files changed, 829 insertions(+)
> create mode 100644 ell/meson.build
> create mode 100644 examples/meson.build
> create mode 100644 meson.build
> create mode 100644 meson_options.txt
> create mode 100644 tools/meson.build
> create mode 100755 unit/gen-cert-expired-pem.sh
> create mode 100644 unit/meson.build
> create mode 100755 unit/xxd.sh

I am not a big fan of having two build tools. The reason why none of my =
projects have moved away from autoconf is that they just work fine and =
with that have as little dependencies as possible. Personally I have not =
yet seen the benefit of Meson at all. Adding more shell scripts is also =
not a solution.

ELL build has still a few issues that I would like to eradicate first. =
The usage of xxd and the openssl binary is a pain and also leaves =
artifacts around. Frankly, it would be best all the certs are created by =
a dedicated tool using libssl directly.

Regards

Marcel