[pdal] 01/01: Add patch to fix HDF5 include directory with CMake >= 3.6.0.
Bas Couwenberg
sebastic at debian.org
Sun Aug 28 13:37:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository pdal.
commit 0090a175844272fc23ec1dd63281e2f48b55dea9
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sun Aug 28 15:03:29 2016 +0200
Add patch to fix HDF5 include directory with CMake >= 3.6.0.
---
debian/changelog | 6 ++++++
debian/patches/cmake-3.6-hdf5.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 4 ----
4 files changed, 25 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index c947f6b..7640714 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+pdal (1.3.0~rc1-1~exp2) UNRELEASED; urgency=medium
+
+ * Add patch to fix HDF5 include directory with CMake >= 3.6.0.
+
+ -- Bas Couwenberg <sebastic at debian.org> Sun, 28 Aug 2016 15:02:48 +0200
+
pdal (1.3.0~rc1-1~exp1) experimental; urgency=medium
* New upstream release candidate.
diff --git a/debian/patches/cmake-3.6-hdf5.patch b/debian/patches/cmake-3.6-hdf5.patch
new file mode 100644
index 0000000..dcd044a
--- /dev/null
+++ b/debian/patches/cmake-3.6-hdf5.patch
@@ -0,0 +1,18 @@
+Description: Fix HDF5 include directory with CMake >= 3.6.0.
+ HDF5_INCLUDE_DIR is deprecated some time ago,
+ only HDF5_INCLUDE_DIRS is set now.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://github.com/PDAL/PDAL/pull/1292
+
+--- a/cmake/hdf5.cmake
++++ b/cmake/hdf5.cmake
+@@ -5,6 +5,9 @@
+ set (HDF5_FIND_COMPONENTS "CXX")
+ find_package(HDF5 COMPONENTS CXX REQUIRED)
+ if(HDF5_FOUND)
++ if(HDF5_INCLUDE_DIRS AND NOT HDF5_INCLUDE_DIR)
++ set(HDF5_INCLUDE_DIR ${HDF5_INCLUDE_DIRS})
++ endif()
+ include_directories(${HDF5_INCLUDE_DIR})
+ add_definitions(-DHAVE_HDF5=1)
+ set(PDAL_HAVE_HDF5 1)
diff --git a/debian/patches/series b/debian/patches/series
index ffd5b44..51e05e7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ privacy-breach.patch
disable-sphinxcontrib-bibtex.patch
use-mathjax-package.patch
spelling-errors.patch
+cmake-3.6-hdf5.patch
diff --git a/debian/rules b/debian/rules
index 66a537b..0d3bf08 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,10 +7,6 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
CXXFLAGS += $(CPPFLAGS)
-ifneq ($(wildcard /usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial/libhdf5.so),)
- export DEB_CXXFLAGS_MAINT_APPEND := -I/usr/include/hdf5/serial
-endif
-
UPSTREAM_VERSION = $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//; s/^[0-9]://')
BUILD_DATE = $(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C date -u "+%d %B %Y" -f -)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pdal.git
More information about the Pkg-grass-devel
mailing list