[DebianGIS-dev] Bug#537414: Please default to 1.8 interface for hdf5-1.8.x
Greetings, I was recently bitten by this bug again. HDF5 has had the new API for almost 3 years. This is getting a bit ridiculous. It is time for Debian to use the new API. From http://www.hdfgroup.org/HDF5/doc/RM/APICompatMacros.html For new code development, The HDF Group recommends use of the compatibility macro mapped to the latest version of the function. Debian is making it impossible to use this compatibility macro. If you download HDF5 from the net and build software against it using the recommended API, it will not then build against the Debian version. In addition, it seems that there is an easy workaround for people who want to use the old API, but there is no easy workaround for people using the new API. So pretty please, with sugar on top, change the default API. Thanks, Walter Landry wlan...@caltech.edu ___ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel
[DebianGIS-dev] Bug#537414: please default to 1.8 interface for hdf5-1.8.x
Hi! This is still present in 1.8.3-2.1 and the fix is simply to remove the line #define H5_USE_16_API_DEFAULT 1 from /usr/include/H5pubconf.h, Or surround it with #if !defined(H5_I_REALLY_DO_NOT_WANT_OLD_API) #define H5_USE_16_API_DEFAULT 1 #endif This would give those users who, like me, have software written for 1.8 API, the possibility to compile it without altering the code. My example is the SAMRAI library, which is smart enough to support both 1.6 and 1.8, by #ifdefing stuff like this: #if (H5_VERS_MAJOR>1) || ((H5_VERS_MAJOR==1)&&(H5_VERS_MINOR > 6)) But it trusts 1.8 library to use 1.8 API! Or at least that there would be a way to make it use 1.8 syntax without altering the code or libhdf5's headers. I would also suggest bumping up the severity: this breaks unrelated software, albeit none from Debian that I am aware, so I am not sure what would be appropriate. -Juha -- --- | Juha Jäykkä, ju...@iki.fi | | http://www.utu.fi/~juolja/| --- signature.asc Description: This is a digitally signed message part. ___ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel
Re: [DebianGIS-dev] Bug#537414: please default to 1.8 interface for hdf5-1.8.x
On Sat, Jul 18, 2009 at 12:21:19AM -0400, Chun-Chung Chen wrote: > Package: hdf5 > Version: 1.8.3-1 > Severity: wishlist > > When default to 1.8 interface, building packages using 1.6 interface > can be done with CFLAGS="-DH5_USE_16_API". However, there is no > similar mechanism available for building packages using 1.8 > interface when 1.6 is the default. One will have to modify the > source code manually for all occurrences of changed prototypes. > Preserving back-compatibility is the major concern. Applications can always refer new functions by their explicit names or using some better mechanism to work with both versions. The compatibility macros are better suited for not up-to-date programs and the 1.6 API is the default one for non randomic reasons. I would avoid to change the default behavior for the incoming years until 1.8 series would become of general use. -- Francesco P. Lovergine ___ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel
[DebianGIS-dev] Bug#537414: please default to 1.8 interface for hdf5-1.8.x
Package: hdf5 Version: 1.8.3-1 Severity: wishlist When default to 1.8 interface, building packages using 1.6 interface can be done with CFLAGS="-DH5_USE_16_API". However, there is no similar mechanism available for building packages using 1.8 interface when 1.6 is the default. One will have to modify the source code manually for all occurrences of changed prototypes. Chun-Chung Chen ___ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel