Index | Thread | Search

From:
Otto Moerbeek <otto@drijf.net>
Subject:
meson vs boost
To:
ports@openbsd.org
Cc:
Antoine Jacoutot <ajacoutot@openbsd.org>
Date:
Fri, 22 Mar 2024 13:54:13 +0100

Download raw body.

Thread
  • Otto Moerbeek:

    meson vs boost

Hi,

at PowerDNS we are starting to use meson builds and I hit upon a snag
wrt boost.

When searching for libs, only .a's are found, all boost .so's are
skipped. I tracked it down to line 608 in

./mesonbuild/dependencies/boost.py:filter_libraries:

	libs = [x for x in libs if x.version_matches(lib_vers)]

Here lib_vers is set to the boost version 1_84, but presumably the .so
version is used to compare against. On other systems that is the
convention, but on OpenBSD that does not match.

Disabling this line makes things work.

So there seem to be two possible solutions: make the so version match
the boost version, or just skip the test.

I think the latter is preferred. If that's ok, I'll prep a diff.

	-Otto