[Debian-astro-commits] [cpl-plugin-xsh] 01/01: Remove isnan(int) test to fix Ubuntu FTBFS
Ole Streicher
olebole at moszumanska.debian.org
Mon May 9 02:21:47 UTC 2016
This is an automated email from the git hooks/post-receive script.
olebole pushed a commit to branch debian
in repository cpl-plugin-xsh.
commit c79073ea0a00f16d0e895f68e32608eb9dad4206
Author: Ole Streicher <ole at aip.de>
Date: Sun May 8 23:15:20 2016 -0300
Remove isnan(int) test to fix Ubuntu FTBFS
---
debian/changelog | 6 ++++++
debian/patches/remove_isnan_int.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 25 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 4ab0a76..3448300 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+cpl-plugin-xshoo (2.7.1+dfsg-2) unstable; urgency=medium
+
+ * Remove isnan(int) test to fix Ubuntu FTBFS
+
+ -- Ole Streicher <olebole at debian.org> Sun, 08 May 2016 23:14:25 -0300
+
cpl-plugin-xshoo (2.7.1+dfsg-1) unstable; urgency=low
* New upstream version
diff --git a/debian/patches/remove_isnan_int.patch b/debian/patches/remove_isnan_int.patch
new file mode 100644
index 0000000..1297d21
--- /dev/null
+++ b/debian/patches/remove_isnan_int.patch
@@ -0,0 +1,18 @@
+Author: Ole Streicher <olebole at debian.org>
+Description: Remove isnan(int) test
+ On Ubuntu, isnan() needs to be called with a floating point number, not an
+ int. It also does not make sense to call it with int, since integers are
+ never NaNs.
+--- a/xsh/xsh_utils_efficiency.c
++++ b/xsh/xsh_utils_efficiency.c
+@@ -1101,9 +1101,7 @@
+ } else {
+ cpl_table_insert(tot_eff,tbl_eff,neff_tot);
+ }
+- if(!isnan(nclip)) {
+- nclip_tot+=nclip;
+- }
++ nclip_tot+=nclip;
+ //sprintf(name_eff,"eff_ord%d.fits",ord);
+ //check(cpl_table_save(tbl_eff,plist, x_plist,name_eff, CPL_IO_DEFAULT));
+ }
diff --git a/debian/patches/series b/debian/patches/series
index cdb741b..a21aef9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ lapack.patch
force-serial-tests.patch
add_cpldrs.patch
fix_hdr_endianess_fail.patch
+remove_isnan_int.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/cpl-plugin-xsh.git
More information about the Debian-astro-commits
mailing list