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

Bug#845815: efibootmgr FTCBFS: uses build architecture pkg-config



Source: efibootmgr
Version: 14-1
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

efibootmgr fails to cross build from source, because it uses the build
architecture pkg-config and thus fails finding efivar.h. The cause is
that debhelper simply passes cross compilers for CC and CXX, but the
build system of efibootmgr expects setting CROSS_COMPILE instead. Thus
the attached patch opts out of dh_auto_build and explicitly sets up
CROSS_COMPILE. Please consider applying it.

Helmut
diff --minimal -Nru efibootmgr-14/debian/changelog efibootmgr-14/debian/changelog
--- efibootmgr-14/debian/changelog	2016-09-29 17:39:14.000000000 +0200
+++ efibootmgr-14/debian/changelog	2016-11-26 22:10:56.000000000 +0100
@@ -1,3 +1,10 @@
+efibootmgr (14-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass CROSS_COMPILE instead of overriding CC (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sat, 26 Nov 2016 22:10:56 +0100
+
 efibootmgr (14-1) unstable; urgency=medium
 
   * New upstream version (14)
diff --minimal -Nru efibootmgr-14/debian/rules efibootmgr-14/debian/rules
--- efibootmgr-14/debian/rules	2016-09-29 17:39:14.000000000 +0200
+++ efibootmgr-14/debian/rules	2016-11-26 22:10:56.000000000 +0100
@@ -2,12 +2,17 @@
 # rules file for the efibootmgr package, requires debhelper / dh
 # copyright 2012 by Bdale Garbee, GPLv2 or later
 
+include /usr/share/dpkg/architecture.mk
+
 export DH_VERBOSE=1
 export DH_OPTIONS=-v
 
 %:
 	dh $@
 
+override_dh_auto_build:
+	CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)- $(MAKE)
+
 # upstream build installs into /usr/sbin ignoring target directory;
 # since the install step is not actually needed just skip it
 override_dh_auto_install:

Reply to: