[pdal] 01/05: Add patch to fix build failure on GNU/Hurd.
Bas Couwenberg
sebastic at debian.org
Sun Jul 3 14:43:23 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 df1373725c2cb86f9f567e243117098e0b49152a
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sun May 15 10:08:02 2016 +0200
Add patch to fix build failure on GNU/Hurd.
---
debian/changelog | 6 ++++++
debian/patches/hurd.patch | 39 +++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 46 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 041afc3..b235021 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+pdal (1.2.0-3) UNRELEASED; urgency=medium
+
+ * Add patch to fix build failure on GNU/Hurd.
+
+ -- Bas Couwenberg <sebastic at debian.org> Sat, 30 Apr 2016 15:30:38 +0200
+
pdal (1.2.0-2) unstable; urgency=medium
* Bump Standards-Version to 3.9.8, no changes.
diff --git a/debian/patches/hurd.patch b/debian/patches/hurd.patch
new file mode 100644
index 0000000..5a1388d
--- /dev/null
+++ b/debian/patches/hurd.patch
@@ -0,0 +1,39 @@
+Description: Add support for GNU/Hurd to portable_endian.hpp.
+ The Hurd porting guidelines document the following:
+ "
+ Missing linux/types.h, asm/types.h, linux/limits.h, asm/byteorder.h,
+ sys/endian.h, asm/ioctl.h, asm/ioctls.h, linux/soundcard.h
+
+ These are often used (from lame rgrep results) instead of their standard
+ equivalents: sys/types.h (or stdint.h for fixed-size types), limits.h,
+ endian.h, sys/ioctl.h, sys/soundcard.h
+ "
+ https://www.gnu.org/software/hurd/hurd/porting/guidelines.html#linux_headers
+ .
+ Hurd also uses the .so extension for dynamic libraries like Linux & kFreeBSD.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://github.com/PDAL/PDAL/pull/1250
+Applied-Upstream: https://github.com/PDAL/PDAL/commit/9650bd0601cf7fdead73d8a115cf8872b3b7971e
+
+--- a/include/pdal/util/portable_endian.hpp
++++ b/include/pdal/util/portable_endian.hpp
+@@ -10,7 +10,7 @@
+
+ #endif
+
+-#if defined(__linux__) || defined(__CYGWIN__)
++#if defined(__linux__) || defined(__CYGWIN__) || defined(__GNU__)
+
+ # include <endian.h>
+
+--- a/src/PluginManager.cpp
++++ b/src/PluginManager.cpp
+@@ -61,7 +61,7 @@ static PluginManager s_instance;
+
+ #if defined(__APPLE__) && defined(__MACH__)
+ const std::string dynamicLibraryExtension(".dylib");
+-#elif defined(__linux__) || defined(__FreeBSD_kernel__)
++#elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__GNU__)
+ const std::string dynamicLibraryExtension(".so");
+ #elif defined _WIN32
+ const std::string dynamicLibraryExtension(".dll");
diff --git a/debian/patches/series b/debian/patches/series
index 4371720..7304e66 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
jsoncpp.patch
privacy-breach.patch
+hurd.patch
--
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