[med-svn] [Git][med-team/libminc][master] 2 commits: d/p/initialize: Fix FTBFS on armhf and possibly other archs

Gert Wollny gitlab at salsa.debian.org
Sun Jun 3 09:53:03 BST 2018


Gert Wollny pushed to branch master at Debian Med / libminc


Commits:
6dd69959 by Gert Wollny at 2018-06-03T10:39:55+02:00
d/p/initialize: Fix FTBFS on armhf and possibly other archs

- - - - -
267c4d5d by Gert Wollny at 2018-06-03T10:40:34+02:00
Update changelog for upload

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/initialize_arrays_in_tests.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libminc (2.4.03-1~exp2) experimental; urgency=medium
+
+  * d/p/initialize: Fix FTBFS on armhf and possibly other archs
+
+ -- Gert Wollny <gewo at debian.org>  Sun, 03 Jun 2018 10:40:12 +0200
+
 libminc (2.4.03-1~exp1) experimental; urgency=medium
 
   * Team upload.


=====================================
debian/patches/initialize_arrays_in_tests.patch
=====================================
--- /dev/null
+++ b/debian/patches/initialize_arrays_in_tests.patch
@@ -0,0 +1,36 @@
+Description: Initialize arrays in tests
+ in C it can not be assumed that the arrays are initialaized to a sane
+ value when they are declared on the stack, hence initialiaze the 
+ dimension to zero (this also makes the compiler fill the whole struct
+ with zeros. 
+Author: Gert Wollny <gewo at debian.org>
+
+--- a/testdir/multidim_test.c
++++ b/testdir/multidim_test.c
+@@ -5,7 +5,7 @@
+ static int
+ test1(void)
+ {
+-  VIO_multidim_array array;
++  VIO_multidim_array array = {0};
+   int sizes[TEST1_N_DIMENSIONS] = { 1, 1, 1 };
+   int read_sizes[VIO_MAX_DIMENSIONS] = { 5, 5, 5, 5, 5 };
+   int i;
+@@ -90,7 +90,7 @@
+ static int
+ test2(void)
+ {
+-  VIO_multidim_array array;
++  VIO_multidim_array array = {0};
+   int sizes[TEST2_N_DIMENSIONS] = { 31, 61, 53, 41, 3 };
+   int read_sizes[VIO_MAX_DIMENSIONS] = { 5, 5, 5, 5, 5 };
+   int value;
+@@ -184,7 +184,7 @@
+ static int
+ test3(VIO_Data_types data_type, int n_dimensions, int sizes[])
+ {
+-  VIO_multidim_array array;
++  VIO_multidim_array array = {0};
+   int index[VIO_MAX_DIMENSIONS];
+   int i;
+   int n;


=====================================
debian/patches/series
=====================================
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ build-using-system-find-dot-cmake
 fix-uselibminc-cmake
 netcdf-4.6.patch
 remove-rpath.patch
+initialize_arrays_in_tests.patch



View it on GitLab: https://salsa.debian.org/med-team/libminc/compare/07e39895649bfb1036664db2ee1532258a57f7da...267c4d5d37bf630b25b4c5003b7e0905a6e1af23

-- 
View it on GitLab: https://salsa.debian.org/med-team/libminc/compare/07e39895649bfb1036664db2ee1532258a57f7da...267c4d5d37bf630b25b4c5003b7e0905a6e1af23
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20180603/359c84a0/attachment-0001.html>


More information about the debian-med-commit mailing list