mathgl (1.11.0.1-2) experimental; urgency=low
- * Apply upstream patch for FTBFS on i386 (Closes: #607539).
+ * Apply patch for FTBFS on i386 (Closes: #607539).
* Change debian/rules file.
- -- Dimitrios Eftaxiopoulos <eftaxi12@otenet.gr> Sun, 12 Dec 2010 19:13:00 +0200
+ -- Dimitrios Eftaxiopoulos <eftaxi12@otenet.gr> Thu, 30 Dec 2010 14:36:00 +0200
mathgl (1.11.0.1-1) experimental; urgency=low
-Upstream patch for FTBFS on i386
+Fixes FTBFS on i386
--- a/mgl/mgl_data_io.cpp
+++ b/mgl/mgl_data_io.cpp
@@ -2,33 +2,33 @@
-#endif
+{\r
+#ifdef HAVE_HDF4\r
-+ long sd = SDstart(fname,DFACC_READ), nn, i;\r
++ int32 sd = SDstart(fname,DFACC_READ), nn, i;\r
+ if(sd==-1) return; // is not a HDF4 file\r
+ char name[64];\r
+ SDfileinfo(sd,&nn,&i);\r
+ for(i=0;i<nn;i++)\r
+ {\r
-+ long sds, rank, dims[32], type, attr, in[2]={0,0};\r
++ int32 sds, rank, dims[32], type, attr, in[2]={0,0};\r
+ sds = SDselect(sd,i);\r
+ SDgetinfo(sds,name,&rank,dims,&type,&attr);\r
+ if(!strcmp(name,data)) // as I understand there are possible many datas with the same name\r
void mglData::ReadHDF4(const char *fname,const char *data)\r
{\r
#ifdef HAVE_HDF4\r
- long sd = SDstart(fname,DFACC_READ), nn, i;\r
+ int32 sd = SDstart(fname,DFACC_READ), nn, i;\r
if(sd==-1) return; // is not a HDF4 file\r
char name[64];\r
SDfileinfo(sd,&nn,&i);\r
for(i=0;i<nn;i++)\r
{\r
- long sds, rank, dims[32], type, attr, in[2]={0,0};\r
+ int32 sds, rank, dims[32], type, attr, in[2]={0,0};\r
sds = SDselect(sd,i);\r
SDgetinfo(sds,name,&rank,dims,&type,&attr);\r
if(!strcmp(name,data)) // as I understand there are possible many datas with the same name\r