From bea6563210721aff44548b07fa934922a3fc3e2c Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@esi-group.com> Date: Mon, 12 Oct 2020 10:34:43 +0200 Subject: [PATCH] CONFIG: ptscotch header not found on ArchLinux (fixes #1877) - on ArchLinux, everything is installed under /usr/include/scotch. The detection script uses SCOTCH_ARCH_PATH as an initial guess for ptscotch as well. However, on the second pass, it has an absolute value ("/usr") instead of a logical one ("scotch-system"). This resulted in the logic for handling scotch+ptscotch subdirs being bypassed. --- wmake/scripts/have_scotch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wmake/scripts/have_scotch b/wmake/scripts/have_scotch index ca00bba6fc2..fb7182a0dd8 100644 --- a/wmake/scripts/have_scotch +++ b/wmake/scripts/have_scotch @@ -90,6 +90,7 @@ search_scotch() then header=$(findFirstFile \ "$prefix/include/$localDir/$incName" \ + "$prefix/include/scotch/$incName" \ "$prefix/include/$incName" \ ) library=$(findExtLib "$libName") @@ -201,12 +202,15 @@ search_ptscotch() header=$(findFirstFile \ "$prefix/include/$FOAM_MPI/$incName" \ "$prefix/include/$localDir/$incName" \ + "$prefix/include/ptscotch/$incName" \ + "$prefix/include/scotch/$incName" \ "$prefix/include/$incName" ) library="$(findExtLib $FOAM_MPI/$libName $libName)" elif isSystem "$prefix" then header=$(findFirstFile \ + "/usr/local/include/$localDir/$incName" \ "/usr/local/include/ptscotch/$incName" \ "/usr/local/include/scotch/$incName" \ "/usr/local/include/$incName" \ -- GitLab