[med-svn] [libminc] 01/02: d/p/netcdf: Strip MINC flag from file creation, Closes: #888925
Gert Wollny
gewo at moszumanska.debian.org
Sat Feb 10 08:42:34 UTC 2018
This is an automated email from the git hooks/post-receive script.
gewo pushed a commit to branch master
in repository libminc.
commit c21530114bb3d2e6f68a2af15006d456ed6a73ba
Author: Gert Wollny <gewo at debian.org>
Date: Thu Feb 8 14:49:59 2018 +0100
d/p/netcdf: Strip MINC flag from file creation, Closes: #888925
---
debian/patches/netcdf-4.6.patch | 16 ++++++++++++++++
debian/patches/series | 1 +
2 files changed, 17 insertions(+)
diff --git a/debian/patches/netcdf-4.6.patch b/debian/patches/netcdf-4.6.patch
new file mode 100644
index 0000000..b30cd01
--- /dev/null
+++ b/debian/patches/netcdf-4.6.patch
@@ -0,0 +1,16 @@
+Author: Gert Wollny <gw.fosssdev at gmail.com>
+Description: Strip the MINC flag before the call to nccreate
+ This is a hole-plugging fix, mixing the MINC flags with the backend
+ flags is really bad style ...
+Debian-Bug: http://bugs.debian.org/888925
+--- a/libsrc/netcdf_convenience.c
++++ b/libsrc/netcdf_convenience.c
+@@ -600,7 +600,7 @@
+ MI_SAVE_ROUTINE_NAME("micreate");
+
+ if ((cmode & MI2_CREATE_V1) != 0) {
+- fd = nccreate(path, cmode);
++ fd = nccreate(path, cmode & ~MI2_CREATE_V1);
+ }
+ else if (miget_cfg_bool(MICFG_FORCE_V2) || (cmode & MI2_CREATE_V2) != 0) {
+ fd = hdf_create(path, cmode, opts_ptr);
diff --git a/debian/patches/series b/debian/patches/series
index cdbd433..051370c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ use-system-nifti
fix-endian-issues-label-data.patch
Use-system-FindHDF5-CMake-module.patch
hdf5-1.10-support.patch
+netcdf-4.6.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libminc.git
More information about the debian-med-commit
mailing list