aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-08-02 11:48:01 -0700
committerBryan Newbold <bnewbold@robocracy.org>2017-08-02 11:48:01 -0700
commit32de3b2c940a21936f18287bb7e87e5a744d8e92 (patch)
treedbad523d152d7bdd92773f8ae60192a486911f49
parentb13a3fb113b9b6c6cb18ec21299ea07f591316ac (diff)
downloadscm-32de3b2c940a21936f18287bb7e87e5a744d8e92.tar.gz
scm-32de3b2c940a21936f18287bb7e87e5a744d8e92.zip
hurd-i386 build fix patch
-rw-r--r--debian/changelog1
-rw-r--r--debian/patches/hurd_maxpathlen.patch23
-rw-r--r--debian/patches/series1
3 files changed, 25 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 6e3a4b3..703f27a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ scm (5f2-1) UNRELEASED; urgency=medium
LGPL-3+; fixing author typo; documentation under GFDL; some files removed
upstream.
* Update Debian Standards-Version to 4.0.0.
+ * Fix build in hurd-i386 (Closes: #768486). Thanks to Svante Signell!
-- Bryan Newbold <bnewbold@robocracy.org> Tue, 01 Aug 2017 21:48:28 -0700
diff --git a/debian/patches/hurd_maxpathlen.patch b/debian/patches/hurd_maxpathlen.patch
new file mode 100644
index 0000000..53d70cc
--- /dev/null
+++ b/debian/patches/hurd_maxpathlen.patch
@@ -0,0 +1,23 @@
+Description: Fix FTBFS on hurd-i386
+Author: Svante Signell <svante.signell@gmail.com>
+--- scm.orig/findexec.c
++++ scm/findexec.c
+@@ -51,7 +51,7 @@ Wed Feb 21 23:06:35 1996 Aubrey Jaffer
+ # include <sys/file.h>
+ # include <sys/param.h>
+ # endif
+-# if defined(linux) || defined(__GLIBC__)
++# if defined(linux) || defined(__GLIBC__) || defined(__GNU__)
+ # include <string.h>
+ # include <stdlib.h>
+ # include <sys/stat.h>
+@@ -122,6 +122,9 @@ Wed Feb 21 23:06:35 1996 Aubrey Jaffer
+ # include <sys/types.h>
+ # include <sys/stat.h>
+ # endif
++# ifndef MAXPATHLEN
++# define MAXPATHLEN 256
++# endif
+ # ifdef GO32
+ # include <sys/stat.h>
+ # endif
diff --git a/debian/patches/series b/debian/patches/series
index 08793dc..102a07f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ kfreebsd_support.patch
texinfo5_fixes.patch
ppc64_short_int.patch
arm64_short_int.patch
+hurd_maxpathlen.patch