pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/dino dino: Fix build with latest vala.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/01535d51470c
branches:  trunk
changeset: 451768:01535d51470c
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat May 01 08:53:59 2021 +0000

description:
dino: Fix build with latest vala.

diffstat:

 chat/dino/distinfo                            |   3 +-
 chat/dino/patches/patch-qlite_src_column.vala |  34 +++++++++++++++++++++++++++
 2 files changed, 36 insertions(+), 1 deletions(-)

diffs (51 lines):

diff -r 348cc3364503 -r 01535d51470c chat/dino/distinfo
--- a/chat/dino/distinfo        Sat May 01 08:19:52 2021 +0000
+++ b/chat/dino/distinfo        Sat May 01 08:53:59 2021 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2020/11/13 09:41:46 nia Exp $
+$NetBSD: distinfo,v 1.3 2021/05/01 08:53:59 nia Exp $
 
 SHA1 (dino-0.2.0.tar.gz) = bc1f48d0d6f75011386ca4941f6bffc40960b45f
 RMD160 (dino-0.2.0.tar.gz) = babe1f651a394f756aee57df77a6e7bd5744c139
 SHA512 (dino-0.2.0.tar.gz) = 296576f91d45a4dd8c548a7ca5b47bcaf847f6ff0f8e5dbafaa4eb49a2d4f1ed7e2bbfac94f1b32e22f5ec61b23748ac76b12bb4ceb710889aff166953ca7a2e
 Size (dino-0.2.0.tar.gz) = 514257 bytes
 SHA1 (patch-main_CMakeLists.txt) = 8e6ddf182ba3b60d14d41b6dd902d473ae3b9ffe
+SHA1 (patch-qlite_src_column.vala) = 08061045f082c6ce2a21845c9bfd2f89bee3b02b
diff -r 348cc3364503 -r 01535d51470c chat/dino/patches/patch-qlite_src_column.vala
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/dino/patches/patch-qlite_src_column.vala     Sat May 01 08:53:59 2021 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-qlite_src_column.vala,v 1.1 2021/05/01 08:53:59 nia Exp $
+
+[PATCH] QLite: Adjust Real for latest vala version
+https://github.com/dino/dino/commit/9acb54df9254609f2fe4de83c9047d408412de28.patch
+
+--- qlite/src/column.vala.orig 2020-11-12 18:00:00.000000000 +0000
++++ qlite/src/column.vala
+@@ -96,12 +96,14 @@ public abstract class Column<T> {
+         }
+     }
+ 
+-    public class Real : Column<double> {
+-        public Real(string name) {
++    public class NullableReal : Column<double?> {
++        public NullableReal(string name) {
+             base(name, FLOAT);
+         }
+ 
+-        public override double get(Row row, string? table_name = DEFALT_TABLE_NAME) {
++        public override bool not_null { get { return false; } set {} }
++
++        public override double? get(Row row, string? table_name = DEFALT_TABLE_NAME) {
+             return row.get_real(name, table_name == DEFALT_TABLE_NAME ? table.name : table_name);
+         }
+ 
+@@ -109,7 +111,7 @@ public abstract class Column<T> {
+             return !row.has_real(name, table_name == DEFALT_TABLE_NAME ? table.name : table_name);
+         }
+ 
+-        internal override void bind(Statement stmt, int index, double value) {
++        internal override void bind(Statement stmt, int index, double? value) {
+             stmt.bind_double(index, value);
+         }
+     }



Home | Main Index | Thread Index | Old Index