Hello!

I assume the build failure is caused by the parallel build.
Attached is my (untested) attempt at trying to fix it,
by adding a Makefile target dependency on the vapi to make sure
libvirt-gconfig-1.0.vapi is not built in parallel with
libvirt-gobject-1.0.vapi since apparently the latter needs
the former when building.

Regards,
Andreas Henriksson
diff -uriNp libvirt-glib-0.1.7/debian/changelog ../libvirt-glib-0.1.7/debian/changelog
--- a/libvirt-glib-0.1.7/debian/changelog	2014-02-16 17:53:33.000000000 +0100
+++ b/libvirt-glib-0.1.7/debian/changelog	2014-03-30 16:05:42.571474598 +0200
@@ -1,3 +1,14 @@
+libvirt-glib (0.1.7-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add debian/patches/parallel-build-fix.patch
+    - fix target dependency in vapi/Makefile.am to work with
+      parallell build.
+  * Add dh-autoreconf build-dependency and use it in debian/rules
+  * Add gtk-doc-tools build-dependency to be able to autoreconf
+
+ -- Andreas Henriksson <andr...@fatal.se>  Sun, 30 Mar 2014 10:48:56 +0200
+
 libvirt-glib (0.1.7-2) unstable; urgency=medium
 
   * Upload to unstable (Closes: #726582)
diff -uriNp libvirt-glib-0.1.7/debian/control ../libvirt-glib-0.1.7/debian/control
--- a/libvirt-glib-0.1.7/debian/control	2014-02-16 17:53:03.000000000 +0100
+++ b/libvirt-glib-0.1.7/debian/control	2014-03-30 15:58:42.738799617 +0200
@@ -7,6 +7,8 @@ Build-Depends: debhelper (>= 7.0.50~),
  pkg-config,
  libvirt-dev (>= 0.10.2), libglib2.0-dev (>= 2.10),
  libxml2-dev, libgirepository1.0-dev, gobject-introspection,
+# for autoreconf:
+ dh-autoreconf, gtk-doc-tools,
 # when building from git:
   automake, autoconf, libtool,
 # for python bindings:
diff -uriNp libvirt-glib-0.1.7/debian/patches/parallel-build-fix.patch ../libvirt-glib-0.1.7/debian/patches/parallel-build-fix.patch
--- a/libvirt-glib-0.1.7/debian/patches/parallel-build-fix.patch	1970-01-01 01:00:00.000000000 +0100
+++ b/libvirt-glib-0.1.7/debian/patches/parallel-build-fix.patch	2014-03-30 16:07:45.808847178 +0200
@@ -0,0 +1,24 @@
+From: Andreas Henriksson <andr...@fatal.se>
+Subject: fix parallel build
+
+The libvirt-gconfig-1.0.vapi needs to be finished before building the
+libvirt-gobject-1.0.vapi.
+Add an explicit dependency to avoid potential problems when
+running parallel builds, which causes a race condition otherwise.
+
+For build log from a problematic build, see:
+https://buildd.debian.org/status/fetch.php?pkg=libvirt-glib&arch=i386&ver=0.1.7-2&stamp=1392571680
+
+
+
+--- a/vapi/Makefile.am
++++ b/vapi/Makefile.am
+@@ -17,7 +17,7 @@
+ 		--library libvirt-glib-1.0	\
+ 		$<
+ 
+-libvirt-gobject-1.0.vapi: $(top_builddir)/libvirt-gobject/LibvirtGObject-1.0.gir libvirt-glib-1.0.vapi
++libvirt-gobject-1.0.vapi: $(top_builddir)/libvirt-gobject/LibvirtGObject-1.0.gir libvirt-glib-1.0.vapi libvirt-gconfig-1.0.vapi
+ 	$(AM_V_GEN)$(VAPIGEN)							 \
+ 		--vapidir=$(builddir)						 \
+ 		--pkg gobject-2.0						 \
diff -uriNp libvirt-glib-0.1.7/debian/patches/series ../libvirt-glib-0.1.7/debian/patches/series
--- a/libvirt-glib-0.1.7/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ b/libvirt-glib-0.1.7/debian/patches/series	2014-03-30 16:05:34.187381223 +0200
@@ -0,0 +1 @@
+parallel-build-fix.patch
diff -uriNp libvirt-glib-0.1.7/debian/rules ../libvirt-glib-0.1.7/debian/rules
--- a/libvirt-glib-0.1.7/debian/rules	2014-02-16 17:53:03.000000000 +0100
+++ b/libvirt-glib-0.1.7/debian/rules	2014-03-30 10:48:30.301579002 +0200
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 %:
-	dh $@ --parallel
+	dh $@ --parallel --with autoreconf
 
 override_dh_auto_configure:
 	[ -x ./configure ] || ./autogen.sh

Reply via email to