diff options
-rw-r--r-- | mesonbuild/dependencies/pkgconfig.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/pkgconfig.py b/mesonbuild/dependencies/pkgconfig.py index da1d72f..26a77e3 100644 --- a/mesonbuild/dependencies/pkgconfig.py +++ b/mesonbuild/dependencies/pkgconfig.py @@ -425,6 +425,10 @@ class PkgConfigDependency(ExternalDependency): return None command_as_string = ' '.join(pkgbin.get_command()) try: + helptext = Popen_safe(pkgbin.get_command() + ['--help'])[1] + if 'Pure-Perl' in helptext: + mlog.log(f'found pkg-config {command_as_string!r} but it is Strawberry Perl and thus broken. Ignoring...') + return None p, out = Popen_safe(pkgbin.get_command() + ['--version'])[0:2] if p.returncode != 0: mlog.warning(f'Found pkg-config {command_as_string!r} but it failed when run') |