mochi-hpc / mochi-ssg

Scalable Service Groups (SSG), a group membership service for Mochi
Other
1 stars 1 forks source link

ssg pkgconfig requires pmix even if built without pmix support #27

Closed shanedsnyder closed 3 years ago

shanedsnyder commented 3 years ago

In GitLab by @carns on Jan 5, 2021, 10:29

Spack package built with spec:

jddkttl mochi-ssg@0.4.3.1%gcc ~drc+mpi~pmix patches=f23321ff82fad59b2abb6bab5e6b017cabfcf5ef3a9910b93133799fe963c18a

Has this .pc file:

$ cat `spack location -i mochi-ssg`/lib/pkgconfig/ssg.pc
prefix=/autofs/nccs-svm1_home1/carns/working/src/spack/opt/spack/linux-rhel7-power9le/gcc-9.1.0/mochi-ssg-0.4.3.1-jddkttlr5lcq6buk3lgj3ljcbizghe7w
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: ssg
Description: Scalable Service Groups (SSG) interface for Mercury
Version: 0.3
URL: https://xgitlab.cels.anl.gov/sds/ssg
Requires: margo
Requires.private: pmix
Libs: -L${libdir} -lssg
Cflags: -I${includedir}

Actually looks like the version number in the .pc file is off also? Might need to sync configure.ac header, pkgconfig, git tag, and package.py.

Workaround is to edit ssg.pc and remove pmix dependency.

shanedsnyder commented 3 years ago

In GitLab by @carns on Jan 5, 2021, 10:40

changed the description

shanedsnyder commented 3 years ago

In GitLab by @shanedsnyder on Jan 21, 2021, 09:52

This should have been resolved via bdfc980d

SSG was checking for PMIx support but didn't check whether PMIx included a pkgconfig file before it indiscriminately added pmix as a dependency in SSG's pgkconfig file. Now we check if a PMIx pkgconfig file is available before adding it as a dependency.

shanedsnyder commented 3 years ago

In GitLab by @shanedsnyder on Jan 21, 2021, 09:52

closed