pts-core: Fixes for running on openSUSE
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
</Package>
|
||||
<Package>
|
||||
<GenericName>p7zip</GenericName>
|
||||
<PackageName>p7zip-full</PackageName>
|
||||
<PackageName>7zip</PackageName>
|
||||
</Package>
|
||||
<Package>
|
||||
<GenericName>bison</GenericName>
|
||||
|
||||
@@ -1821,6 +1821,11 @@ class pts_client
|
||||
$path .= ':' . $d;
|
||||
}
|
||||
}
|
||||
foreach(pts_file_io::glob('/usr/lib*/mpi/*/*/bin/') as $mpi_bin_path)
|
||||
{
|
||||
// openSUSE has e.g. /usr/lib64/mpi/gcc/openmpi4/bin for mpicxx that otherwise is not appearing in default PATH on modern Tumbleweed
|
||||
$path .= ':' . $mpi_bin_path;
|
||||
}
|
||||
}
|
||||
|
||||
return $path;
|
||||
|
||||
@@ -755,6 +755,11 @@ class pts_test_installer
|
||||
$test_install_request->compiler_mask_dir = $mask_dir;
|
||||
// Appending the rest of the path will be done automatically within call_test_script
|
||||
$test_install_request->special_environment_vars['PATH'] = $mask_dir . (is_dir('/usr/lib64/openmpi/bin') ? ':/usr/lib64/openmpi/bin' : null);
|
||||
foreach(pts_file_io::glob('/usr/lib*/mpi/*/*/bin/') as $mpi_bin_path)
|
||||
{
|
||||
// openSUSE has e.g. /usr/lib64/mpi/gcc/openmpi4/bin for mpicxx that otherwise is not appearing in default PATH on modern Tumbleweed
|
||||
$test_install_request->special_environment_vars['PATH'] .= ':' . $mpi_bin_path;
|
||||
}
|
||||
}
|
||||
|
||||
// Additional workarounds
|
||||
|
||||
Reference in New Issue
Block a user