Re: [gnome-db] libgda-5.0 - GI improvements and auto Vala generation



Its my fault. Sorry.

In order to build correctly you need to apply the following patch to Gda-5.0.metadata (I missed to port modifications from 4.2.x branch).

Please apply to master.

At this point:

Can I get write access to repository? I plan to create a branch to develop some modules in Vala before to request to be merged to master.

And VERY IMPORTANT:

Master has reached 4.99.x, seems to be lasts steps to 5.0 release, at this point new features must be freeze I think, Why to add new API like GdaDataPivot? Why don't create a branch for 4.99.x to fix bugs before 5.0 and continue on master for upcoming 5.2 release?

2011/9/29 Murray Cumming <murrayc murrayc com>
On Sat, 2011-09-24 at 10:05 +0200, Vivien Malerba wrote:
> I used 0.12 to test the build environment as it's the version I have,
> so I left it at 0.12 as it worked. I've now changed it back to 0.14,
> see latest master commit.

I have no idea why, but the libgda git master build is currently broken
unless you use --disable-introspection, with either vala 0.14 or vala
from git master.

Here are the last few error messages:


** (vapigen-0.14:9434): CRITICAL **:
vala_code_node_get_attribute_string: assertion `self != NULL' failed

** (vapigen-0.14:9434): CRITICAL **:
vala_code_node_get_attribute_string: assertion `self != NULL' failed

** (vapigen-0.14:9434): CRITICAL **: vala_gir_parser_is_container:
assertion `sym != NULL' failed

** (vapigen-0.14:9434): CRITICAL **: vala_gir_parser_is_container:
assertion `sym != NULL' failed

** (vapigen-0.14:9434): CRITICAL **:
vala_gir_parser_add_symbol_to_container: assertion `sym != NULL' failed
Gda-5.0.gir:6915.65-6915.65: error: The type name `Xml.NodePtr' could
not be found
           <type name="libxml2.NodePtr" c:type="xmlNodePtr"/>
                                                               ^
Gda-5.0.gir:12853.65-12853.65: error: The type name `Xml.NodePtr' could
not be found
           <type name="libxml2.NodePtr" c:type="xmlNodePtr"/>
                                                               ^
Gda-5.0.gir:16518.65-16518.65: error: The type name `Xml.NodePtr' could
not be found
           <type name="libxml2.NodePtr" c:type="xmlNodePtr"/>
                                                               ^
Gda-5.0.gir:4874.65-4874.65: error: The type name `Xml.NodePtr' could
not be found
           <type name="libxml2.NodePtr" c:type="xmlNodePtr"/>
                                                               ^
Gda-5.0.gir:23114.63-23114.63: error: The type name `Xml.NodePtr' could
not be found
         <type name="libxml2.NodePtr" c:type="xmlNodePtr"/>
                                                             ^
Gda-5.0.gir:23175.63-23175.63: error: The type name `Xml.NodePtr' could
not be found
         <type name="libxml2.NodePtr" c:type="xmlNodePtr"/>
                                                             ^
Gda-5.0.gir:23525.63-23525.63: error: The type name `Xml.NodePtr' could
not be found
         <type name="libxml2.NodePtr" c:type="xmlNodePtr"/>
                                                             ^



--
murrayc murrayc com
www.murrayc.com
www.openismus.com


From e7e5dbf5f589713e821aa9f9c16e20a81b5e91fb Mon Sep 17 00:00:00 2001
From: Daniel Espinosa <esodan gmail com>
Date: Thu, 29 Sep 2011 12:58:47 -0500
Subject: [PATCH] Patch Gda-5.0.metadata to generate Vala bindings correctly.

---
 libgda/Gda-5.0.metadata |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/libgda/Gda-5.0.metadata b/libgda/Gda-5.0.metadata
index 6de09e8..6502e38 100644
--- a/libgda/Gda-5.0.metadata
+++ b/libgda/Gda-5.0.metadata
@@ -1,2 +1,30 @@
 // Vala Bindings for GDA
 Gda cheader_filename="libgda/libgda.h"
+ValueList type="GLib.List<GLib.Value>"
+ServerProviderMeta skip
+ServerProviderXa skip
+// libxml2: replace xml.NodePtr by xml.Node* used by Vala bindings
+Set.new_from_spec_node.xml_spec type="Xml.Node*"
+DataModel.add_data_from_xml_node.node type="Xml.Node*"
+utility_data_model_dump_data_to_xml.parent type="Xml.Node*"
+utility_holder_load_attributes.node type="Xml.Node*"
+value_new_from_xml.node type="Xml.Node*"
+DataModelImport.new_xml_node.node type="Xml.Node*"
+ServerOperation.load_data_from_xml.node type="Xml.Node*"
+// type overrides for GIR not well detected
+MetaStore.meta_changed.changes type="GLib.SList<Gda.MetaStoreChange>"
+MetaStore.meta_changed.changes out=true
+PStmt.param_ids type="GLib.List<string>"
+PStmt.tmpl_columns type="GLib.List<Gda.Column>"
+ServerProvider.statement_to_sql.params_used type="GLib.List<Gda.Holder>"
+Set.groups_list type="GLib.List<Gda.SetGroup>"
+Set.nodes_list type="GLib.List<Gda.SetNode>"
+Set.sources_list type="GLib.List<Gda.SetSource>"
+TransactionStatus.events type="GLib.List<Gda.TransactionStatusEvent>"
+MetaDbObject.depend_list type="GLib.List<Gda.MetaDbObject>"
+MetaTable.columns type="GLib.List<Gda.MetaTableColumn>"
+MetaTable.reverse_fk_list type="GLib.List<Gda.MetaTableForeignKey>"
+MetaTable.fk_list type="GLib.List<Gda.MetaTableForeignKey>"
+SetGroup.nodes type="GLib.List<Gda.SetNode>"
+SetSource.nodes type="GLib.List<Gda.SetNode>"
+SqlRenderingContext.params_used type="GLib.List<Gda.Holder>"
-- 
1.7.6.2



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]