tags 625068 patch
user ubuntu-de...@lists.ubuntu.com
usertags 625068 ubuntu-patch oneiric
thanks

On Mon, May 02, 2011 at 02:33:55PM +0200, Lucas Nussbaum wrote:
> During a rebuild of all packages in sid, your package failed to build on
> amd64.
> 
> Relevant part:
> > g++ -c -pipe -Wall -W -O2 -fPIC OPJFile.cpp -o OPJFile.o
> > In file included from OPJFile.h:42:0,
> >                  from OPJFile.cpp:37:
> > tree.hh:138:21: error: 'ptrdiff_t' does not name a type

Patch follows.  It applies on top of #607396, on the assumption that
you'll apply that first; if for some reason you don't then it's easy to
adjust.

  * debian/patches/cstddef.patch: Include <cstddef> for ptrdiff_t (closes:
    #625068, LP: #771110).

diff -u liborigin-20080225/debian/patches/series 
liborigin-20080225/debian/patches/series
--- liborigin-20080225/debian/patches/series
+++ liborigin-20080225/debian/patches/series
@@ -2,0 +3 @@
+03_cstddef.patch
only in patch2:
unchanged:
--- liborigin-20080225.orig/debian/patches/03_cstddef.patch
+++ liborigin-20080225/debian/patches/03_cstddef.patch
@@ -0,0 +1,20 @@
+Description: Include <cstddef> for ptrdiff_t
+ G++ 4.6 is stricter about header namespacing.
+Author: Colin Watson <cjwat...@ubuntu.com>
+Bug-Debian: http://bugs.debian.org/625068
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/771110
+Forwarded: no
+Last-Update: 2011-09-13
+
+Index: b/tree.hh
+===================================================================
+--- a/tree.hh
++++ b/tree.hh
+@@ -67,6 +67,7 @@
+ #include <set>
+ #include <queue>
+ #include <iostream>
++#include <cstddef>
+ 
+ // HP-style construct/destroy have gone from the standard,
+ // so here is a copy.

Thanks,

-- 
Colin Watson                                       [cjwat...@ubuntu.com]



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to