summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-09-08 00:13:31 +0000
committerjoerg <joerg@pkgsrc.org>2011-09-08 00:13:31 +0000
commitd2f33df15a4238cccc841cd9b61124e559213ac4 (patch)
treec046787bd5954998fc2db2da010ca32714d5e48f
parent6d007e6aae47c896a1126d4b98fed48d8e12d2e6 (diff)
downloadpkgsrc-d2f33df15a4238cccc841cd9b61124e559213ac4.tar.gz
Fix compilation with clang by removing const-violating accessor.
-rw-r--r--graphics/py-matplotlib/distinfo3
-rw-r--r--graphics/py-matplotlib/patches/patch-agg24-include-agg_renderer_outline_aa.h14
2 files changed, 16 insertions, 1 deletions
diff --git a/graphics/py-matplotlib/distinfo b/graphics/py-matplotlib/distinfo
index 545520c694a..28a3c7a3cc7 100644
--- a/graphics/py-matplotlib/distinfo
+++ b/graphics/py-matplotlib/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.13 2011/02/17 10:33:37 markd Exp $
+$NetBSD: distinfo,v 1.14 2011/09/08 00:13:31 joerg Exp $
SHA1 (matplotlib-1.0.1.tar.gz) = c7a832f28a66817626e7a8af21e14ea0e15f4008
RMD160 (matplotlib-1.0.1.tar.gz) = e3e326f7f31ef995253da483444cb593b8e6753b
Size (matplotlib-1.0.1.tar.gz) = 13285166 bytes
SHA1 (patch-aa) = 9e43860c70b8632aa96be68a95f34720ce0ee34a
SHA1 (patch-ab) = 2c85ef7b1aa9b9a317dd4fbfc7a69921d2241c2f
+SHA1 (patch-agg24-include-agg_renderer_outline_aa.h) = fc7de9efc4563e75634947eac3c3a5a69441f2ce
diff --git a/graphics/py-matplotlib/patches/patch-agg24-include-agg_renderer_outline_aa.h b/graphics/py-matplotlib/patches/patch-agg24-include-agg_renderer_outline_aa.h
new file mode 100644
index 00000000000..23835f9fa2a
--- /dev/null
+++ b/graphics/py-matplotlib/patches/patch-agg24-include-agg_renderer_outline_aa.h
@@ -0,0 +1,14 @@
+$NetBSD: patch-agg24-include-agg_renderer_outline_aa.h,v 1.1 2011/09/08 00:13:31 joerg Exp $
+
+Don't leak non-const reference to const private member.
+
+--- agg24/include/agg_renderer_outline_aa.h.orig 2011-09-07 14:29:12.000000000 +0000
++++ agg24/include/agg_renderer_outline_aa.h
+@@ -1365,7 +1365,6 @@ namespace agg
+ //---------------------------------------------------------------------
+ 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; }
+
+ //---------------------------------------------------------------------
+ int subpixel_width() const { return m_profile->subpixel_width(); }