[med-svn] [bwa] 03/03: add patch with pringting of unsigned counts

Nadiya Sitdykova rovenskasa-guest at moszumanska.debian.org
Tue Jul 4 01:42:04 UTC 2017


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

rovenskasa-guest pushed a commit to branch master
in repository bwa.

commit 8a74ee988b6afe44245116cf14600b8611a1a5e1
Author: Nadiya Sitdykova <rovenskasa at gmail.com>
Date:   Mon Jul 3 21:41:49 2017 -0400

    add patch with pringting of unsigned counts
---
 debian/changelog                           |  1 +
 debian/patches/print_unsigned_counts.patch | 42 ++++++++++++++++++++++++++++++
 debian/patches/series                      |  1 +
 3 files changed, 44 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 7285634..43cd1d7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ bwa (0.7.15-5) UNRELEASED; urgency=medium
   * Remove patch with workaround for issue #108
   * Add patch that checks computed avg and std for nan
     (straitforward fix for upstream issue #108)
+  * Add patch that fixes printing of unsigned counts
 
   [Steffen Moeller]
   * debian/upstream/metadata: Added bio.tools entry
diff --git a/debian/patches/print_unsigned_counts.patch b/debian/patches/print_unsigned_counts.patch
new file mode 100644
index 0000000..c9aa6aa
--- /dev/null
+++ b/debian/patches/print_unsigned_counts.patch
@@ -0,0 +1,42 @@
+Author: Fabian Klötzl 
+Description: change printing as size_t is unsigned
+Last-Update: 2017-07-03
+===========================================================
+--- bwa.orig/malloc_wrap.c
++++ bwa/malloc_wrap.c
+@@ -13,7 +13,7 @@
+ 	void *p = calloc(nmemb, size);
+ 	if (NULL == p) {
+ 		fprintf(stderr,
+-				"[%s] Failed to allocate %zd bytes at %s line %u: %s\n",
++				"[%s] Failed to allocate %zu bytes at %s line %u: %s\n",
+ 				func, nmemb * size, file, line, strerror(errno));
+ 		exit(EXIT_FAILURE);
+ 	}
+@@ -25,7 +25,7 @@
+ 	void *p = malloc(size);
+ 	if (NULL == p) {
+ 		fprintf(stderr,
+-				"[%s] Failed to allocate %zd bytes at %s line %u: %s\n",
++				"[%s] Failed to allocate %zu bytes at %s line %u: %s\n",
+ 				func, size, file, line, strerror(errno));
+ 		exit(EXIT_FAILURE);
+ 	}
+@@ -37,7 +37,7 @@
+ 	void *p = realloc(ptr, size);
+ 	if (NULL == p) {
+ 		fprintf(stderr,
+-				"[%s] Failed to allocate %zd bytes at %s line %u: %s\n",
++				"[%s] Failed to allocate %zu bytes at %s line %u: %s\n",
+ 				func, size, file, line, strerror(errno));
+ 		exit(EXIT_FAILURE);
+ 	}
+@@ -49,7 +49,7 @@
+ 	char *p = strdup(s);
+ 	if (NULL == p) {
+ 		fprintf(stderr,
+-				"[%s] Failed to allocate %zd bytes at %s line %u: %s\n",
++				"[%s] Failed to allocate %zu bytes at %s line %u: %s\n",
+ 				func, strlen(s), file, line, strerror(errno));
+ 		exit(EXIT_FAILURE);
+ 	}
diff --git a/debian/patches/series b/debian/patches/series
index d6647f8..dd0ee4e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+print_unsigned_counts.patch
 check_for_nan.patch
 fix_heap_block_overrun
 fix_build_on_freebsd.patch

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



More information about the debian-med-commit mailing list