Source: tgt
Version: 1:1.0.74-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap
Control: block -1 by 919666

tgt fails to cross build from source, because it does not pass any cross
tools to make. Using dh_auto_build fixes that. Then, it fails finding
glusterfs libraries, because glusterfs-common is Multi-Arch: foreign and
thus it only provides the build architecture libraries. The proper
dependency (as Patrick reported in #919666) is on libglusterfs-dev now.
After doing both, tgt cross builds successfully.  Please consider
applying the attached patch.

Helmut
diff --minimal -Nru tgt-1.0.74/debian/changelog tgt-1.0.74/debian/changelog
--- tgt-1.0.74/debian/changelog 2018-12-08 21:30:32.000000000 +0100
+++ tgt-1.0.74/debian/changelog 2019-01-19 14:33:37.000000000 +0100
@@ -1,3 +1,12 @@
+tgt (1:1.0.74-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross tools to make.
+    + Update Build-Depends to use libglusterfs-dev.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 19 Jan 2019 14:33:37 +0100
+
 tgt (1:1.0.74-1) unstable; urgency=medium
 
   [ Ondřej Nový ]
diff --minimal -Nru tgt-1.0.74/debian/control tgt-1.0.74/debian/control
--- tgt-1.0.74/debian/control   2018-12-08 21:29:32.000000000 +0100
+++ tgt-1.0.74/debian/control   2019-01-19 14:33:37.000000000 +0100
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Apollon Oikonomopoulos <apoi...@debian.org>
 Build-Depends: debhelper (>= 11~), libibverbs-dev, librdmacm-dev (>= 1.0.16),
-              xsltproc, docbook-xsl, librbd-dev, glusterfs-common,
+              xsltproc, docbook-xsl, librbd-dev, libglusterfs-dev,
                bash-completion, libsystemd-dev, libaio-dev
 Vcs-Git: https://salsa.debian.org/debian/tgt.git
 Vcs-Browser: https://salsa.debian.org/debian/tgt
diff --minimal -Nru tgt-1.0.74/debian/rules tgt-1.0.74/debian/rules
--- tgt-1.0.74/debian/rules     2018-03-05 23:13:32.000000000 +0100
+++ tgt-1.0.74/debian/rules     2019-01-19 14:33:36.000000000 +0100
@@ -9,7 +9,7 @@
        dh $@ --with bash-completion
 
 override_dh_auto_build:
-       $(MAKE) $(FEATURES)
+       dh_auto_build -- $(FEATURES)
 
 override_dh_auto_install:
        $(MAKE) $(FEATURES) DESTDIR=$(CURDIR)/debian/tgt install

Reply via email to