Bug#625055: complete patch
Julian Taylor
jtaylor.debian at googlemail.com
Mon Jul 25 15:46:13 UTC 2011
tags 625055 + patch
thanks
the patch I found in the vcs is incomplete
(http://anonscm.debian.org/viewvc/debian-science/packages/paraview/trunk/debian/patches/stddef_ptrdiff.patch?revision=38482&view=markup).
Here a complete patch also covering offsetof:
Description: fix build with gcc 4.6
add cstddef includes to get definitions of ptrdiff_t and offsetof
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625055
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+bug/770870
Index: paraview-3.8.1/VTK/Common/vtkPythonUtil.cxx
===================================================================
--- paraview-3.8.1.orig/VTK/Common/vtkPythonUtil.cxx 2011-07-25
14:53:50.971192633 +0000
+++ paraview-3.8.1/VTK/Common/vtkPythonUtil.cxx 2011-07-25
14:54:05.081192641 +0000
@@ -30,6 +30,7 @@
#include <vtksys/ios/sstream>
#include <vtkstd/map>
#include <vtkstd/string>
+#include <cstddef>
// Silent warning like
// "dereferencing type-punned pointer will break strict-aliasing rules"
Index: paraview-3.8.1/VTK/Utilities/vtkmetaio/metaUtils.cxx
===================================================================
--- paraview-3.8.1.orig/VTK/Utilities/vtkmetaio/metaUtils.cxx
2011-07-25 14:46:19.791192351 +0000
+++ paraview-3.8.1/VTK/Utilities/vtkmetaio/metaUtils.cxx
2011-07-25 14:46:31.491192359 +0000
@@ -37,6 +37,7 @@
#include <stdlib.h>
#include <string.h>
#include <string>
+#include <cstddef>
#if defined (__BORLANDC__) && (__BORLANDC__ >= 0x0580)
#include <mem.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20110725/3080acb0/attachment.pgp>
More information about the debian-science-maintainers
mailing list