[packages/agg] - cxx fixes for gcc 8 - rel 8

baggins baggins at pld-linux.org
Mon Sep 3 13:34:48 CEST 2018


commit 355d469dbe67922824fe6a502fee6a6adb38eb42
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Sep 3 13:34:21 2018 +0200

    - cxx fixes for gcc 8
    - rel 8

 agg.spec  |  7 +++++--
 cxx.patch | 39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+), 2 deletions(-)
---
diff --git a/agg.spec b/agg.spec
index 45de61d..917b821 100644
--- a/agg.spec
+++ b/agg.spec
@@ -2,13 +2,14 @@ Summary:	A High Quality Rendering Engine for C++
 Summary(pl.UTF-8):	Silnik renderujący wysokiej jakości dla C++
 Name:		agg
 Version:	2.5
-Release:	7
+Release:	8
 License:	GPL v2+
 Group:		Libraries
 Source0:	http://www.antigrain.com/%{name}-%{version}.tar.gz
 # Source0-md5:	ddc67cbdc7d51e1ec984c2ac2724c08a
 Patch0:		%{name}-depends.patch
 Patch1:		ac.patch
+Patch2:		cxx.patch
 URL:		http://www.antigrain.com/
 BuildRequires:	SDL-devel
 BuildRequires:	autoconf
@@ -78,6 +79,7 @@ Statyczna biblioteka agg.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__libtoolize}
@@ -86,7 +88,8 @@ Statyczna biblioteka agg.
 %{__autoconf}
 %{__automake}
 %configure \
-	--disable-gpc
+	--disable-gpc \
+	--disable-examples
 
 %{__make} -j1
 
diff --git a/cxx.patch b/cxx.patch
new file mode 100644
index 0000000..6975d02
--- /dev/null
+++ b/cxx.patch
@@ -0,0 +1,39 @@
+diff -ur agg-2.5/include/agg_renderer_outline_aa.h agg-2.5.c++/include/agg_renderer_outline_aa.h
+--- agg-2.5/include/agg_renderer_outline_aa.h	2006-10-09 06:07:08.000000000 +0200
++++ agg-2.5.c++/include/agg_renderer_outline_aa.h	2018-09-03 11:45:56.795337176 +0200
+@@ -1375,7 +1375,7 @@
+         //---------------------------------------------------------------------
+         void profile(const line_profile_aa& prof) { m_profile = &prof; }
+         const line_profile_aa& profile() const { return *m_profile; }
+-        line_profile_aa& profile() { return *m_profile; }
++        const line_profile_aa& profile() { return *m_profile; }
+ 
+         //---------------------------------------------------------------------
+         int subpixel_width() const { return m_profile->subpixel_width(); }
+diff -ur agg-2.5/include/agg_scanline_u.h agg-2.5.c++/include/agg_scanline_u.h
+--- agg-2.5/include/agg_scanline_u.h	2006-10-09 06:07:10.000000000 +0200
++++ agg-2.5.c++/include/agg_scanline_u.h	2018-09-03 11:48:04.543654164 +0200
+@@ -476,18 +476,19 @@
+         scanline32_u8_am() : base_type(), m_alpha_mask(0) {}
+         scanline32_u8_am(const AlphaMask& am) : base_type(), m_alpha_mask(&am) {}
+ 
++	base_type b;
+         //--------------------------------------------------------------------
+         void finalize(int span_y)
+         {
+-            base_type::finalize(span_y);
++            b.finalize(span_y);
+             if(m_alpha_mask)
+             {
+-                typename base_type::iterator span = base_type::begin();
+-                unsigned count = base_type::num_spans();
++                typename base_type::iterator span = b.begin();
++                unsigned count = b.num_spans();
+                 do
+                 {
+                     m_alpha_mask->combine_hspan(span->x, 
+-                                                base_type::y(), 
++                                                b.y(), 
+                                                 span->covers, 
+                                                 span->len);
+                     ++span;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/agg.git/commitdiff/355d469dbe67922824fe6a502fee6a6adb38eb42



More information about the pld-cvs-commit mailing list