From 020610cfbe55870e9ca3c8206328112b95e0ec4e Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 24 Jul 2023 19:34:19 -0700 Subject: modules/pkgconfig: Don't insert None into devenv list When the pkgconfig module is imported, but not used, it will insert None on the end of the devenv list. This list is not expected to contain None, and causes Meson to crash. This can happen in complex build setups (reported from mesa), where pkgconfig is only used in some configurations Fixes: #12032 --- test cases/unit/90 devenv/meson.build | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test cases/unit') diff --git a/test cases/unit/90 devenv/meson.build b/test cases/unit/90 devenv/meson.build index 72d8fdc33..316b20c62 100644 --- a/test cases/unit/90 devenv/meson.build +++ b/test cases/unit/90 devenv/meson.build @@ -20,3 +20,6 @@ env = environment({'TEST_C': ['/prefix']}, method: 'prepend') meson.add_devenv(env) env = environment({'TEST_C': ['/suffix']}, method: 'append') meson.add_devenv(env) + +# Reproducer for https://github.com/mesonbuild/meson/issues/12032 +pkgconf = import('pkgconfig') -- cgit v1.2.3