[ismrmrd] 01/129: Imported Debian patch 0~20130706-1

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Jan 14 20:00:06 UTC 2015


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

ghisvail-guest pushed a commit to branch master
in repository ismrmrd.

commit 5b8bb5b998a55d03f3f99901e567eb03a56d5b2b
Author: Ghislain Vaillant <ghisvail at gmail.com>
Date:   Sat Jan 11 14:41:59 2014 +0000

    Imported Debian patch 0~20130706-1
---
 debian/changelog                                  |  5 ++
 debian/compat                                     |  1 +
 debian/control                                    | 73 ++++++++++++++++++
 debian/copyright                                  | 55 ++++++++++++++
 debian/ismrmrd-bin.install                        |  1 +
 debian/libismrmrd-dev.install                     |  1 +
 debian/libismrmrd.install                         |  1 +
 debian/patches/001-fix-test-ndarraycontainer.diff | 92 +++++++++++++++++++++++
 debian/patches/series                             |  1 +
 debian/rules                                      |  8 ++
 debian/source/format                              |  1 +
 11 files changed, 239 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..136ea3b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ismrmrd (0~20130706-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #732360)
+
+ -- Ghislain Vaillant <ghisvail at gmail.com>  Sat, 11 Jan 2014 14:41:59 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..c06c322
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,73 @@
+Source: ismrmrd
+Section: science
+Priority: optional
+Maintainer: Ghislain Vaillant <ghisvail at gmail.com>
+Build-Depends: debhelper (>= 9),
+               cmake,
+               libfftw3-dev,
+               libboost-program-options-dev,
+               libboost-thread-dev,
+               libhdf5-dev,
+               libxerces-c-dev,
+               xsdcxx
+Standards-Version: 3.9.5
+Homepage: http://ismrmrd.sourceforge.net/
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/ismrmrd.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/ismrmrd.git
+
+
+Package: libismrmrd
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: ISMRM Raw Data format (ISMRMRD) - shared library
+ The ISMRMRD format combines a mix of flexible data structures (XML header) 
+ and fixed structures (equivalent to C-structs) to represent MRI data.
+ .
+ In addition, the ISMRMRD format also specifies an image header for storing 
+ reconstructed images and the accompanying C++ library provides a convenient 
+ way of writing such images into HDF5 files along with generic arrays for 
+ storing less well defined data structures, e.g. coil sensitivity maps or 
+ other calibration data.
+ .
+ This package contains the shared library.
+ 
+ 
+Package: libismrmrd-dev
+Section: libdevel
+Architecture: any
+Depends: libismrmrd (= ${binary:Version}),
+         libboost-program-options-dev,
+         libboost-thread-dev,
+         libhdf5-dev,
+         ${shlibs:Depends},
+         ${misc:Depends}
+Description: ISMRM Raw Data format (ISMRMRD) - development files
+ The ISMRMRD format combines a mix of flexible data structures (XML header) 
+ and fixed structures (equivalent to C-structs) to represent MRI data.
+ .
+ In addition, the ISMRMRD format also specifies an image header for storing 
+ reconstructed images and the accompanying C++ library provides a convenient 
+ way of writing such images into HDF5 files along with generic arrays for 
+ storing less well defined data structures, e.g. coil sensitivity maps or 
+ other calibration data.
+ .
+ This package contains the development files.
+
+
+Package: ismrmrd-bin
+Section: utils
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: ISMRM Raw Data format (ISMRMRD) - tools
+ The ISMRMRD format combines a mix of flexible data structures (XML header) 
+ and fixed structures (equivalent to C-structs) to represent MRI data.
+ .
+ In addition, the ISMRMRD format also specifies an image header for storing 
+ reconstructed images and the accompanying C++ library provides a convenient 
+ way of writing such images into HDF5 files along with generic arrays for 
+ storing less well defined data structures, e.g. coil sensitivity maps or 
+ other calibration data.
+ .
+ This package contains binary tools.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..865173d
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,55 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ismrmrd
+Source: http://sourceforge.net/projects/ismrmrd/
+
+Files: *
+Copyright: 2013-2014 Michael S. Hansen <michael.hansen at nih.gov>
+License: MIT
+ ISMRMRD SOFTWARE LICENSE JULY 2013
+ . 
+ PERMISSION IS HEREBY GRANTED, FREE OF CHARGE, TO ANY PERSON OBTAINING
+ A COPY OF THIS SOFTWARE AND ASSOCIATED DOCUMENTATION FILES (THE
+ "SOFTWARE"), TO DEAL IN THE SOFTWARE WITHOUT RESTRICTION, INCLUDING
+ WITHOUT LIMITATION THE RIGHTS TO USE, COPY, MODIFY, MERGE, PUBLISH,
+ DISTRIBUTE, SUBLICENSE, AND/OR SELL COPIES OF THE SOFTWARE, AND TO
+ PERMIT PERSONS TO WHOM THE SOFTWARE IS FURNISHED TO DO SO, SUBJECT TO
+ THE FOLLOWING CONDITIONS:
+ .
+ THE ABOVE COPYRIGHT NOTICE, THIS PERMISSION NOTICE, AND THE LIMITATION
+ OF LIABILITY BELOW SHALL BE INCLUDED IN ALL COPIES OR REDISTRIBUTIONS
+ OF SUBSTANTIAL PORTIONS OF THE SOFTWARE.
+ .
+ SOFTWARE IS BEING DEVELOPED IN PART AT THE NATIONAL HEART, LUNG, AND BLOOD
+ INSTITUTE, NATIONAL INSTITUTES OF HEALTH BY AN EMPLOYEE OF THE FEDERAL
+ GOVERNMENT IN THE COURSE OF HIS OFFICIAL DUTIES. PURSUANT TO TITLE 17, 
+ SECTION 105 OF THE UNITED STATES CODE, THIS SOFTWARE IS NOT SUBJECT TO 
+ COPYRIGHT PROTECTION AND IS IN THE PUBLIC DOMAIN. EXCEPT AS CONTAINED IN
+ THIS NOTICE, THE NAME OF THE AUTHORS, THE NATIONAL HEART, LUNG, AND BLOOD
+ INSTITUTE (NHLBI), OR THE NATIONAL INSTITUTES OF HEALTH (NIH) MAY NOT 
+ BE USED TO ENDORSE OR PROMOTE PRODUCTS DERIVED FROM THIS SOFTWARE WITHOUT 
+ SPECIFIC PRIOR WRITTEN PERMISSION FROM THE NHLBI OR THE NIH.THE SOFTWARE IS 
+ PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Files: debian/*
+Copyright: 2014 Ghislain Vaillant <ghisvail at gmail.com>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/ismrmrd-bin.install b/debian/ismrmrd-bin.install
new file mode 100644
index 0000000..a5b8e27
--- /dev/null
+++ b/debian/ismrmrd-bin.install
@@ -0,0 +1 @@
+usr/ismrmrd/bin/* usr/bin 
diff --git a/debian/libismrmrd-dev.install b/debian/libismrmrd-dev.install
new file mode 100644
index 0000000..8ce2b61
--- /dev/null
+++ b/debian/libismrmrd-dev.install
@@ -0,0 +1 @@
+usr/ismrmrd/include/*.h usr/include 
diff --git a/debian/libismrmrd.install b/debian/libismrmrd.install
new file mode 100644
index 0000000..52243f1
--- /dev/null
+++ b/debian/libismrmrd.install
@@ -0,0 +1 @@
+usr/ismrmrd/lib/*.so usr/lib 
diff --git a/debian/patches/001-fix-test-ndarraycontainer.diff b/debian/patches/001-fix-test-ndarraycontainer.diff
new file mode 100644
index 0000000..a390bcb
--- /dev/null
+++ b/debian/patches/001-fix-test-ndarraycontainer.diff
@@ -0,0 +1,92 @@
+From: Ghislain Vaillant <ghisvail at gmail.com>
+Subject: Fixes broken test for t_ndarraycontainer
+ MATLAB/FORTRAN indexing convention is used instead of C-style indexing,
+ provoking an out-of-bounds access to memory. This patch fixes the indexing.
+Forwarded: yes
+Bug: http://sourceforge.net/p/ismrmrd/tickets/9/
+--- a/tests/c++/t_ndarraycontainer.cpp
++++ b/tests/c++/t_ndarraycontainer.cpp
+@@ -17,9 +17,8 @@
+     static void random (NDArrayContainer<type>& ndac) {
+         type mi = (type) std::numeric_limits<int>::max();
+         assert (ndac.is_consistent());
+-        size_t i = ndac.elements();
+-        size_t j = ndac.data_.size();
+-        for (; i>=1; i--)
++        size_t j = ndac.elements();
++        for (size_t i=0; i<j; i++)
+             ndac[i] = 1.0 - 2.0 * (type)rand() / mi;
+     }
+ 
+@@ -32,9 +31,8 @@
+     static void random (NDArrayContainer<type>& ndac) {
+         type mi = (type) std::numeric_limits<int>::max();
+         assert (ndac.is_consistent());
+-        size_t i = ndac.elements();
+-        size_t j = ndac.data_.size();
+-        for (; i>=1; i--)
++        size_t j = ndac.elements();
++        for (size_t i=0; i<j; i++)
+             ndac[i] = 1.0 - 2.0 * (type)rand() / mi;
+     }
+ 
+@@ -48,9 +46,8 @@
+     static void random (NDArrayContainer<type>& ndac) {
+         rtype mi = std::numeric_limits<int>::max();
+         assert (ndac.is_consistent());
+-        size_t i = ndac.elements();
+-        size_t j = ndac.data_.size();
+-        for (; i>=1; i--)
++        size_t j = ndac.elements();
++        for (size_t i=0; i<j; i++)
+             ndac[i] = type(1.0, 1.0) - type(2.0 * (rtype)rand() / mi, 2.0 * (rtype)rand() / mi);
+     }
+     
+@@ -64,9 +61,8 @@
+     static void random (NDArrayContainer<type>& ndac) {
+         rtype mi = std::numeric_limits<int>::max();
+         assert (ndac.is_consistent());
+-        size_t i = ndac.elements();
+-        size_t j = ndac.data_.size();
+-        for (; i>=1; i--)
++        size_t j = ndac.elements();
++        for (size_t i=0; i<j; i++)
+             ndac[i] = type(1.0, 1.0) - type(2.0 * (rtype)rand() / mi, 2.0 * (rtype)rand() / mi);
+     }
+     
+@@ -79,9 +75,8 @@
+     static void random (NDArrayContainer<type>& ndac) {
+         type mi = (type) std::numeric_limits<type>::max();
+         assert (ndac.is_consistent());
+-        size_t i = ndac.elements();
+-        size_t j = ndac.data_.size();
+-        for (; i>=1; i--)
++        size_t j = ndac.elements();
++        for (size_t i=0; i<j; i++)
+             ndac[i] = rand();
+     }
+     
+@@ -94,9 +89,8 @@
+     static void random (NDArrayContainer<type>& ndac) {
+         type mi = (type) std::numeric_limits<type>::max();
+         assert (ndac.is_consistent());
+-        size_t i = ndac.elements();
+-        size_t j = ndac.data_.size();
+-        for (; i>=1; i--)
++        size_t j = ndac.elements();
++        for (size_t i=0; i<j; i++)
+             ndac[i] = rand();
+     }
+     
+@@ -109,9 +103,8 @@
+     static void random (NDArrayContainer<type>& ndac) {
+         type mi = (type) std::numeric_limits<type>::max();
+         assert (ndac.is_consistent());
+-        size_t i = ndac.elements();
+-        size_t j = ndac.data_.size();
+-        for (; i>=1; i--)
++        size_t j = ndac.elements();
++        for (size_t i=0; i<j; i++)
+             ndac[i] = rand();
+     }
+     
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a4cea68
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+001-fix-test-ndarraycontainer.diff
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b1cb1fe
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+%:
+	dh $@ -- --buildsystem=cmake
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ismrmrd.git



More information about the debian-science-commits mailing list