[DRE-maint] Bug#751969: gir1.2-goocanvas-2.0: Introspection file installed in the wrong directory
Alberto Garcia
berto at igalia.com
Mon Jul 7 14:59:58 UTC 2014
Here's the debdiff, there's still room for improvement in the package
but this fixes the really important problems.
Berto
-------------- next part --------------
diff -Nru goocanvas-2.0.2/debian/changelog goocanvas-2.0.2/debian/changelog
--- goocanvas-2.0.2/debian/changelog 2014-02-28 17:04:57.000000000 +0200
+++ goocanvas-2.0.2/debian/changelog 2014-07-07 17:53:25.000000000 +0300
@@ -1,3 +1,22 @@
+goocanvas (2.0.2-1.1) experimental; urgency=medium
+
+ * Non-maintainer upload.
+ * debian/patches/fix-g-i-path.patch:
+ - Install .typelib files in its proper directory (Closes: #751969).
+ * debian/gir1.2-goocanvas-2.0.install:
+ - Update path for .typelib files.
+ * debian/libgoocanvas-2.0-dev.install
+ - Install .gir file.
+ * debian/rules:
+ - Build with autoreconf.
+ - Run dh_girepository after dh_shlibdeps.
+ - Enable parallel builds.
+ * debian/control:
+ - Add build dependencies on dh-autoreconf and gobject-introspection.
+ - Delete trailing whitespaces from the description.
+
+ -- Alberto Garcia <berto at igalia.com> Mon, 07 Jul 2014 17:31:33 +0300
+
goocanvas (2.0.2-1) experimental; urgency=medium
* New upstream release (Closes: #588177)
diff -Nru goocanvas-2.0.2/debian/control goocanvas-2.0.2/debian/control
--- goocanvas-2.0.2/debian/control 2014-02-28 17:04:15.000000000 +0200
+++ goocanvas-2.0.2/debian/control 2014-07-07 17:30:24.000000000 +0300
@@ -3,9 +3,9 @@
Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
Uploaders: Jose Carlos Garcia Sogo <jsogo at debian.org>,
Hideki Yamane <henrich at debian.org>
-Build-Depends: debhelper (>= 9), libglib2.0-dev (>= 2.28),
+Build-Depends: debhelper (>= 9), libglib2.0-dev (>= 2.28), dh-autoreconf,
autotools-dev, gtk-doc-tools, libgtk-3-dev, libcairo2-dev (>= 1.10),
- libgirepository1.0-dev
+ libgirepository1.0-dev, gobject-introspection
Standards-Version: 3.9.5
Section: libs
Vcs-Git: git://anonscm.debian.org/collabmaint/goocanvas.git
@@ -18,11 +18,11 @@
Multi-Arch: same
Depends: libgoocanvas-2.0-9 (= ${binary:Version}), ${misc:Depends}, libgtk-3-dev
Description: development libraries, include files and documentation for goocanvas
- GooCanvas is a canvas widget for GTK+ that uses the cairo 2D library for
- drawing. It has a model/view split, and uses interfaces for canvas items and
+ GooCanvas is a canvas widget for GTK+ that uses the cairo 2D library for
+ drawing. It has a model/view split, and uses interfaces for canvas items and
views, so you can easily turn any application object into canvas items.
.
- This package contains the development libraries, include files
+ This package contains the development libraries, include files
and documentation
Package: libgoocanvas-2.0-common
@@ -30,8 +30,8 @@
Multi-Arch: foreign
Depends: ${misc:Depends}
Description: translations for goocanvas
- GooCanvas is a canvas widget for GTK+ that uses the cairo 2D library for
- drawing. It has a model/view split, and uses interfaces for canvas items and
+ GooCanvas is a canvas widget for GTK+ that uses the cairo 2D library for
+ drawing. It has a model/view split, and uses interfaces for canvas items and
views, so you can easily turn any application object into canvas items.
.
This package contains the translations
@@ -42,8 +42,8 @@
Multi-Arch: same
Depends: ${shlibs:Depends}, ${misc:Depends}, libgoocanvas-2.0-common (= ${source:Version})
Description: canvas widget for GTK+ that uses the cairo 2D library
- GooCanvas is a canvas widget for GTK+ that uses the cairo 2D library for
- drawing. It has a model/view split, and uses interfaces for canvas items and
+ GooCanvas is a canvas widget for GTK+ that uses the cairo 2D library for
+ drawing. It has a model/view split, and uses interfaces for canvas items and
views, so you can easily turn any application object into canvas items.
.
This package contains the shared library
@@ -63,4 +63,3 @@
.
It can be used by packages using the GIRepository format to generate
dynamic bindings.
-
diff -Nru goocanvas-2.0.2/debian/gir1.2-goocanvas-2.0.install goocanvas-2.0.2/debian/gir1.2-goocanvas-2.0.install
--- goocanvas-2.0.2/debian/gir1.2-goocanvas-2.0.install 2014-02-02 05:36:21.000000000 +0200
+++ goocanvas-2.0.2/debian/gir1.2-goocanvas-2.0.install 2014-07-07 17:34:01.000000000 +0300
@@ -1 +1 @@
-usr/lib/*/girepository-*/GooCanvas-*.typelib
+usr/lib/girepository-*/GooCanvas-*.typelib
diff -Nru goocanvas-2.0.2/debian/libgoocanvas-2.0-dev.install goocanvas-2.0.2/debian/libgoocanvas-2.0-dev.install
--- goocanvas-2.0.2/debian/libgoocanvas-2.0-dev.install 2014-02-02 05:36:26.000000000 +0200
+++ goocanvas-2.0.2/debian/libgoocanvas-2.0-dev.install 2014-07-07 17:52:57.000000000 +0300
@@ -2,3 +2,4 @@
usr/lib/*/libgoocanvas-2.0.so
usr/lib/*/pkgconfig
usr/include
+usr/share/gir-1.0
diff -Nru goocanvas-2.0.2/debian/patches/fix-g-i-path.patch goocanvas-2.0.2/debian/patches/fix-g-i-path.patch
--- goocanvas-2.0.2/debian/patches/fix-g-i-path.patch 1970-01-01 02:00:00.000000000 +0200
+++ goocanvas-2.0.2/debian/patches/fix-g-i-path.patch 2014-07-07 17:27:13.000000000 +0300
@@ -0,0 +1,39 @@
+From: Alberto Garcia <berto at igalia.com>
+Subject: Fix installation path of gobject-introspection files
+Bug: https://bugzilla.gnome.org/show_bug.cgi?id=731839
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751969
+Index: goocanvas-2.0.2/configure.in
+===================================================================
+--- goocanvas-2.0.2.orig/configure.in
++++ goocanvas-2.0.2/configure.in
+@@ -50,6 +50,13 @@ GLIB_MKENUMS=`$PKG_CONFIG --variable=gli
+ AC_SUBST(GLIB_MKENUMS)
+
+ GOBJECT_INTROSPECTION_CHECK([0.6.7])
++if test "x$found_introspection" = "xyes"; then
++ INTROSPECTION_GIRDIR=`$PKG_CONFIG --define-variable=prefix='${prefix}' --variable=girdir gobject-introspection-1.0`
++ AC_SUBST(INTROSPECTION_GIRDIR)
++
++ INTROSPECTION_TYPELIBDIR=`$PKG_CONFIG --define-variable=prefix='${prefix}' --variable=typelibdir gobject-introspection-1.0`
++ AC_SUBST(INTROSPECTION_TYPELIBDIR)
++fi
+
+ AC_ARG_ENABLE(rebuilds,
+ [AC_HELP_STRING([--disable-rebuilds],
+Index: goocanvas-2.0.2/src/Makefile.am
+===================================================================
+--- goocanvas-2.0.2.orig/src/Makefile.am
++++ goocanvas-2.0.2/src/Makefile.am
+@@ -162,10 +162,10 @@ GooCanvas_2_0_gir_LIBS = goocanvas-2.0
+ GooCanvas_2_0_gir_FILES = $(introspection_sources)
+ INTROSPECTION_GIRS += GooCanvas-2.0.gir
+
+-girdir = $(datadir)/gir-1.0
++girdir = @INTROSPECTION_GIRDIR@
+ gir_DATA = $(INTROSPECTION_GIRS)
+
+-typelibdir = $(libdir)/girepository-1.0
++typelibdir = @INTROSPECTION_TYPELIBDIR@
+ typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+
+ CLEANFILES += $(gir_DATA) $(typelib_DATA)
diff -Nru goocanvas-2.0.2/debian/patches/series goocanvas-2.0.2/debian/patches/series
--- goocanvas-2.0.2/debian/patches/series 1970-01-01 02:00:00.000000000 +0200
+++ goocanvas-2.0.2/debian/patches/series 2014-07-07 17:25:53.000000000 +0300
@@ -0,0 +1 @@
+fix-g-i-path.patch
diff -Nru goocanvas-2.0.2/debian/rules goocanvas-2.0.2/debian/rules
--- goocanvas-2.0.2/debian/rules 2014-01-10 16:09:44.000000000 +0200
+++ goocanvas-2.0.2/debian/rules 2014-07-07 17:35:18.000000000 +0300
@@ -1,4 +1,8 @@
#!/usr/bin/make -f
%:
- dh $@ --with autotools-dev
+ dh $@ --with autoreconf --parallel
+
+override_dh_shlibdeps:
+ dh_shlibdeps
+ dh_girepository
More information about the Pkg-ruby-extras-maintainers
mailing list