summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2013-11-22 15:43:05 +0000
committerdholland <dholland@pkgsrc.org>2013-11-22 15:43:05 +0000
commit6bd5cecccd4a8130282f4891c62c6d6e6a203ebb (patch)
tree561d4029bcc36f5b775b0edc86cfd2b5f190d78a
parent0f9a15808f141bde12ee4a28f8671a7fce3a11ce (diff)
downloadpkgsrc-6bd5cecccd4a8130282f4891c62c6d6e6a203ebb.tar.gz
Fix broken build with gcc 4.5.
-rw-r--r--converters/pyzy/distinfo3
-rw-r--r--converters/pyzy/patches/patch-src_Database.h15
2 files changed, 17 insertions, 1 deletions
diff --git a/converters/pyzy/distinfo b/converters/pyzy/distinfo
index 59b6d81024d..a530eb558de 100644
--- a/converters/pyzy/distinfo
+++ b/converters/pyzy/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2013/10/23 11:41:25 obache Exp $
+$NetBSD: distinfo,v 1.2 2013/11/22 15:43:05 dholland Exp $
SHA1 (pyzy-0.1.0.tar.gz) = ffe67a455a537c8ed8a0d138eb014945cd982927
RMD160 (pyzy-0.1.0.tar.gz) = 26cf64a977b030456bd74cca40fc9c9f476f7b7d
@@ -6,3 +6,4 @@ Size (pyzy-0.1.0.tar.gz) = 1571946 bytes
SHA1 (pyzy-database-1.0.0.tar.bz2) = e38a148a772e9909facda66b2d579e17b94cccbe
RMD160 (pyzy-database-1.0.0.tar.bz2) = 1679567f31c20a235577f02175df38e16a05e7de
Size (pyzy-database-1.0.0.tar.bz2) = 9977983 bytes
+SHA1 (patch-src_Database.h) = a35156bb6f7804ab2f7fcdd3c1d2fbaa39115b3b
diff --git a/converters/pyzy/patches/patch-src_Database.h b/converters/pyzy/patches/patch-src_Database.h
new file mode 100644
index 00000000000..186aadb1c2a
--- /dev/null
+++ b/converters/pyzy/patches/patch-src_Database.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_Database.h,v 1.1 2013/11/22 15:43:05 dholland Exp $
+
+Work around C++ build error with gcc 4.5.
+
+--- src/Database.h.orig 2012-07-13 02:46:33.000000000 +0000
++++ src/Database.h
+@@ -79,7 +79,7 @@ public:
+ static void finalize (void);
+ static Database & instance (void)
+ {
+- if (m_instance == NULL) {
++ if (!m_instance) {
+ g_error ("Error: Please call InputContext::init () !");
+ }
+ return *m_instance;