rpms/paraview/devel paraview-3.4.0-hdf5-1.8.2.patch, NONE, 1.1 paraview.spec, 1.32, 1.33

Orion Poplawski orion at fedoraproject.org
Tue Feb 24 22:42:51 UTC 2009


Author: orion

Update of /cvs/pkgs/rpms/paraview/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15009

Modified Files:
	paraview.spec 
Added Files:
	paraview-3.4.0-hdf5-1.8.2.patch 
Log Message:
Turns out the hdf5 patch needs updating for hdf5 1.8.2


paraview-3.4.0-hdf5-1.8.2.patch:

--- NEW FILE paraview-3.4.0-hdf5-1.8.2.patch ---
--- ParaView-3.4.0/Utilities/Xdmf2/libsrc/XdmfH5Driver.cxx.hdf5-1.8.2	2009-02-24 14:13:53.000000000 -0700
+++ ParaView-3.4.0/Utilities/Xdmf2/libsrc/XdmfH5Driver.cxx	2009-02-24 15:34:49.000000000 -0700
@@ -133,9 +133,15 @@
 static herr_t H5FD_dsm_flush(H5FD_t *_file);
 #endif
 static int H5FD_dsm_cmp(const H5FD_t *_f1, const H5FD_t *_f2);
+#if (H5_VERS_MAJOR>1)||((H5_VERS_MAJOR==1)&&(H5_VERS_MINOR>=8))
+static haddr_t H5FD_dsm_get_eoa(const H5FD_t *_file, H5FD_mem_t type);
+static herr_t H5FD_dsm_set_eoa(H5FD_t *_file, H5FD_mem_t type, haddr_t addr);
+static haddr_t H5FD_dsm_get_eof(const H5FD_t *_file);
+#else
 static haddr_t H5FD_dsm_get_eoa(H5FD_t *_file);
 static herr_t H5FD_dsm_set_eoa(H5FD_t *_file, haddr_t addr);
 static haddr_t H5FD_dsm_get_eof(H5FD_t *_file);
+#endif
 static herr_t H5FD_dsm_read(H5FD_t *_file, H5FD_mem_t type, hid_t fapl_id, haddr_t addr,
            DSM_HSIZE_T size, void *buf);
 static herr_t H5FD_dsm_write(H5FD_t *_file, H5FD_mem_t type, hid_t fapl_id, haddr_t addr,
@@ -160,6 +166,9 @@
     H5FD_dsm_close,             /*close         */
     H5FD_dsm_cmp,               /*cmp           */
     NULL,                       /*query         */
+#if (H5_VERS_MAJOR>1)||((H5_VERS_MAJOR==1)&&((H5_VERS_MINOR>9)||((H5_VERS_MINOR==8)&&(H5_VERS_RELEASE>=2))))
+    NULL,                       /*get_type_map  */
+#endif
     NULL,                       /*alloc         */
     NULL,                       /*free          */
     H5FD_dsm_get_eoa,           /*get_eoa       */
@@ -169,6 +178,9 @@
     H5FD_dsm_read,              /*read          */
     H5FD_dsm_write,             /*write         */
     NULL,                       /*flush         */
+#if (H5_VERS_MAJOR>1)||((H5_VERS_MAJOR==1)&&((H5_VERS_MINOR>9)||((H5_VERS_MINOR==8)&&(H5_VERS_RELEASE>=2))))
+    NULL,                       /*truncate      */
+#endif
     NULL,                       /*lock          */
     NULL,                       /*unlock        */
     H5FD_FLMAP_SINGLE           /*fl_map        */
@@ -595,7 +607,11 @@
  *-------------------------------------------------------------------------
  */
 static haddr_t
+#if (H5_VERS_MAJOR>1)||((H5_VERS_MAJOR==1)&&(H5_VERS_MINOR>=8))
+H5FD_dsm_get_eoa(const H5FD_t *_file, H5FD_mem_t type)
+#else
 H5FD_dsm_get_eoa(H5FD_t *_file)
+#endif
 {
     H5FD_dsm_t  *file = (H5FD_dsm_t*)_file;
 
@@ -623,7 +639,11 @@
  *-------------------------------------------------------------------------
  */
 static herr_t
+#if (H5_VERS_MAJOR>1)||((H5_VERS_MAJOR==1)&&(H5_VERS_MINOR>=8))
+H5FD_dsm_set_eoa(H5FD_t *_file, H5FD_mem_t type, haddr_t addr)
+#else
 H5FD_dsm_set_eoa(H5FD_t *_file, haddr_t addr)
+#endif
 {
     H5FD_dsm_t  *file = (H5FD_dsm_t*)_file;
 
@@ -664,7 +684,11 @@
  *-------------------------------------------------------------------------
  */
 static haddr_t
+#if (H5_VERS_MAJOR>1)||((H5_VERS_MAJOR==1)&&(H5_VERS_MINOR>=8))
+H5FD_dsm_get_eof(const H5FD_t *_file)
+#else
 H5FD_dsm_get_eof(H5FD_t *_file)
+#endif
 {
     H5FD_dsm_t  *file = (H5FD_dsm_t*)_file;
 


Index: paraview.spec
===================================================================
RCS file: /cvs/pkgs/rpms/paraview/devel/paraview.spec,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- paraview.spec	24 Feb 2009 21:23:12 -0000	1.32
+++ paraview.spec	24 Feb 2009 22:42:21 -0000	1.33
@@ -26,6 +26,7 @@
 Patch6:         paraview-3.3.1-gcc43.patch
 #Reported upstream: http://public.kitware.com/mantis/view.php?id=7023
 Patch7:         paraview-3.2.2-hdf5.patch
+Patch8:         paraview-3.4.0-hdf5-1.8.2.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  cmake
@@ -126,6 +127,7 @@
 %patch4 -p1 -b .assistant-qt4
 %patch6 -p1 -b .gcc43
 %patch7 -p1 -b .hdf5
+%patch8 -p1 -b .hdf5-1.8.2
 #Remove included hdf5 just to be sure
 rm -r Utilities/hdf5
 
@@ -345,7 +347,7 @@
 %changelog
 * Tue Feb 24 2009 Orion Poplawski <orion at cora.nwra.com> - 3.4.0-4
 - Rebuild with hdf5 1.8.2, gcc 4.4.0
-- Drop hdf5-1.8 patch no longer needed with hdf5 1.8.2
+- Update hdf5-1.8 patch to work with hdf5 1.8.2
 - Add patch to allow build with Qt 4.5
 - Move documentation into noarch sub-package
 




More information about the fedora-extras-commits mailing list