[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#949823: vkd3d FTCBFS: dpkg-depgrep confuses build and host



Source: vkd3d
Version: 1.1-3
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

vkd3d fails to cross build from source, because
debian/scripts/dpkg-depgrep confuses build and host. Please refer to man
dpkg-architecture for a definition of these terms. Please consider
applying the attached patch to make vkd3d cross buildable.

Helmut
diff --minimal -Nru vkd3d-1.1/debian/changelog vkd3d-1.1/debian/changelog
--- vkd3d-1.1/debian/changelog	2019-02-16 03:11:35.000000000 +0100
+++ vkd3d-1.1/debian/changelog	2020-01-25 13:54:28.000000000 +0100
@@ -1,3 +1,10 @@
+vkd3d (1.1-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Fix build/host confusion in dpkg-depgrep. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sat, 25 Jan 2020 13:54:28 +0100
+
 vkd3d (1.1-3) unstable; urgency=medium
 
   [ Jens Reyer ]
diff --minimal -Nru vkd3d-1.1/debian/scripts/dpkg-depgrep vkd3d-1.1/debian/scripts/dpkg-depgrep
--- vkd3d-1.1/debian/scripts/dpkg-depgrep	2019-02-16 03:11:35.000000000 +0100
+++ vkd3d-1.1/debian/scripts/dpkg-depgrep	2020-01-25 13:54:28.000000000 +0100
@@ -17,7 +17,7 @@
 if ($#ARGV < 0) {
     print "usage: $0 <regex to find in the control file's Build-Depends field>\n";
 } else {
-    my $arch = Dpkg::Arch::get_build_arch();
+    my $arch = Dpkg::Arch::get_host_arch();
     my $triplet = Dpkg::Arch::debarch_to_multiarch($arch);
     my $control = Dpkg::Control::Info->new()->get_source();
     my $depends = deps_parse($control->{'Build-Depends'});

Reply to: