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

Bug#843261: marked as done (efivar FTCBFS: compiles build tools with the host architecture compiler)



Your message dated Mon, 08 Jan 2018 23:49:48 +0000
with message-id <E1eYhAq-0007dL-Mu@fasolo.debian.org>
and subject line Bug#843261: fixed in efivar 32-2
has caused the Debian Bug report #843261,
regarding efivar FTCBFS: compiles build tools with the host architecture compiler
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
843261: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=843261
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: efivar
Version: 30-1
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

efivar fails to cross build from source, because it compiles the build
tool makeguids with the host architecture compiler and then fails
running it. It also runs the build architecture pkg-config. Switching
makeguids to the build architecture compiler and passing CROSS_COMPILE
to make makes both cross and native builds just work. Please consider
applying the attached patch.

Helmut
diff --minimal -Nru efivar-30/debian/changelog efivar-30/debian/changelog
--- efivar-30/debian/changelog	2016-09-23 22:00:08.000000000 +0200
+++ efivar-30/debian/changelog	2016-11-05 07:58:05.000000000 +0100
@@ -1,3 +1,12 @@
+efivar (30-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Pass CROSS_COMPILE to make
+    + cross.patch: Use CCLD_FOR_BUILD for makeguids.
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sat, 05 Nov 2016 07:57:11 +0100
+
 efivar (30-1) unstable; urgency=medium
 
   * new upstream version (30)
diff --minimal -Nru efivar-30/debian/patches/cross.patch efivar-30/debian/patches/cross.patch
--- efivar-30/debian/patches/cross.patch	1970-01-01 01:00:00.000000000 +0100
+++ efivar-30/debian/patches/cross.patch	2016-11-05 08:04:48.000000000 +0100
@@ -0,0 +1,29 @@
+Subject: use CCLD_FOR_BUILD for makeguids
+From: Helmut Grohne <helmut@subdivi.de>
+
+Index: efivar-30/Make.defaults
+===================================================================
+--- efivar-30.orig/Make.defaults
++++ efivar-30/Make.defaults
+@@ -10,7 +10,9 @@
+ INSTALL ?= install
+ CROSS_COMPILE	?=
+ PKG_CONFIG = $(CROSS_COMPILE)pkg-config
++CC_FOR_BUILD	?= cc
+ CC	:= $(if $(filter default,$(origin CC)),$(CROSS_COMPILE)gcc,$(CC))
++CCLD_FOR_BUILD	?= $(CC_FOR_BUILD)
+ CCLD	:= $(if $(filter undefined,$(origin CCLD)),$(CC),$(CCLD))
+ OPTIMIZE ?= -O2 -flto
+ CFLAGS	?= $(OPTIMIZE) -g3
+Index: efivar-30/src/Makefile
+===================================================================
+--- efivar-30.orig/src/Makefile
++++ efivar-30/src/Makefile
+@@ -38,6 +38,7 @@
+ makeguids : CPPFLAGS+=-DEFIVAR_BUILD_ENVIRONMENT
+ makeguids : LIBS=dl
+ makeguids : $(MAKEGUIDS_SOURCES)
++makeguids : CCLD=$(CCLD_FOR_BUILD)
+ 
+ guids.o : guids.S | guids.bin names.bin
+ 
diff --minimal -Nru efivar-30/debian/patches/series efivar-30/debian/patches/series
--- efivar-30/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ efivar-30/debian/patches/series	2016-11-05 07:58:10.000000000 +0100
@@ -0,0 +1 @@
+cross.patch
diff --minimal -Nru efivar-30/debian/rules efivar-30/debian/rules
--- efivar-30/debian/rules	2016-09-23 22:00:08.000000000 +0200
+++ efivar-30/debian/rules	2016-11-05 08:00:25.000000000 +0100
@@ -6,13 +6,13 @@
 
 export DEB_CFLAGS_MAINT_APPEND= -flto
 
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+include /usr/share/dpkg/architecture.mk
 
 %:
 	dh $@ 
 
 override_dh_auto_build:
-	dh_auto_build -- libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
+	dh_auto_build -- libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)-
 
 override_dh_auto_install:
 	dh_auto_install -- libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)

--- End Message ---
--- Begin Message ---
Source: efivar
Source-Version: 32-2

We believe that the bug you reported is fixed in the latest version of
efivar, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 843261@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mario Limonciello <mario.limonciello@dell.com> (supplier of updated efivar package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 08 Jan 2018 17:24:57 -0600
Source: efivar
Binary: libefivar-dev libefiboot-dev efivar libefiboot1 libefivar1
Architecture: source amd64
Version: 32-2
Distribution: unstable
Urgency: medium
Maintainer: Debian UEFI Maintainers <debian-efi@lists.debian.org>
Changed-By: Mario Limonciello <mario.limonciello@dell.com>
Description:
 efivar     - Tools to manage UEFI variables
 libefiboot-dev - Development headers for libefiboot
 libefiboot1 - Library to manage UEFI variables
 libefivar-dev - Development headers for libefivar
 libefivar1 - Library to manage UEFI variables
Closes: 843261
Changes:
 efivar (32-2) unstable; urgency=medium
 .
   * Backport a patch that allows fwupdate 10 to compile.
   * Fix FTCBFS: (Closes: #843261)
     + Pass CROSS_COMPILE to make
     + 0001-Add-a-patch-from-Helmut-Grohne-for-cross-compiling.patch
Checksums-Sha1:
 687a20fccb279599b3a9f5bdc447595190b629ce 2397 efivar_32-2.dsc
 80e7be48807b190ef97a5f4ff9a0f48c5c15621a 8304 efivar_32-2.debian.tar.xz
 a7185570a88dc5a71df13ef7a94b44e6ac2706cf 12204 efivar-dbgsym_32-2_amd64.deb
 830cec68c6a031d7103dadaf3243e13d4c8bd3ab 7184 efivar_32-2_amd64.buildinfo
 aad6483667df5c0d0642d2e62a63b97cfc5b86b1 12216 efivar_32-2_amd64.deb
 9a41c38832e00ca2f947c76de3b78028e07bbafa 7248 libefiboot-dev_32-2_amd64.deb
 5775cc47f25fbe815e7e76fbccf50e2b3c3a80ae 58348 libefiboot1-dbgsym_32-2_amd64.deb
 7d67d66d8e2760bca4d3ae08bb0eb7f6da867106 26224 libefiboot1_32-2_amd64.deb
 30a45a59e2a244c4e2930f41cec5b9ee414aacf2 19308 libefivar-dev_32-2_amd64.deb
 564d65f9c8158530d92474b6baee203a21fb708c 116232 libefivar1-dbgsym_32-2_amd64.deb
 f08654ecbafbd097958c321d2dc0b356d948569c 47088 libefivar1_32-2_amd64.deb
Checksums-Sha256:
 d3ff97a6e5c34bd75faee52d349cf2ca17711355ba46e77e6174a6343db7e028 2397 efivar_32-2.dsc
 9c4e1818e74c840fc994c9cf3ebb8d9eb415771f040ac3b289b89f2e1d46b2ca 8304 efivar_32-2.debian.tar.xz
 7f5b3963df62c08932aeb22e1c0e44e435d392d501d445f514083480af02dfaa 12204 efivar-dbgsym_32-2_amd64.deb
 5d495ee08a121bc1e80029f7106ef56584a9139211a5e56fda1e88cde49084eb 7184 efivar_32-2_amd64.buildinfo
 1f14a7cc423158bebb57219b41446680798c500c28bfb40755002f72b8cd468a 12216 efivar_32-2_amd64.deb
 a1cff2352d950e8212fce9a4f093ae2509882492b8acfe97f8bba0f2a3aff7fb 7248 libefiboot-dev_32-2_amd64.deb
 63ebc5aa0f4e913fd2679373581f222f69ea0e2f98c863b1e1e8057ef1185f8b 58348 libefiboot1-dbgsym_32-2_amd64.deb
 c860663326e3828bf08f4651c3617f523d7f10e0969f304eca74362005ce150d 26224 libefiboot1_32-2_amd64.deb
 50598d59093c27f4f66b14eef47543f43e63988e825cfc032b95227ebca577cc 19308 libefivar-dev_32-2_amd64.deb
 552a33f15d2e6b8624cca2438528dafb47d3ebd36793d5aabfc5c2b8b6136175 116232 libefivar1-dbgsym_32-2_amd64.deb
 acf794322b2d922f47ebeb04e898e6e34cd075041c2a6792a162d3a8d57a92e3 47088 libefivar1_32-2_amd64.deb
Files:
 340d8692168b0d79d5a24d94265063b5 2397 libs optional efivar_32-2.dsc
 d8b9da8e28016da2955160f26fdfce29 8304 libs optional efivar_32-2.debian.tar.xz
 2af88333b33d125f70665d92d17b7263 12204 debug optional efivar-dbgsym_32-2_amd64.deb
 3f7661e8de77196270ed5bf74cf7b51b 7184 libs optional efivar_32-2_amd64.buildinfo
 298f2e0fea621c57d013372d732c7496 12216 admin optional efivar_32-2_amd64.deb
 694de9c6c99ca935cc29e093d733303d 7248 libdevel optional libefiboot-dev_32-2_amd64.deb
 0330b44db5b0a2916e9fb49a6bb6f2f3 58348 debug optional libefiboot1-dbgsym_32-2_amd64.deb
 502c9e6b67e6266b3da70079299d8b51 26224 libs optional libefiboot1_32-2_amd64.deb
 fe29374eb9129fe0863fd9ed02de48b8 19308 libdevel optional libefivar-dev_32-2_amd64.deb
 d2d764f7aa31415be7852e4c19cc44ad 116232 debug optional libefivar1-dbgsym_32-2_amd64.deb
 29badd64707638ab5c592468fa2b9a71 47088 libs optional libefivar1_32-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJaU/5pAAoJEC0ZLKYkdwJ2MM8P/3nKgXIYcR1klMn3B87Y/14W
L/qWEBTQOm8kxh5xtRRPXvq4CqpKcaiiMJf51IHaoUhuVmhbEYs5lR6H+C1Yclhc
hb8NU/SLXoIv4/OquPj6I6mtlQsriPnEcRiH6U3e7OqzI4eaMAfYE6IKbjqTOtH+
JVnJ4aACXDH6yz8lbR98zvu0d0R7+zdNE7j/AMEaV96PUoIKbYa27Heu3oazaz74
0uQqhA9MDmwhK1n+QBQR9OLbHYhidpWjeA6ySWXiY36g3LQEgD9zaRrwiZZrElqG
LssQlnwaRG1iUCao0PtMUL3qbAH4lYF31bGAlClZE3y1w9fCoOw8FZvej4+cAZys
SUdjU8jYOVlwjNJaXYIUtN1ttSniuuIGXcf9ZVUdmMJ7NmVUSJhEMAGN3bruCqb8
A/N3baVNKbwRVNxugoK/7Dxe3v4vY86ClV9piw06xpnpM+UD639uXmGQVeA/dQWK
n6uc0Qa2exNzqy3V5pSAtJAci70sKFVksH6qfqX639zFFovs+kPS58nZlfrTUfk4
l5W0RqYP0PtzsT04EQiM5O03rOiuPADOwxlFUYAyaAAm3jOYAZXPGNqeg9mts+ef
uv3T8+QnxLztdx60mMleHiDAhIQh7DfK62GqoNXovop7+58m+rtW+f50fEWvrmuB
XGnvmcpXbEFHCq+8D5Vl
=L3mJ
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: