[med-svn] [htslib] 01/05: Define PATH_MAX

Andreas Tille tille at debian.org
Wed Dec 9 16:05:08 UTC 2015


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

tille pushed a commit to branch debian/unstable
in repository htslib.

commit 5fb0d2db2c057243309f5d80e502af04ebfc963c
Author: Andreas Tille <tille at debian.org>
Date:   Wed Dec 9 16:43:31 2015 +0100

    Define PATH_MAX
---
 debian/changelog                     |  8 ++++++++
 debian/patches/define_PATH_MAX.patch | 23 +++++++++++++++++++++++
 debian/patches/series                |  1 +
 3 files changed, 32 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index ee78d04..090b8d8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+htslib (1.2.1-2) UNRELEASED; urgency=medium
+
+  * Team upload
+  * Enable build on hurd-i386
+    Closes: #793512
+
+ -- Andreas Tille <tille at debian.org>  Wed, 09 Dec 2015 16:40:21 +0100
+
 htslib (1.2.1-1) unstable; urgency=medium
 
   0662716 Merge tag '1.2.1' into debian/unstable
diff --git a/debian/patches/define_PATH_MAX.patch b/debian/patches/define_PATH_MAX.patch
new file mode 100644
index 0000000..116f2f4
--- /dev/null
+++ b/debian/patches/define_PATH_MAX.patch
@@ -0,0 +1,23 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Uudate: Wed, 09 Dec 2015 16:40:21 +0100
+Bug-Debian: https://bugs.debian.org/793512
+Description: Define PATH_MAX as it is done in cram/open_trace_file.c if
+ not existent.  The definition should be removed from this C file since the
+ header file affects all three C files where this definition is used.
+
+--- a/cram/os.h
++++ b/cram/os.h
+@@ -134,6 +134,13 @@ extern "C" {
+ #  define SP_BIG_ENDIAN
+ #endif
+ 
++/*
++ * in case PATH_MAX is not defined (like in hurd)
++ */
++#ifndef PATH_MAX
++#  define PATH_MAX 1024
++#endif
++
+ /* Some catch-alls */
+ #if defined(__LITTLE_ENDIAN__) || defined(__LITTLEENDIAN__)
+ #    define SP_LITTLE_ENDIAN
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2339362
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+define_PATH_MAX.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/htslib.git



More information about the debian-med-commit mailing list