From 997213db8c2047fb851c0c8757b2ad02bc4c697b Mon Sep 17 00:00:00 2001 From: dholland Date: Fri, 22 Nov 2013 15:43:05 +0000 Subject: Fix broken build with gcc 4.5. --- converters/pyzy/distinfo | 3 ++- converters/pyzy/patches/patch-src_Database.h | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 converters/pyzy/patches/patch-src_Database.h 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; -- cgit v1.2.3