[Pkg-voip-commits] [asterisk] 02/02: hurd_path_max.patch (Closes: #784551)

tzafrir at debian.org tzafrir at debian.org
Wed Mar 30 13:12:07 UTC 2016


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

tzafrir pushed a commit to branch master
in repository asterisk.

commit df81eda29a8cba4aedb039aee342b86f1c75a723
Author: Tzafrir Cohen <tzafrir at debian.org>
Date:   Wed Mar 30 16:06:57 2016 +0300

    hurd_path_max.patch (Closes: #784551)
    
    Sets PATH_MAX if not set (practically: if we build for HURD).
---
 debian/patches/hurd_path_max.patch | 18 ++++++++++++++++++
 debian/patches/series              |  1 +
 2 files changed, 19 insertions(+)

diff --git a/debian/patches/hurd_path_max.patch b/debian/patches/hurd_path_max.patch
new file mode 100644
index 0000000..e970070
--- /dev/null
+++ b/debian/patches/hurd_path_max.patch
@@ -0,0 +1,18 @@
+From: Gabriele Giacone <1o5g4r8o at gmail.com>
+Subject: set PATH_MAX if not set (HURD)
+Bug-Debian: https://bugs.debian.org/784551
+
+In the HURD, PATH_MAX is not set. Asterisk has many buffers with the
+size of PATH_MAX. However it 
+
+--- a/include/asterisk.h
++++ b/include/asterisk.h
+@@ -293,4 +293,8 @@ struct ast_sched_context;
+ #define __stringify_1(x)	#x
+ #define __stringify(x)		__stringify_1(x)
+ 
++#ifndef PATH_MAX
++# define PATH_MAX 4096
++#endif
++
+ #endif /* _ASTERISK_H */
diff --git a/debian/patches/series b/debian/patches/series
index 3b0a15c..facf105 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -26,6 +26,7 @@ systemd.patch
 
 configure-osarch
 hurd_osarch.patch
+hurd_path_max.patch
 
 opus.patch
 vp8.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/asterisk.git



More information about the Pkg-voip-commits mailing list