summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Sachs <stesachs@amazon.com>2023-03-17 00:02:02 +0100
committerGitHub <noreply@github.com>2023-03-16 16:02:02 -0700
commit38383743e7ed4cdb831611635171a7c1b2d3e8f3 (patch)
treecf7c5ca2023de72ff66f8abb20aa7be742561542
parent8b94cc4ec29f41ba291c6c5cd474ff19d63289cf (diff)
downloadspack-38383743e7ed4cdb831611635171a7c1b2d3e8f3.tar.gz
spack-38383743e7ed4cdb831611635171a7c1b2d3e8f3.tar.bz2
spack-38383743e7ed4cdb831611635171a7c1b2d3e8f3.tar.xz
spack-38383743e7ed4cdb831611635171a7c1b2d3e8f3.zip
pmix, openmpi, and prrte need to use the same `configure` to find the same deps (#36105)
* [openmpi] 5.0.0.rc10 onwards needs munge This is the error you will see when munge is missing from `PKG_CONFIG_PATH`: ``` configure:63942: checking for pmix pkg-config cflags configure:63956: check_package_pkgconfig_run_results=Package munge was not found in the pkg-config search path. Perhaps you should add the directory containing `munge.pc' to the PKG_CONFIG_PATH environment variable Package 'munge', required by 'pmix', not found configure:63959: $? = 1 configure:63966: pkg-config output: Package munge was not found in the pkg-config search path. Perhaps you should add the directory containing `munge.pc' to the PKG_CONFIG_PATH environment variable Package 'munge', required by 'pmix', not found configure:63972: result: error configure:63974: error: An error occurred retrieving pmix cppflags from pkg-config ``` * Use same PKG_CONFIG_PATH defaults for ompi+pmix+prrte The issue I tried to fix in https://github.com/spack/spack/pull/36105 comes from different default search paths in different `pkg-config` executables used in `openmpi` and `pmix` package. As these tools (`openmpi`, `pmix`, and `prrte`) all use the same mechanisms to detect dependencies, the `pkg-config` environment they use should also be equal.
-rw-r--r--var/spack/repos/builtin/packages/pmix/package.py1
-rw-r--r--var/spack/repos/builtin/packages/prrte/package.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pmix/package.py b/var/spack/repos/builtin/packages/pmix/package.py
index 1863d2e726..0362e858d1 100644
--- a/var/spack/repos/builtin/packages/pmix/package.py
+++ b/var/spack/repos/builtin/packages/pmix/package.py
@@ -80,6 +80,7 @@ class Pmix(AutotoolsPackage):
depends_on("libtool", type="build", when="@master")
depends_on("perl", type="build", when="@master")
depends_on("pandoc", type="build", when="+docs")
+ depends_on("pkgconfig", type="build")
depends_on("libevent@2.0.20:")
depends_on("hwloc@1.0:1", when="@:2")
diff --git a/var/spack/repos/builtin/packages/prrte/package.py b/var/spack/repos/builtin/packages/prrte/package.py
index 8e37370eef..ca26c89b44 100644
--- a/var/spack/repos/builtin/packages/prrte/package.py
+++ b/var/spack/repos/builtin/packages/prrte/package.py
@@ -33,6 +33,7 @@ class Prrte(AutotoolsPackage):
depends_on("automake", type=("build"))
depends_on("libtool", type=("build"))
depends_on("flex", type=("build"))
+ depends_on("pkgconfig", type="build")
def autoreconf(self, spec, prefix):
# If configure exists nothing needs to be done