[pdal] 02/04: Add patch for kFreeBSD support.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Sun Mar 20 20:35:37 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 6d670827c30bf33621f50885188d359915dd06a0
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sun Mar 20 20:53:46 2016 +0100

    Add patch for kFreeBSD support.
---
 debian/changelog              |  1 +
 debian/patches/kfreebsd.patch | 18 ++++++++++++++++++
 debian/patches/series         |  1 +
 3 files changed, 20 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 504ffaa..445ef5c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 pdal (1.1.0-2) UNRELEASED; urgency=medium
 
   * Add patch to fix FTBFS on big endian architectures.
+  * Add patch for kFreeBSD support.
 
  -- Bas Couwenberg <sebastic at debian.org>  Sun, 20 Mar 2016 19:55:42 +0100
 
diff --git a/debian/patches/kfreebsd.patch b/debian/patches/kfreebsd.patch
new file mode 100644
index 0000000..e508012
--- /dev/null
+++ b/debian/patches/kfreebsd.patch
@@ -0,0 +1,18 @@
+Description: Add support for kFreeBSD architectures.
+ Treat like Linux, has GNU libc.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://github.com/PDAL/PDAL/pull/1187
+
+--- a/include/pdal/util/portable_endian.hpp
++++ b/include/pdal/util/portable_endian.hpp
+@@ -58,6 +58,10 @@
+ #   define be64toh betoh64
+ #   define le64toh letoh64
+                    
++#elif defined(__FreeBSD_kernel__)
++     
++#   include <endian.h>
++      
+ #elif defined(__WINDOWS__)
+                     
+ #   include <winsock2.h>
diff --git a/debian/patches/series b/debian/patches/series
index 506c185..2339c85 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ hardening.patch
 mod-spatialite.patch
 jsoncpp.patch
 big-endian.patch
+kfreebsd.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