Source: gnome-shell-mailnag
Version: 3.28.0-0.1
Tags: patch
User: [email protected]
Usertags: ftcbfs
Control: block -1 by 948128

gnome-shell-mailnag fails to cross build from source, because its
Makefile stores valac in CC. dh_auto_build supplies a c compiler there
and that fails. Passing the right vala compiler fixes this part.
However, the cross build then fails due to #948128. Please consider
applying the attached patch.

Helmut
diff --minimal -Nru gnome-shell-mailnag-3.28.0/debian/changelog 
gnome-shell-mailnag-3.28.0/debian/changelog
--- gnome-shell-mailnag-3.28.0/debian/changelog 2018-11-03 22:18:05.000000000 
+0100
+++ gnome-shell-mailnag-3.28.0/debian/changelog 2020-01-04 12:15:54.000000000 
+0100
@@ -1,3 +1,10 @@
+gnome-shell-mailnag (3.28.0-0.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass valac as CC. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sat, 04 Jan 2020 12:15:54 +0100
+
 gnome-shell-mailnag (3.28.0-0.1) unstable; urgency=medium
 
   * Non-maintainer upload
diff --minimal -Nru gnome-shell-mailnag-3.28.0/debian/rules 
gnome-shell-mailnag-3.28.0/debian/rules
--- gnome-shell-mailnag-3.28.0/debian/rules     2018-11-03 22:18:05.000000000 
+0100
+++ gnome-shell-mailnag-3.28.0/debian/rules     2020-01-04 12:15:54.000000000 
+0100
@@ -1,7 +1,18 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
+
+ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+VALAC ?= valac
+else
+VALAC ?= $(DEB_HOST_GNU_TYPE)-valac
+endif
+
 %:
        dh $@ 
 
+override_dh_auto_build:
+       dh_auto_build -- CC=$(VALAC)
+
 override_dh_auto_install:
        $(MAKE) install prefix="$(CURDIR)/debian/gnome-shell-mailnag/usr"

Reply via email to