[petsc] 05/07: Configure for hdf5 using pkg-config
Drew Parsons
dparsons at moszumanska.debian.org
Wed Nov 1 18:34:30 UTC 2017
This is an automated email from the git hooks/post-receive script.
dparsons pushed a commit to branch experimental
in repository petsc.
commit 909bcd4cc203c08cfd2720ab6ccd12d82be05fd8
Author: Drew Parsons <dparsons at debian.org>
Date: Thu Nov 2 01:58:33 2017 +0800
Configure for hdf5 using pkg-config
Upstream recommends to not use --with-hdf5-dir.
Best to use --with-hdf5-pkg-config or (better tested)
--with-hdf5-include --with-hdf5-lib
---
debian/changelog | 1 +
debian/rules | 7 ++-----
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 8ae1f36..de1e531 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,7 @@ petsc (3.8.0+dfsg1-1exp1) UNRELEASED; urgency=medium
configure-kfreebsd8.patch
* New package structure: drop patch-specific versions and alternatives
i.e. drop 3.8.0 specific packages, any 3.8.Z will satisfy petsc3.8
+ * Configure for hdf5 using pkg-config.
-- Drew Parsons <dparsons at debian.org> Thu, 19 Oct 2017 09:59:02 +0800
diff --git a/debian/rules b/debian/rules
index 53b627c..16dc7af 100755
--- a/debian/rules
+++ b/debian/rules
@@ -49,10 +49,6 @@ MPI_DEPENDS=$(shell debian/extract_MPI_dependency)
# facilitate build-time testing (invoking OpenMPI) when building in a chroot (pbuilder or sbuild)
export OMPI_MCA_plm_rsh_agent=/bin/false
-HDF5_SERIAL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial
-HDF5_MPI_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/$(ARCH_DEFAULT_MPI_IMPL)
-PETSC_HDF5_FLAGS=$(shell if [ -e $(HDF5_MPI_DIR)/libhdf5.so ]; then echo "--with-hdf5=1 --with-hdf5-dir=$(HDF5_MPI_DIR)"; else if [ -e $(HDF5_SERIAL_DIR)/libhdf5.so ]; then echo "--with-hdf5=1 --with-hdf5-dir=$(HDF5_SERIAL_DIR)"; fi; fi)
-
PETSC_REAL_BUILD_DIR=$(PETSC_ARCH)-real
PETSC_REAL_DEBUG_BUILD_DIR=$(PETSC_ARCH)-real-debug
PETSC_COMPLEX_BUILD_DIR=$(PETSC_ARCH)-complex
@@ -106,7 +102,8 @@ CONFIGURATION_OPTIONS=--with-shared-libraries --with-pic=1 \
--with-ptscotch=1 --with-ptscotch-include=/usr/include/scotch --with-ptscotch-lib="-lptesmumps -lptscotch -lptscotcherr" \
--with-fftw=1 --with-fftw-include=[] --with-fftw-lib="-lfftw3 -lfftw3_mpi" \
--with-superlu=1 --with-superlu-include=/usr/include/superlu --with-superlu-lib=-lsuperlu \
- $(PETSC_HDF5_FLAGS) --CXX_LINKER_FLAGS="-Wl,--no-as-needed"
+ --with-hdf5-pkg-config=/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \
+ --CXX_LINKER_FLAGS="-Wl,--no-as-needed"
# hypre is only supported with real numbers, not complex
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/petsc.git
More information about the debian-science-commits
mailing list