GNOME Bugzilla – Bug 653245
Don't ship pre-generated .gir files in dist tarball
Last modified: 2011-10-19 14:20:46 UTC
The 1.28.4 release ships pre-generated .gir files in the dist tarball: ls pango/*.gir pango/Pango-1.0.gir pango/PangoCairo-1.0.gir pango/PangoFT2-1.0.gir pango/PangoXft-1.0.gir This causes problems if you build with builddir != srcdir, as the the .gir files from srcdir are used on "make install", and those files are possibliy outdated. E.g. in Debian we use repository format 1.2, whereas the pre-generated .gir files use 1.1. Please don't distribute the .gir files in the dist tarball. [1] http://ftp.gnome.org/pub/GNOME/sources/pango/1.28/pango-1.28.4.tar.gz
(In reply to comment #0) > > E.g. in Debian we use repository format 1.2, whereas the pre-generated .gir > files use 1.1. This is the error message when I try to build pango 1.28.4 on Debian with srcdir!=builddir: make[4]: Entering directory `/home/michael/debian/build-area/pango-1.28.4/build/pango' /usr/bin/g-ir-scanner --add-include-path=../../pango --add-include-path=. --namespace=PangoXft --nsversion=1.0 --libtool="/bin/bash ../libtool" --pkg=gobject-2.0 --pkg=freetype2 --include=GObject-2.0 --include=xft-2.0 --include=xlib-2.0 --library=libpangoxft-1.0.la --include-uninstalled=./PangoFT2-1.0.gir -I../.. ../../pango/pangoxft.h ../../pango/pangoxft-render.h ../../pango/pangoxft-font.c ../../pango/pangoxft-fontmap.c ../../pango/pangoxft-render.c libpangoxft-1.0.la PangoFT2-1.0.gir --output PangoXft-1.0.gir /home/michael/debian/build-area/pango-1.28.4/pango/Pango-1.0.gir: Incompatible version 1.1 (supported: 1.2) make[4]: *** [../../pango/PangoXft-1.0.gir] Error 1 make[4]: Leaving directory `/home/michael/debian/build-area/pango-1.28.4/build/pango' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/michael/debian/build-area/pango-1.28.4/build/pango' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/michael/debian/build-area/pango-1.28.4/build/pango' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/michael/debian/build-area/pango-1.28.4/build' make: *** [all] Error 2
The current 1.29.4 tarball does not ship the pregenerated .gir any more, so apparently this was fixed a while ago.