[pdal] 11/12: Add patch to fix build failure on GNU/Hurd.

Bas Couwenberg sebastic at debian.org
Sat Aug 27 13:10:11 UTC 2016


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master-git
in repository pdal.

commit 70a686df33d3c3a1e6329ebe10f99640e9adefb1
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          |  1 +
 debian/patches/hurd.patch | 39 +++++++++++++++++++++++++++++++++++++++
 debian/patches/series     |  1 +
 3 files changed, 41 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 58fb8cc..4981e6f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,7 @@ pdal (1.2.0+git20160429-cbe9b08-1) UNRELEASED; urgency=medium
   * Add patch to fix websocketpp detection for greyhound plugin.
   * Use libjs-mathjax package for sphinx documentation.
   * Add missing sources for minified JS used in documentation.
+  * Add patch to fix build failure on GNU/Hurd.
 
  -- Bas Couwenberg <sebastic at debian.org>  Sat, 30 Apr 2016 15:30:38 +0200
 
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 26bdc22..276d7dd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ dont-require-nitro.patch
 dont-require-sphinxcontrib-bibtex.patch
 find-websocketpp.patch
 use-local-mathjax.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