[Pkg-octave-commit] [octave] 02/02: hurd_path_max.diff: new patch, fixes FTBFS on Hurd.

Mike Miller mtmiller at moszumanska.debian.org
Tue Jan 7 06:23:17 UTC 2014


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

mtmiller pushed a commit to branch master
in repository octave.

commit 39bf2d97d8727b982b847a273258805f0e97f885
Author: Mike Miller <mtmiller at debian.org>
Date:   Tue Jan 7 01:21:29 2014 -0500

    hurd_path_max.diff: new patch, fixes FTBFS on Hurd.
---
 debian/patches/hurd_path_max.diff | 23 +++++++++++++++++++++++
 debian/patches/series             |  1 +
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/hurd_path_max.diff b/debian/patches/hurd_path_max.diff
new file mode 100644
index 0000000..dc8948a
--- /dev/null
+++ b/debian/patches/hurd_path_max.diff
@@ -0,0 +1,23 @@
+Description: Set a fallback value for PATH_MAX if not defined
+ Based on kdelibs upstream git commit a8057419.
+Author: Mike Miller <mtmiller at debian.org>
+Forwarded: no
+Last-Updated: 2014-01-07
+
+--- a/libgui/qterminal/libqterminal/unix/kpty.cpp
++++ b/libgui/qterminal/libqterminal/unix/kpty.cpp
+@@ -145,6 +145,14 @@ extern "C" {
+ 
+ #define TTY_GROUP "tty"
+ 
++#ifndef PATH_MAX
++# ifdef MAXPATHLEN
++#  define PATH_MAX MAXPATHLEN
++# else
++#  define PATH_MAX 1024
++# endif
++#endif
++
+ ///////////////////////
+ // private functions //
+ ///////////////////////
diff --git a/debian/patches/series b/debian/patches/series
index 5a659d1..09fa632 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ octave-cli-manpage.diff
 doc-compressed-info.diff
 dblquad-s390x.diff
 kfreebsd_tcgetattr.diff
+hurd_path_max.diff

-- 
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave.git



More information about the Pkg-octave-commit mailing list