From c54902ccf18a8e1027054a7b2a82858aff7cd33a Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Jul 14 2009 19:22:09 +0000 Subject: Modify patch to affect the pregenerated C file, not the original Vala source, as during build Vala is not installed yet --- diff --git a/vala-0.7.4-moduleinit.patch b/vala-0.7.4-moduleinit.patch index 7ff8f16..ddd903e 100644 --- a/vala-0.7.4-moduleinit.patch +++ b/vala-0.7.4-moduleinit.patch @@ -1,11 +1,11 @@ ---- vala-0.7.4/codegen/valatyperegisterfunction.vala.moduleinit 2009-05-09 13:22:22.000000000 -0400 -+++ vala-0.7.4/codegen/valatyperegisterfunction.vala 2009-07-14 03:34:59.236422291 -0400 -@@ -62,7 +62,7 @@ - if (!plugin) { - type_block.add_statement (cdecl); - } else { -- definition_fragment.append (cdecl); -+ declaration_fragment.append (cdecl); - } - - CCodeFunction fun; +--- vala-0.7.4/codegen/valatyperegisterfunction.c.moduleinit 2009-06-14 12:53:17.000000000 -0400 ++++ vala-0.7.4/codegen/valatyperegisterfunction.c 2009-07-14 15:16:16.546338051 -0400 +@@ -238,7 +238,7 @@ + if (!plugin) { + vala_ccode_block_add_statement (type_block, (ValaCCodeNode*) _cdecl_); + } else { +- vala_ccode_fragment_append (self->priv->definition_fragment, (ValaCCodeNode*) _cdecl_); ++ vala_ccode_fragment_append (self->priv->declaration_fragment, (ValaCCodeNode*) _cdecl_); + } + fun = NULL; + if (!plugin) {