Merge lp:~ari-tczew/ubuntu/maverick/agg/lp-393923 into lp:ubuntu/maverick/agg

Proposed by Artur Rona
Status: Merged
Merged at revision: 10
Proposed branch: lp:~ari-tczew/ubuntu/maverick/agg/lp-393923
Merge into: lp:ubuntu/maverick/agg
Diff against target: 89 lines (+37/-4)
5 files modified
debian/changelog (+9/-0)
debian/control (+2/-1)
debian/patches/00list (+1/-0)
debian/patches/05_fix_recursion_crash.dpatch (+3/-3)
debian/patches/06_fix_missing_includes.dpatch (+22/-0)
To merge this branch: bzr merge lp:~ari-tczew/ubuntu/maverick/agg/lp-393923
Reviewer Review Type Date Requested Status
Artur Rona (community) Needs Resubmitting
Stefano Rivera Needs Fixing
Review via email: mp+33348@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Stefano Rivera (stefanor) wrote :

+ * debian/control: Add depends field including Depends: ${misc:Depends}
+ for fix debhelper-but-no-misc-depends

Unnecessary diversion from debian (does it actually expand to anything?), but please file a bug with them about this.

+ * debian/README.source: Fix patch-system-but-no-source-readme

Unnecessary diversion from debian, and I don't even see it in the diff, did you bzr add it?

+ * debian/patches/06_fix_missing_includes.dpatch: Fix missing
+ includes causes compilation problem. (LP: #393923)

I don't see it in the diff, did you bzr add it?

review: Needs Fixing
11. By Artur Rona

  includes causes compilation problem. (LP: #393923, Closes: #575620)

12. By Artur Rona

Fix some issues suggested by Stefano.

Revision history for this message
Artur Rona (ari-tczew) wrote :

Fixed, ready for review again.

review: Needs Resubmitting

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2009-11-20 19:10:21 +0000
3+++ debian/changelog 2010-08-23 10:57:40 +0000
4@@ -1,3 +1,12 @@
5+agg (2.5+dfsg1-3ubuntu1) maverick; urgency=low
6+
7+ * debian/patches/06_fix_missing_includes.dpatch: Fix missing
8+ includes causes compilation problem. (LP: #393923, Closes: #575620)
9+ * debian/patches/05_fix_recursion_crash.dpatch: Update patch,
10+ it's necessary to fix compilation problem.
11+
12+ -- Artur Rona <ari-tczew@tlen.pl> Mon, 23 Aug 2010 01:34:28 +0200
13+
14 agg (2.5+dfsg1-3) unstable; urgency=low
15
16 * debian/patches/05_fix_recursion_crash:
17
18=== modified file 'debian/control'
19--- debian/control 2009-11-20 19:10:21 +0000
20+++ debian/control 2010-08-23 10:57:40 +0000
21@@ -1,6 +1,7 @@
22 Source: agg
23 Priority: optional
24-Maintainer: Andrea Veri <andrea.veri89@gmail.com>
25+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
26+XSBC-Original-Maintainer: Andrea Veri <andrea.veri89@gmail.com>
27 Build-Depends: debhelper (>= 7), dpatch, autoconf, automake1.9, libsdl1.2-dev, libfreetype6-dev, pkg-config, libtool, libx11-dev
28 Standards-Version: 3.8.3
29 DM-Upload-Allowed: yes
30
31=== modified file 'debian/patches/00list'
32--- debian/patches/00list 2009-11-20 19:10:21 +0000
33+++ debian/patches/00list 2010-08-23 10:57:40 +0000
34@@ -3,3 +3,4 @@
35 03_pkg_config_pic.dpatch
36 04_no_rpath
37 05_fix_recursion_crash.dpatch
38+06_fix_missing_includes.dpatch
39
40=== modified file 'debian/patches/05_fix_recursion_crash.dpatch'
41--- debian/patches/05_fix_recursion_crash.dpatch 2009-11-20 19:10:21 +0000
42+++ debian/patches/05_fix_recursion_crash.dpatch 2010-08-23 10:57:40 +0000
43@@ -3,7 +3,7 @@
44 ##
45 ## All lines beginning with `## DP:' are a description of the patch.
46 ## DP: Ubuntu: http://launchpad.net/bugs/344849
47-## DP: Patch: https://trac.mapnik.org/ticket/253
48+## DP: Patch: https://trac.mapnik.org/ticket/253, http://trac.mapnik.org/changeset/1801
49 ## DP: Description: Avoid a crash caused by an infinite recursion when drawing extremely long lines
50
51 @DPATCH@
52@@ -16,8 +16,8 @@
53 int cy = (y1 + y2) >> 1;
54 +
55 + // Bail if values are so large they are likely to wrap
56-+ if ((abs(x1) >= INT_MAX/2) || (abs(y1) >= INT_MAX/2) ||
57-+ (abs(x2) >= INT_MAX/2) || (abs(y2) >= INT_MAX/2))
58++ if ((std::abs(x1) >= std::numeric_limits<int>::max()/2) || (std::abs(y1) >= std::numeric_limits<int>::max()/2) ||
59++ (std::abs(x2) >= std::numeric_limits<int>::max()/2) || (std::abs(y2) >= std::numeric_limits<int>::max()/2))
60 + return;
61 +
62 line(x1, y1, cx, cy);
63
64=== added file 'debian/patches/06_fix_missing_includes.dpatch'
65--- debian/patches/06_fix_missing_includes.dpatch 1970-01-01 00:00:00 +0000
66+++ debian/patches/06_fix_missing_includes.dpatch 2010-08-23 10:57:40 +0000
67@@ -0,0 +1,22 @@
68+#! /bin/sh /usr/share/dpatch/dpatch-run
69+## From: Artur Rona
70+## Description: Add missing includes for fix compile.
71+## Bug: https://launchpad.net/bugs/393923
72+## Origin: upstream, https://trac.mapnik.org/changeset/1801
73+## Author: Dane Springmeyer
74+
75+@DPATCH@
76+
77+diff -pruN -x '*~' agg-2.5+dfsg1.orig/include/agg_rasterizer_cells_aa.h agg-2.5+dfsg1/include/agg_rasterizer_cells_aa.h
78+--- agg-2.5+dfsg1.orig/include/agg_rasterizer_cells_aa.h 2007-10-11 00:06:16.000000000 +0200
79++++ agg-2.5+dfsg1/include/agg_rasterizer_cells_aa.h 2010-08-23 01:51:07.000000000 +0200
80+@@ -40,7 +40,8 @@
81+ #define AGG_RASTERIZER_CELLS_AA_INCLUDED
82+
83+ #include <string.h>
84+-#include <math.h>
85++#include <cstdlib>
86++#include <limits>
87+ #include "agg_math.h"
88+ #include "agg_array.h"
89+

Subscribers

People subscribed via source and target branches

to all changes: