[Pkg-octave-commit] [SCM] Debian packaging for octave-communications branch, master, updated. debian/1.1.0-2-10-g1e7e188

Sébastien Villemot sebastien.villemot at ens.fr
Sun May 20 17:36:51 UTC 2012


The following commit has been merged in the master branch:
commit a995f4e05725b7c1a510c49ce0ed5a8c90fe91c4
Author: Sébastien Villemot <sebastien.villemot at ens.fr>
Date:   Sun May 20 17:20:41 2012 +0200

    oct2dec.patch: new patch

diff --git a/debian/patches/oct2dec.patch b/debian/patches/oct2dec.patch
new file mode 100644
index 0000000..0433179
--- /dev/null
+++ b/debian/patches/oct2dec.patch
@@ -0,0 +1,23 @@
+Description: Fix bug in oct2dec.m with big numbers
+ Without this patch, the following test fails:
+   assert (oct2dec (77777777), 2^24 - 1)
+ This is because 77777777 will be converted to "7.77778e+07" by numstr.
+ .
+ Note that, even with this patch, the test will still fail on Octave 3.6.1
+ (but not with subsequent Octave releases), because of a bug in base2dec
+ (http://savannah.gnu.org/bugs/?func=detailitem&item_id=35621).
+Origin: upstream, commit: r10467,r10468
+Last-Update: 2012-05-20
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/inst/oct2dec.m
++++ b/inst/oct2dec.m
+@@ -37,7 +37,7 @@
+   d = zeros (size (c));
+   l = size (c, 2);
+   for k = 1:l
+-    str = num2str (c(:,k));
++    str = num2str (c(:,k), "%ld");
+     d(:,k) = base2dec (str, 8);
+     if (any (isnan (d(:,k))))
+       error ("oct2dec: c must be an octal matrix");
diff --git a/debian/patches/series b/debian/patches/series
index 8884492..d402fe3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+oct2dec.patch
 build-documentation.patch
 info-dir-section.patch

-- 
Debian packaging for octave-communications



More information about the Pkg-octave-commit mailing list