Skip to content

Commit

Permalink
ci: skip frameworks/17 mpi for auto/pkgconfig on Ubuntu
Browse files Browse the repository at this point in the history
The pkgconfig file in Debian and Ubuntu is definitely broken and we've
reported it upstream, but we don't really want to keep our image building
failing while we wait for that to be fixed.

Skip the auto/pkgconfig test if both: a) we're on Ubuntu, and b) the .pc
checksum matches a known-bad copy. I'm also CC'd to the bug to catch if it
gets fixed.

Bug: https://bugs.debian.org/1078026
  • Loading branch information
thesamesam committed Aug 19, 2024
1 parent 9f85279 commit 9c3dcea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 10 additions & 0 deletions test cases/frameworks/17 mpi/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
6 changes: 4 additions & 2 deletions test cases/frameworks/17 mpi/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"] },
{
Expand Down

0 comments on commit 9c3dcea

Please sign in to comment.