diff --git a/test cases/frameworks/17 mpi/meson.build b/test cases/frameworks/17 mpi/meson.build index d1d89915579f..5d233bfb217e 100644 --- a/test cases/frameworks/17 mpi/meson.build +++ b/test cases/frameworks/17 mpi/meson.build @@ -32,6 +32,16 @@ test('MPI C++', execpp, timeout: 20) if add_languages('fortran', required : false) + if method in ['auto', 'pkg-config'] + # https://bugs.debian.org/1078026 + fs = import('fs') + if fs.exists('/usr/lib/x86_64-linux-gnu/pkgconfig/ompi-fort.pc') + if fs.hash('/usr/lib/x86_64-linux-gnu/pkgconfig/ompi-fort.pc', 'md5') == '0892a93630e3d3359c43c58d5a82efc0' + error('MESON_SKIP_TEST: openmpi pkgconfig file is broken on Debian/Ubuntu') + endif + endif + endif + fc = meson.get_compiler('fortran') mpif = dependency('mpi', language : 'fortran', required: false, method : method) if not fc.links('use mpi; end', dependencies: mpif, name: 'Fortran MPI') diff --git a/test cases/frameworks/17 mpi/test.json b/test cases/frameworks/17 mpi/test.json index cbd1686121c5..3a46657ef112 100644 --- a/test cases/frameworks/17 mpi/test.json +++ b/test cases/frameworks/17 mpi/test.json @@ -2,8 +2,10 @@ "matrix": { "options": { "method": [ - { "val": "auto" }, - { "val": "pkg-config" }, + { "val": "auto", + "expect_skip_on_jobname": ["ubuntu"] }, + { "val": "pkg-config", + "expect_skip_on_jobname": ["ubuntu"] }, { "val": "config-tool", "expect_skip_on_jobname": ["fedora"] }, {