[metview] 02/13: Define PATH_MAX in mars.h for Hurd FTBFS.

Alastair McKinstry mckinstry at moszumanska.debian.org
Thu Feb 11 19:24:28 UTC 2016


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

mckinstry pushed a commit to tag debian/4.6.1-1
in repository metview.

commit 154ef20d98ee87692b1ad178539f50f03a3d4402
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Sat Jan 2 04:37:52 2016 +0000

    Define PATH_MAX in mars.h for Hurd FTBFS.
---
 debian/changelog          |  1 +
 debian/patches/hurd.patch | 22 ++++++++++++++++++++++
 debian/patches/series     |  1 +
 3 files changed, 24 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 440c79b..fce93f2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ metview (4.5.7-3) unstable; urgency=medium
     Closes: #806580.
   * Use -fPIC on i386
   * Link "--as-needed"
+  * Define PATH_MAX in mars.h for Hurd FTBFS.
 
  -- Alastair McKinstry <mckinstry at debian.org>  Thu, 03 Dec 2015 14:14:19 +0000
 
diff --git a/debian/patches/hurd.patch b/debian/patches/hurd.patch
new file mode 100644
index 0000000..313c680
--- /dev/null
+++ b/debian/patches/hurd.patch
@@ -0,0 +1,22 @@
+Author: Alastair McKinstry <mckinstry at debian.org>
+Description: Fix for FTBFS on Hurd
+Last-Updated: 2016-01-02
+Forwarded: no
+
+Index: metview-4.5.7/src/libMarsClient/mars.h
+===================================================================
+--- metview-4.5.7.orig/src/libMarsClient/mars.h
++++ metview-4.5.7/src/libMarsClient/mars.h
+@@ -692,6 +692,12 @@ typedef void* msockopt;
+ 
+ #endif
+ 
++
++/* Needed for Hurd */
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
++
+ #ifdef METVIEW_MOTIF
+ #ifdef XtSpecificationRelease
+ #if defined(__cplusplus) || defined(c_plusplus)
diff --git a/debian/patches/series b/debian/patches/series
index bd0bade..e552c2a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ cmake-fixes.patch
 mv_compress.patch
 reproducible-build.patch
 fpic.patch
+hurd.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/metview.git



More information about the debian-science-commits mailing list