[gcr] build: Fix GIR namespace version



commit c3255507267c162de5b8d14e92555842fe3eccaa
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Thu Oct 8 10:51:11 2015 +0100

    build: Fix GIR namespace version
    
    Unless --nsversion is passed to g-ir-scanner, it will extract the
    namespace version for a GIR file from the filename. Unfortunately, for
    the Gcr-3.broken.gir file, this means it extracts ‘3.broken’. This is
    incorrect, and doesn’t match the version in the typelib (which is the
    correct ‘3’).
    
    Having mismatched versions can cause problems when loading the GIR
    files, as libgirepository complains that they don’t match the typelib.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756235

 gcr/Makefile.am |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gcr/Makefile.am b/gcr/Makefile.am
index 59f32b7..9ea1b29 100644
--- a/gcr/Makefile.am
+++ b/gcr/Makefile.am
@@ -214,7 +214,8 @@ Gcr_ GCR_MAJOR@_broken_gir_SCANNERFLAGS = \
        --add-include-path=$(top_builddir)/gck \
        --include-uninstalled=$(builddir)/Gck- GCK_MAJOR@.gir \
        --c-include "gcr/gcr-base.h" \
-       --identifier-prefix Gcr
+       --identifier-prefix Gcr \
+       --nsversion @GCR_MAJOR@
 
 gir_DATA += Gcr- GCR_MAJOR@.gir
 


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