Skip to content

Commit

Permalink
build: work around broken libpmix-dev package
Browse files Browse the repository at this point in the history
Problem: libpmix-dev-4.0.0-4.1 includes a pmix.pc file
containing incorrect libs and cflags paths, which causes
the flux-pmix 'make deb' build to fail during compilation
when that package version is installed.

Set CFLAGS and LDFLAGS on the configure line to compensate
for missing -I and -L paths.
  • Loading branch information
garlick committed Jul 13, 2023
1 parent 9451bee commit bea20e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
%:
dh $@

# Work around broken .pc file in debian libpmix-dev-4.0.0-4.1
override_dh_auto_configure:
PYTHON_VERSION=3 dh_auto_configure --
CFLAGS=-I$$(pkg-config --variable=libdir pmix)/pmix2/include \
LDFLAGS=-L$$(pkg-config --variable=libdir pmix)/pmix2/lib \
dh_auto_configure

override_dh_autoreconf:
@echo not running autogen.sh on dist product
Expand Down

0 comments on commit bea20e2

Please sign in to comment.