I prepared the Debian package for fixed (upcoming release 0.7.10-4) and
had to patch the sources in order to have it working with Octave 3.6 and
HDF5 1.8. You will find below the two patches that are being currently
applied to the Debian package of fixed.
Rafael
Description: Drop obsolete call to mark_as_command in the PKG_ADD line
This is necessary in order to have the package working with Octave
3.6.
Author: Rafael Laboissiere <raf...@laboissiere.net>
Last-Update: 2012-03-29
--- octave-fixed-0.7.10.orig/inst/fixedpoint.m
+++ octave-fixed-0.7.10/inst/fixedpoint.m
@@ -57,8 +57,6 @@
## use of this toolbox.
## @end deftypefn
-## PKG_ADD: mark_as_command fixedpoint
-
function retval = fixedpoint(typ, tests)
if (nargin < 1)
Description: Make the package compile against HDF5 1.8
Author: Rafael Laboissiere <raf...@laboissiere.net>
Last-Update: 2012-03-29
--- octave-fixed-0.7.10.orig/src/ov-fixed.cc
+++ octave-fixed-0.7.10/src/ov-fixed.cc
@@ -291,7 +291,7 @@ bool
octave_fixed::save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats)
{
hid_t group_hid = -1;
- group_hid = H5Gcreate (loc_id, name, 0);
+ group_hid = H5Gcreate (loc_id, name, 0, H5P_DEFAULT, H5P_DEFAULT);
if (group_hid < 0 ) return false;
hsize_t dims[3];
@@ -308,7 +308,7 @@ octave_fixed::save_hdf5 (hid_t loc_id, c
}
data_hid = H5Dcreate (group_hid, "int", H5T_NATIVE_UCHAR, space_hid,
- H5P_DEFAULT);
+ H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
if (data_hid < 0)
{
H5Sclose (space_hid);
@@ -328,7 +328,7 @@ octave_fixed::save_hdf5 (hid_t loc_id, c
}
data_hid = H5Dcreate (group_hid, "dec", H5T_NATIVE_UCHAR, space_hid,
- H5P_DEFAULT);
+ H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
if (data_hid < 0)
{
H5Sclose (space_hid);
@@ -348,7 +348,7 @@ octave_fixed::save_hdf5 (hid_t loc_id, c
}
data_hid = H5Dcreate (group_hid, "num", H5T_NATIVE_UINT, space_hid,
- H5P_DEFAULT);
+ H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
if (data_hid < 0)
{
H5Sclose (space_hid);
@@ -374,10 +374,10 @@ octave_fixed::load_hdf5 (hid_t loc_id, c
hid_t group_hid, data_hid, space_id;
hsize_t rank;
- group_hid = H5Gopen (loc_id, name);
+ group_hid = H5Gopen (loc_id, name, H5P_DEFAULT);
if (group_hid < 0 ) return false;
- data_hid = H5Dopen (group_hid, "int");
+ data_hid = H5Dopen (group_hid, "int", H5P_DEFAULT);
space_id = H5Dget_space (data_hid);
rank = H5Sget_simple_extent_ndims (space_id);
@@ -398,7 +398,7 @@ octave_fixed::load_hdf5 (hid_t loc_id, c
H5Dclose (data_hid);
- data_hid = H5Dopen (group_hid, "dec");
+ data_hid = H5Dopen (group_hid, "dec", H5P_DEFAULT);
space_id = H5Dget_space (data_hid);
rank = H5Sget_simple_extent_ndims (space_id);
@@ -418,7 +418,7 @@ octave_fixed::load_hdf5 (hid_t loc_id, c
}
H5Dclose (data_hid);
- data_hid = H5Dopen (group_hid, "num");
+ data_hid = H5Dopen (group_hid, "num", H5P_DEFAULT);
space_id = H5Dget_space (data_hid);
rank = H5Sget_simple_extent_ndims (space_id);
Description: <short summary of the patch>
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.
.
octave-fixed (0.7.10-3) unstable; urgency=low
.
* debian/control:
- Remove Rafael Laboissiere from Uploaders (Closes: #571931)
- Remove Ólafur Jens Sigurðsson <ojs...@gmail.com> from Uploaders
* Bump Standards-Version to 3.9.1, no changes needed
* Switch to dpkg-source 3.0 (quilt) format
* Update watch file to changed upstream location
Author: Thomas Weber <twe...@debian.org>
Bug-Debian: http://bugs.debian.org/571931
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>
--- octave-fixed-0.7.10.orig/src/ov-fixed-mat.cc
+++ octave-fixed-0.7.10/src/ov-fixed-mat.cc
@@ -574,7 +574,7 @@ bool
octave_fixed_matrix::save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats)
{
hid_t group_hid = -1;
- group_hid = H5Gcreate (loc_id, name, 0);
+ group_hid = H5Gcreate (loc_id, name, 0, H5P_DEFAULT, H5P_DEFAULT);
if (group_hid < 0 ) return false;
dim_vector d = dims ();
@@ -595,7 +595,7 @@ octave_fixed_matrix::save_hdf5 (hid_t lo
}
data_hid = H5Dcreate (group_hid, "int", H5T_NATIVE_UCHAR, space_hid,
- H5P_DEFAULT);
+ H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
if (data_hid < 0)
{
H5Sclose (space_hid);
@@ -618,7 +618,7 @@ octave_fixed_matrix::save_hdf5 (hid_t lo
}
data_hid = H5Dcreate (group_hid, "dec", H5T_NATIVE_UCHAR, space_hid,
- H5P_DEFAULT);
+ H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
if (data_hid < 0)
{
H5Sclose (space_hid);
@@ -640,7 +640,7 @@ octave_fixed_matrix::save_hdf5 (hid_t lo
}
data_hid = H5Dcreate (group_hid, "num", H5T_NATIVE_UINT, space_hid,
- H5P_DEFAULT);
+ H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
if (data_hid < 0)
{
H5Sclose (space_hid);
@@ -668,10 +668,10 @@ octave_fixed_matrix::load_hdf5 (hid_t lo
hid_t group_hid, data_hid, space_id;
hsize_t rank, rank_old;
- group_hid = H5Gopen (loc_id, name);
+ group_hid = H5Gopen (loc_id, name, H5P_DEFAULT);
if (group_hid < 0 ) return false;
- data_hid = H5Dopen (group_hid, "int");
+ data_hid = H5Dopen (group_hid, "int", H5P_DEFAULT);
space_id = H5Dget_space (data_hid);
rank = H5Sget_simple_extent_ndims (space_id);
rank_old = rank;
@@ -719,7 +719,7 @@ octave_fixed_matrix::load_hdf5 (hid_t lo
}
H5Dclose (data_hid);
- data_hid = H5Dopen (group_hid, "dec");
+ data_hid = H5Dopen (group_hid, "dec", H5P_DEFAULT);
space_id = H5Dget_space (data_hid);
rank = H5Sget_simple_extent_ndims (space_id);
@@ -766,7 +766,7 @@ octave_fixed_matrix::load_hdf5 (hid_t lo
}
H5Dclose (data_hid);
- data_hid = H5Dopen (group_hid, "num");
+ data_hid = H5Dopen (group_hid, "num", H5P_DEFAULT);
space_id = H5Dget_space (data_hid);
rank = H5Sget_simple_extent_ndims (space_id);
Description: <short summary of the patch>
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.
.
octave-fixed (0.7.10-3) unstable; urgency=low
.
* debian/control:
- Remove Rafael Laboissiere from Uploaders (Closes: #571931)
- Remove Ólafur Jens Sigurðsson <ojs...@gmail.com> from Uploaders
* Bump Standards-Version to 3.9.1, no changes needed
* Switch to dpkg-source 3.0 (quilt) format
* Update watch file to changed upstream location
Author: Thomas Weber <twe...@debian.org>
Bug-Debian: http://bugs.debian.org/571931
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>
--- octave-fixed-0.7.10.orig/src/ov-fixed-complex.cc
+++ octave-fixed-0.7.10/src/ov-fixed-complex.cc
@@ -349,7 +349,7 @@ octave_fixed_complex::save_hdf5 (hid_t l
bool save_as_floats)
{
hid_t group_hid = -1;
- group_hid = H5Gcreate (loc_id, name, 0);
+ group_hid = H5Gcreate (loc_id, name, 0, H5P_DEFAULT, H5P_DEFAULT);
if (group_hid < 0 ) return false;
hsize_t dims[3];
@@ -371,7 +371,8 @@ octave_fixed_complex::save_hdf5 (hid_t l
return false;
}
- data_hid = H5Dcreate (group_hid, "int", type_hid, space_hid, H5P_DEFAULT);
+ data_hid = H5Dcreate (group_hid, "int", type_hid, space_hid, H5P_DEFAULT,
+ H5P_DEFAULT, H5P_DEFAULT);
if (data_hid < 0)
{
H5Sclose (space_hid);
@@ -395,7 +396,8 @@ octave_fixed_complex::save_hdf5 (hid_t l
return false;
}
- data_hid = H5Dcreate (group_hid, "dec", type_hid, space_hid, H5P_DEFAULT);
+ data_hid = H5Dcreate (group_hid, "dec", type_hid, space_hid, H5P_DEFAULT,
+ H5P_DEFAULT, H5P_DEFAULT);
if (data_hid < 0)
{
H5Sclose (space_hid);
@@ -427,7 +429,8 @@ octave_fixed_complex::save_hdf5 (hid_t l
return false;
}
- data_hid = H5Dcreate (group_hid, "num", type_hid, space_hid, H5P_DEFAULT);
+ data_hid = H5Dcreate (group_hid, "num", type_hid, space_hid, H5P_DEFAULT,
+ H5P_DEFAULT, H5P_DEFAULT);
if (data_hid < 0)
{
H5Sclose (space_hid);
@@ -458,12 +461,12 @@ octave_fixed_complex::load_hdf5 (hid_t l
hid_t group_hid, data_hid, type_hid, space_id;
hsize_t rank;
- group_hid = H5Gopen (loc_id, name);
+ group_hid = H5Gopen (loc_id, name, H5P_DEFAULT);
if (group_hid < 0 ) return false;
hid_t complex_type = hdf5_make_fixed_complex_type (H5T_NATIVE_UCHAR, 1);
- data_hid = H5Dopen (group_hid, "int");
+ data_hid = H5Dopen (group_hid, "int", H5P_DEFAULT);
type_hid = H5Dget_type (data_hid);
if (! hdf5_types_compatible (type_hid, complex_type))
@@ -499,7 +502,7 @@ octave_fixed_complex::load_hdf5 (hid_t l
H5Tclose(type_hid);
H5Dclose (data_hid);
- data_hid = H5Dopen (group_hid, "dec");
+ data_hid = H5Dopen (group_hid, "dec", H5P_DEFAULT);
type_hid = H5Dget_type (data_hid);
if (! hdf5_types_compatible (type_hid, complex_type))
@@ -539,7 +542,7 @@ octave_fixed_complex::load_hdf5 (hid_t l
complex_type = hdf5_make_fixed_complex_type (H5T_NATIVE_UINT,
sizeof(unsigned int));
- data_hid = H5Dopen (group_hid, "num");
+ data_hid = H5Dopen (group_hid, "num", H5P_DEFAULT);
type_hid = H5Dget_type (data_hid);
if (! hdf5_types_compatible (type_hid, complex_type))
Description: <short summary of the patch>
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.
.
octave-fixed (0.7.10-3) unstable; urgency=low
.
* debian/control:
- Remove Rafael Laboissiere from Uploaders (Closes: #571931)
- Remove Ólafur Jens Sigurðsson <ojs...@gmail.com> from Uploaders
* Bump Standards-Version to 3.9.1, no changes needed
* Switch to dpkg-source 3.0 (quilt) format
* Update watch file to changed upstream location
Author: Thomas Weber <twe...@debian.org>
Bug-Debian: http://bugs.debian.org/571931
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>
--- octave-fixed-0.7.10.orig/src/ov-fixed-cx-mat.cc
+++ octave-fixed-0.7.10/src/ov-fixed-cx-mat.cc
@@ -616,7 +616,7 @@ octave_fixed_complex_matrix::save_hdf5 (
bool save_as_floats)
{
hid_t group_hid = -1;
- group_hid = H5Gcreate (loc_id, name, 0);
+ group_hid = H5Gcreate (loc_id, name, 0, H5P_DEFAULT, H5P_DEFAULT);
if (group_hid < 0 ) return false;
dim_vector d = dims ();
@@ -644,7 +644,8 @@ octave_fixed_complex_matrix::save_hdf5 (
return false;
}
- data_hid = H5Dcreate (group_hid, "int", type_hid, space_hid, H5P_DEFAULT);
+ data_hid = H5Dcreate (group_hid, "int", type_hid, space_hid, H5P_DEFAULT,
+ H5P_DEFAULT, H5P_DEFAULT);
if (data_hid < 0)
{
H5Sclose (space_hid);
@@ -707,7 +708,8 @@ octave_fixed_complex_matrix::save_hdf5 (
return false;
}
- data_hid = H5Dcreate (group_hid, "num", type_hid, space_hid, H5P_DEFAULT);
+ data_hid = H5Dcreate (group_hid, "num", type_hid, space_hid, H5P_DEFAULT,
+ H5P_DEFAULT, H5P_DEFAULT);
if (data_hid < 0)
{
H5Sclose (space_hid);
@@ -740,13 +742,13 @@ octave_fixed_complex_matrix::load_hdf5 (
hid_t group_hid, data_hid, space_id, type_hid;
hsize_t rank, rank_old;
- group_hid = H5Gopen (loc_id, name);
+ group_hid = H5Gopen (loc_id, name, H5P_DEFAULT);
if (group_hid < 0 ) return false;
hid_t complex_type = hdf5_make_fixed_complex_type (H5T_NATIVE_UINT,
sizeof(unsigned int));
- data_hid = H5Dopen (group_hid, "int");
+ data_hid = H5Dopen (group_hid, "int", H5P_DEFAULT);
type_hid = H5Dget_type (data_hid);
if (! hdf5_types_compatible (type_hid, complex_type))
@@ -810,7 +812,7 @@ octave_fixed_complex_matrix::load_hdf5 (
H5Tclose(type_hid);
H5Dclose (data_hid);
- data_hid = H5Dopen (group_hid, "dec");
+ data_hid = H5Dopen (group_hid, "dec", H5P_DEFAULT);
type_hid = H5Dget_type (data_hid);
if (! hdf5_types_compatible (type_hid, complex_type))
@@ -875,7 +877,7 @@ octave_fixed_complex_matrix::load_hdf5 (
H5Tclose(type_hid);
H5Dclose (data_hid);
- data_hid = H5Dopen (group_hid, "num");
+ data_hid = H5Dopen (group_hid, "num", H5P_DEFAULT);
type_hid = H5Dget_type (data_hid);
if (! hdf5_types_compatible (type_hid, complex_type))
Description: <short summary of the patch>
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.
.
octave-fixed (0.7.10-3) unstable; urgency=low
.
* debian/control:
- Remove Rafael Laboissiere from Uploaders (Closes: #571931)
- Remove Ólafur Jens Sigurðsson <ojs...@gmail.com> from Uploaders
* Bump Standards-Version to 3.9.1, no changes needed
* Switch to dpkg-source 3.0 (quilt) format
* Update watch file to changed upstream location
Author: Thomas Weber <twe...@debian.org>
Bug-Debian: http://bugs.debian.org/571931
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>
--- octave-fixed-0.7.10.orig/src/ov-fixed-cx-mat.cc
+++ octave-fixed-0.7.10/src/ov-fixed-cx-mat.cc
@@ -672,7 +672,8 @@ octave_fixed_complex_matrix::save_hdf5 (
return false;
}
- data_hid = H5Dcreate (group_hid, "dec", type_hid, space_hid, H5P_DEFAULT);
+ data_hid = H5Dcreate (group_hid, "dec", type_hid, space_hid, H5P_DEFAULT,
+ H5P_DEFAULT, H5P_DEFAULT);
if (data_hid < 0)
{
H5Sclose (space_hid);
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev