[med-svn] [emboss] 01/02: Enable build on hurd

Andreas Tille tille at debian.org
Sat Oct 25 18:31:19 UTC 2014


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

tille pushed a commit to branch master
in repository emboss.

commit 47153ee79b2249a41992af7e71d608f6ff5ee524
Author: Andreas Tille <tille at debian.org>
Date:   Sat Oct 25 20:20:40 2014 +0200

    Enable build on hurd
---
 debian/changelog              |  6 ++++--
 debian/patches/path_max.patch | 27 +++++++++++++++++++++++++++
 debian/patches/series         |  1 +
 3 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9392902..947c90f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,11 @@
-emboss (6.6.0+dfsgXX-2) UNRELEASED; urgency=medium
+emboss (6.6.0+dfsg-2) UNRELEASED; urgency=medium
 
   * Make sure we will not delete documentation files from new upstream
     version
+  * Enable build on hurd
+    Closes: #762673
 
- -- Andreas Tille <tille at debian.org>  Tue, 20 May 2014 13:59:19 +0200
+ -- Andreas Tille <tille at debian.org>  Sat, 25 Oct 2014 20:08:17 +0200
 
 emboss (6.6.0+dfsg-1) unstable; urgency=medium
 
diff --git a/debian/patches/path_max.patch b/debian/patches/path_max.patch
new file mode 100644
index 0000000..8364ddd
--- /dev/null
+++ b/debian/patches/path_max.patch
@@ -0,0 +1,27 @@
+Author: Svante Signell <svante.signell at gmail.com>
+Last-Update: Wed, 24 Sep 2014 10:36:02 UTC
+Bug-Debian: http://bugs.debian.org/762673
+Description: PATH_MAX is missing on Hurd so avoid this
+
+--- a/ajax/core/ajfile.c.orig	2013-07-15 23:25:29.000000000 +0200
++++ b/ajax/core/ajfile.c	2014-09-24 11:01:42.000000000 +0200
+@@ -8574,9 +8574,9 @@
+ 
+ const AjPStr ajFileValueCwd(void)
+ {
+-    char cwd[PATH_MAX+1];
++    char *cwd = getcwd(NULL,0);
+ 
+-    if(!getcwd(cwd,PATH_MAX))
++    if(!cwd)
+     {
+         ajStrAssignClear(&fileCwd);
+ 
+@@ -8589,6 +8589,7 @@
+     if(!ajStrSuffixC(fileCwd, SLASH_STRING))
+         ajStrAppendC(&fileCwd, SLASH_STRING);
+ 
++    free(cwd);
+     return fileCwd;
+ }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index e246a2c..41c77d7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@ fix-mysql-macro.patch
 bashism.patch
 plplotP-correct-padding.patch
 remove_non-free_doc.patch
+path_max.patch

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



More information about the debian-med-commit mailing list