Source: libverto
Version: 0.2.4-2.1
Severity: wishlist
X-Debbugs-CC: debian-ri...@lists.debian.org
Tags: patch
User: debian-ri...@lists.debian.org
Usertags: riscv64

Hello,

we are in the process of bootstrapping a Debian port for the
riscv64 architecture (https://wiki.debian.org/RISC-V). The
binary packages libverto-dev and libverto-libev1 are part of the
build-dependency chain for the essential package set, so we need
to cross-build them for riscv64 to be able to complete the
bootstrap process.  Unfortunately it is currently impossible to
cross-build libverto as-is due to the following situation:

The package curently has a "hard" build-dependency on
libglib2.0-dev, which is only needed for building libverto-glib1,
but not for the other binary packages built from the libverto
source package.  For cross-building libverto-glib1, one would
need to install libglib2.0-dev for the host architecture, but
that isn't possible due to components of glib2.0 pulled in by
that not being multiarch-coinstallable with their build-arch
equivalents and debhelper transitively depending on the same
components for the build-arch.

The solution for this issue is adding a pkg.libverto.noglib
build-profile to the package, which disables building the
libverto-glib1 binary package and the corresponding
build-dependency when set. Attached is a patch implementing
that.

It would be great if you could upload a new version of libverto
with the patch applied to unstable soon as we depend on this
for completing our bootstrapping efforts.

Regards,
Karsten
-- 
Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
Werbung sowie der Markt- oder Meinungsforschung.
diff -Nur libverto-0.2.4/debian/control libverto-0.2.4.patched/debian/control
--- libverto-0.2.4/debian/control	2015-10-29 13:00:37.000000000 +0000
+++ libverto-0.2.4.patched/debian/control	2018-03-11 08:09:28.721190904 +0000
@@ -1,7 +1,7 @@
 Source: libverto
 Priority: optional
 Maintainer: Sam Hartman <hartm...@debian.org>
-Build-Depends: debhelper (>= 9), libev-dev, libglib2.0-dev, dh-autoreconf
+Build-Depends: debhelper (>= 9), libev-dev, libglib2.0-dev <!pkg.libverto.noglib>, dh-autoreconf
 Build-Conflicts: libevent-dev, libtevent-dev
 Standards-Version: 3.9.4
 Section: libs
@@ -58,6 +58,7 @@
 PRe-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Multi-Arch: same
+Build-Profiles: <!pkg.libverto.noglib>
 Description: Event loop abstraction for Libraries - glib
  Libverto exists to isolate libraries from the particular event loop
  chosen by an application. Libverto provides an asynchronous
diff -Nur libverto-0.2.4/debian/rules libverto-0.2.4.patched/debian/rules
--- libverto-0.2.4/debian/rules	2015-10-29 12:14:17.000000000 +0000
+++ libverto-0.2.4.patched/debian/rules	2018-03-11 08:09:56.128680957 +0000
@@ -9,9 +9,13 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+ifeq (,$(filter libverto-glib1, $(shell dh_listpackages)))
+	CONFOPTS += --without-glib
+endif
+
 %:
 	dh $@ --with autoreconf
 
 override_dh_auto_configure:
 	chmod a+x configure
-	dh_auto_configure -- --libdir=/usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+	dh_auto_configure -- $(CONFOPTS) --libdir=/usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

Reply via email to