[postgis] 01/02: Add patch to fix FTBFS on hurd-i386.
Bas Couwenberg
sebastic at xs4all.nl
Sun Sep 28 15:29:45 UTC 2014
This is an automated email from the git hooks/post-receive script.
sebastic-guest pushed a commit to branch master
in repository postgis.
commit d6d1165219252950dbea639315b5daf6f510a69a
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sun Sep 28 15:14:59 2014 +0200
Add patch to fix FTBFS on hurd-i386.
---
debian/changelog | 1 +
debian/patches/fix-hurd-i386-ftbfs.patch | 21 +++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 23 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 0e24fb7..3efe7bd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ postgis (2.1.4+dfsg-1) UNRELEASED; urgency=medium
* Add Swedish translation by Martin Bagge. Closes: #761975.
* Add strip-invalid-whitespace-in-pom.patch to fix mh_cleanpom failure.
* Update copyright file.
+ * Add patch to fix FTBFS on hurd-i386.
[ Markus Wanner ]
* New upstream release, 2.1.4. Adapt packaging to the new version.
diff --git a/debian/patches/fix-hurd-i386-ftbfs.patch b/debian/patches/fix-hurd-i386-ftbfs.patch
new file mode 100644
index 0000000..2ab63a3
--- /dev/null
+++ b/debian/patches/fix-hurd-i386-ftbfs.patch
@@ -0,0 +1,21 @@
+Description: Detect GNU/Hurd and treat it like Linux just as BSD.
+Author: Bas Couwenberg <sebastic at xs4all.nl>
+
+--- postgis.orig/raster/rt_core/rt_api.h
++++ postgis/raster/rt_core/rt_api.h
+@@ -51,6 +51,15 @@
+ #endif
+ #endif
+
++#if defined(__GNU__) /* GNU/Hurd is also like Linux */
++#if !defined(LINUX)
++#define LINUX
++#endif
++#if !defined(UNIX)
++#define UNIX /* make sure this is defined */
++#endif
++#endif
++
+ #if defined(__MSDOS__)
+ #if !defined(MSDOS)
+ #define MSDOS /* make sure this is defined */
diff --git a/debian/patches/series b/debian/patches/series
index c8613f0..0e5664a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ add-lm-for-liblwgeom.patch
enable-ppc64el.patch
correct-java-version.patch
strip-invalid-whitespace-in-pom.patch
+fix-hurd-i386-ftbfs.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/postgis.git
More information about the Pkg-grass-devel
mailing list