acfdf21f0b
The bump to meson 1.2.0 triggers unexpected build failure of the host packages, because meson changed the way it passes library search paths when building natively:59cfbf68e0
http://lists.busybox.net/pipermail/buildroot/2023-August/672649.html As a consequence, the libraries are searched for in the system paths before being searched in our host-dir, leading to failures when incompatible libraries are installed in both locations. For example, if the system has an older version of libglib2 installed, this causes link failures when one of the glib2 library (e.g. libgio) is linked by path, but a dependent library (e.g. libgmodule) is linked by name: /path/to/host/lib/libgio-2.0.so -L /path/to/host/lib/ -lgmodule-2.0 The first is indeed the one we built and installed in host-dir, but the second is found in the system path; when it is an older (or more recent?) version than the one we use, the link fails; /path/to/host/lib/libgio-2.0.so: undefined reference to `g_module_open_full' Since fixing the issue is not trivial, revert to the previous meson version that did not exhibit the issue. This reverts commitd06e610d58
. Reported-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
22 lines
651 B
Makefile
22 lines
651 B
Makefile
################################################################################
|
|
#
|
|
# meson
|
|
#
|
|
################################################################################
|
|
|
|
MESON_VERSION = 1.1.1
|
|
MESON_SITE = https://github.com/mesonbuild/meson/releases/download/$(MESON_VERSION)
|
|
MESON_LICENSE = Apache-2.0
|
|
MESON_LICENSE_FILES = COPYING
|
|
MESON_SETUP_TYPE = setuptools
|
|
|
|
HOST_MESON_DEPENDENCIES = host-ninja
|
|
|
|
# Avoid interpreter shebang longer than 128 chars
|
|
define HOST_MESON_SET_INTERPRETER
|
|
$(SED) '1s:.*:#!/usr/bin/env python3:' $(HOST_DIR)/bin/meson
|
|
endef
|
|
HOST_MESON_POST_INSTALL_HOOKS += HOST_MESON_SET_INTERPRETER
|
|
|
|
$(eval $(host-python-package))
|