[med-svn] [subread] 01/03: Add patch fixing ftbsf on kfreebsd

Alex Mestiashvili malex-guest at moszumanska.debian.org
Sat Apr 23 20:27:29 UTC 2016


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

malex-guest pushed a commit to branch master
in repository subread.

commit 415c7e5208f3569e160440e6be0d090da25f16dd
Author: Alexandre Mestiashvili <alex at biotec.tu-dresden.de>
Date:   Sat Apr 23 22:05:19 2016 +0200

    Add patch fixing ftbsf on kfreebsd
---
 debian/patches/fix_ftbfs_kfreebsd.patch | 22 ++++++++++++++++++++++
 debian/patches/series                   |  1 +
 debian/rules                            |  3 +++
 3 files changed, 26 insertions(+)

diff --git a/debian/patches/fix_ftbfs_kfreebsd.patch b/debian/patches/fix_ftbfs_kfreebsd.patch
new file mode 100644
index 0000000..86c85cb
--- /dev/null
+++ b/debian/patches/fix_ftbfs_kfreebsd.patch
@@ -0,0 +1,22 @@
+Subject: Fix ftbfs on kfreebsd
+From: Alex Mestiashvili <alex at biotec.tu-dresden.de>
+--- subread.orig/src/HelperFunctions.c
++++ subread/src/HelperFunctions.c
+@@ -769,6 +769,9 @@
+ #ifdef FREEBSD
+ 	return 1;
+ #else
++#ifdef KFREEBSD
++	return 1;
++#else
+ #ifdef MACOS
+     int         mib[6], x1, ret = 1;
+ 	size_t		len;
+@@ -857,6 +860,7 @@
+ 	return 1;
+ #endif
+ #endif
++#endif
+ }
+ 
+ int rand_str(char * str_buff){
diff --git a/debian/patches/series b/debian/patches/series
index 1a235aa..df5d681 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+fix_ftbfs_kfreebsd.patch
 arch_specific_flags.patch
 syntax_err.patch
diff --git a/debian/rules b/debian/rules
index f5ace44..a5d5fc2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,6 +10,9 @@ DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
 ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),amd64 i386))
         CFLAGS += -mtune=generic -msse3
 endif
+ifeq ($(DEB_HOST_ARCH_OS), kfreebsd)
+        CFLAGS += -D KFREEBSD
+endif
 CFLAGS += -fsigned-char
 
 %:

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



More information about the debian-med-commit mailing list