[med-svn] r14907 - in trunk/packages/staden-io-lib/trunk/debian: . patches

Thorsten Alteholz alteholz at alioth.debian.org
Mon Oct 21 19:58:48 UTC 2013


Author: alteholz
Date: 2013-10-21 19:58:48 +0000 (Mon, 21 Oct 2013)
New Revision: 14907

Added:
   trunk/packages/staden-io-lib/trunk/debian/patches/
   trunk/packages/staden-io-lib/trunk/debian/patches/pathmax.patch
   trunk/packages/staden-io-lib/trunk/debian/patches/series
Modified:
   trunk/packages/staden-io-lib/trunk/debian/changelog
   trunk/packages/staden-io-lib/trunk/debian/control
   trunk/packages/staden-io-lib/trunk/debian/rules
Log:
make it available on hurd-i386, mips and sparc

Modified: trunk/packages/staden-io-lib/trunk/debian/changelog
===================================================================
--- trunk/packages/staden-io-lib/trunk/debian/changelog	2013-10-20 20:24:18 UTC (rev 14906)
+++ trunk/packages/staden-io-lib/trunk/debian/changelog	2013-10-21 19:58:48 UTC (rev 14907)
@@ -1,3 +1,11 @@
+staden-io-lib (1.13.2-3) unstable; urgency=low
+ 
+  * debian/rules: tests on sparc fail (no reason found yet)
+  * debian/patches: add patch to build on hurd_i386
+  * no need to remove package from architecture anymore (Closes: #726875)
+
+ -- Thorsten Alteholz <debian at alteholz.de>  Mon, 21 Oct 2013 18:10:59 +0200
+
 staden-io-lib (1.13.2-2) unstable; urgency=low
 
   * Restore and update symbols file debian/libstaden-read1.symbols.

Modified: trunk/packages/staden-io-lib/trunk/debian/control
===================================================================
--- trunk/packages/staden-io-lib/trunk/debian/control	2013-10-20 20:24:18 UTC (rev 14906)
+++ trunk/packages/staden-io-lib/trunk/debian/control	2013-10-21 19:58:48 UTC (rev 14907)
@@ -1,7 +1,8 @@
 Source: staden-io-lib
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 Uploaders: Charles Plessy <plessy at debian.org>,
-           Andreas Tille <tille at debian.org>
+           Andreas Tille <tille at debian.org>,
+           Thorsten Alteholz <debian at alteholz.de>
 Section: science
 Priority: optional
 Build-Depends: debhelper (>= 9),

Added: trunk/packages/staden-io-lib/trunk/debian/patches/pathmax.patch
===================================================================
--- trunk/packages/staden-io-lib/trunk/debian/patches/pathmax.patch	                        (rev 0)
+++ trunk/packages/staden-io-lib/trunk/debian/patches/pathmax.patch	2013-10-21 19:58:48 UTC (rev 14907)
@@ -0,0 +1,98 @@
+Author: Thorsten Alteholz <debian at alteholz.de>
+Description: define PATH_MAX in case it is not available
+             this is needed to compile on hurd_i386
+Index: staden-io-lib-1.13.2/io_lib/cram_index.c
+===================================================================
+--- staden-io-lib-1.13.2.orig/io_lib/cram_index.c	2013-10-21 20:01:06.000000000 +0200
++++ staden-io-lib-1.13.2/io_lib/cram_index.c	2013-10-21 20:01:05.000000000 +0200
+@@ -43,6 +43,14 @@
+ #include "io_lib/os.h"
+ #include "io_lib/zfio.h"
+ 
++/*
++   define PATH_MAX in case it is not available
++   (for example for hurd_i386)
++*/
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
++
+ #if 0
+ static void dump_index_(cram_index *e, int level) {
+     int i, n;
+Index: staden-io-lib-1.13.2/io_lib/cram_io.c
+===================================================================
+--- staden-io-lib-1.13.2.orig/io_lib/cram_io.c	2013-10-21 20:01:06.000000000 +0200
++++ staden-io-lib-1.13.2/io_lib/cram_io.c	2013-10-21 20:01:05.000000000 +0200
+@@ -39,6 +39,14 @@
+ #include "io_lib/md5.h"
+ #include "io_lib/open_trace_file.h"
+ 
++/*
++   define PATH_MAX in case it is not available
++   (for example for hurd_i386)
++*/
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
++
+ //#define REF_DEBUG
+ 
+ #ifdef REF_DEBUG
+Index: staden-io-lib-1.13.2/io_lib/files.c
+===================================================================
+--- staden-io-lib-1.13.2.orig/io_lib/files.c	2013-10-21 20:01:06.000000000 +0200
++++ staden-io-lib-1.13.2/io_lib/files.c	2013-10-21 20:01:05.000000000 +0200
+@@ -18,6 +18,14 @@
+ 
+ #include "io_lib/misc.h"
+ 
++/*
++   define PATH_MAX in case it is not available
++   (for example for hurd_i386)
++*/
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
++
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ /* Alliant's Concentrix <sys/stat.h> is hugely deficient */
+Index: staden-io-lib-1.13.2/io_lib/srf.h
+===================================================================
+--- staden-io-lib-1.13.2.orig/io_lib/srf.h	2013-10-21 20:01:06.000000000 +0200
++++ staden-io-lib-1.13.2/io_lib/srf.h	2013-10-21 20:01:58.000000000 +0200
+@@ -5,6 +5,14 @@
+ #include "io_lib/ztr.h"
+ #include "io_lib/mFILE.h"
+ 
++/*
++   define PATH_MAX in case it is not available
++   (for example for hurd_i386)
++*/
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
++
+ #define SRF_MAGIC		"SSRF"
+ #define SRF_VERSION             "1.3"
+ 
+Index: staden-io-lib-1.13.2/progs/cram_index.c
+===================================================================
+--- staden-io-lib-1.13.2.orig/progs/cram_index.c	2013-10-21 20:01:06.000000000 +0200
++++ staden-io-lib-1.13.2/progs/cram_index.c	2013-10-21 20:01:05.000000000 +0200
+@@ -14,6 +14,14 @@
+ #include <io_lib/cram.h>
+ #include <io_lib/zfio.h>
+ 
++/*
++   define PATH_MAX in case it is not available
++   (for example for hurd_i386)
++*/
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
++
+ int main(int argc, char **argv) {
+     cram_fd *fd;
+     cram_container *c;

Added: trunk/packages/staden-io-lib/trunk/debian/patches/series
===================================================================
--- trunk/packages/staden-io-lib/trunk/debian/patches/series	                        (rev 0)
+++ trunk/packages/staden-io-lib/trunk/debian/patches/series	2013-10-21 19:58:48 UTC (rev 14907)
@@ -0,0 +1 @@
+pathmax.patch

Modified: trunk/packages/staden-io-lib/trunk/debian/rules
===================================================================
--- trunk/packages/staden-io-lib/trunk/debian/rules	2013-10-20 20:24:18 UTC (rev 14906)
+++ trunk/packages/staden-io-lib/trunk/debian/rules	2013-10-21 19:58:48 UTC (rev 14907)
@@ -9,6 +9,16 @@
 %:
 	dh $@
 
+override_dh_auto_test:
+	# disable tests on architectures where they fail
+	# up to now it is not clear why some tests fail
+ifneq ($(DEB_BUILD_ARCH),sparc) 
+	echo "I: do testing"
+	dh_auto_test
+else
+	echo "I: no test on architecture sparc"
+endif
+
 override_dh_install:
 	dh_install
 	mkdir -p $(CURDIR)/debian/$(devpkg)/usr/bin




More information about the debian-med-commit mailing list