[arch-commits] Commit in agg/trunk (PKGBUILD bad-const.patch)
Jan Steffens
heftig at archlinux.org
Sat Jun 16 21:11:59 UTC 2018
Date: Saturday, June 16, 2018 @ 21:11:59
Author: heftig
Revision: 343409
2.5-9: Add hack to make it compile again
Added:
agg/trunk/bad-const.patch
Modified:
agg/trunk/PKGBUILD
-----------------+
PKGBUILD | 12 ++++++++----
bad-const.patch | 12 ++++++++++++
2 files changed, 20 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-06-16 16:03:31 UTC (rev 343408)
+++ PKGBUILD 2018-06-16 21:11:59 UTC (rev 343409)
@@ -4,10 +4,10 @@
pkgname=agg
pkgver=2.5
-pkgrel=8
+pkgrel=9
pkgdesc='High Quality Rendering Engine for C++'
arch=('x86_64')
-url='http://pkgs.fedoraproject.org/cgit/agg.git'
+url='https://src.fedoraproject.org/rpms/agg'
license=('GPL')
depends=('gcc-libs' 'sdl' 'freetype2')
provides=('antigrain')
@@ -30,7 +30,8 @@
0012-Avoid-pixel-artifacts-when-compositing.patch
0013-Modify-agg-conv-classes-to-allow-access-to-the-origi.patch
0014-Avoid-potential-zero-division-resulting-in-nan-in-ag.patch
- 0015-Ensure-first-value-in-the-gamma-table-is-always-zero.patch)
+ 0015-Ensure-first-value-in-the-gamma-table-is-always-zero.patch
+ bad-const.patch)
md5sums=('d84c648bc2b57266e33d702c1af2a786'
'22f8e48c137d25038181c86d5e40b110'
'43a19a7b1564c591e56c8d09a0fd8da5'
@@ -49,7 +50,8 @@
'02e7df597ce0174cb3f8c665bcc6e436'
'398c544671060b45b70ed24ada3285f4'
'da05a1ef008e2702d2b0ca379ea07e2a'
- '703351fc0af2d5e21ec3d67fcf112d0d')
+ '703351fc0af2d5e21ec3d67fcf112d0d'
+ 'd25d0763a4e52111cd2f5716505cced8')
prepare() {
cd "$pkgname-$pkgver"
@@ -72,6 +74,8 @@
patch -p1 -i ../0013-Modify-agg-conv-classes-to-allow-access-to-the-origi.patch
patch -p1 -i ../0014-Avoid-potential-zero-division-resulting-in-nan-in-ag.patch
patch -p1 -i ../0015-Ensure-first-value-in-the-gamma-table-is-always-zero.patch
+ patch -p1 -i ../bad-const.patch
+
aclocal
autoheader
autoconf
Added: bad-const.patch
===================================================================
--- bad-const.patch (rev 0)
+++ bad-const.patch 2018-06-16 21:11:59 UTC (rev 343409)
@@ -0,0 +1,12 @@
+diff -u -r agg-2.5/include/agg_renderer_outline_aa.h agg-2.5-const/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-const/include/agg_renderer_outline_aa.h 2018-06-16 23:09:16.500057814 +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; }
++ line_profile_aa& profile() { return *const_cast<line_profile_aa*>(m_profile); }
+
+ //---------------------------------------------------------------------
+ int subpixel_width() const { return m_profile->subpixel_width(); }
More information about the arch-commits
mailing list