1
Description: Fix FTBFS on i386 by defining EFI_ARCH to ia32 instead of uname.
2
Author: Adam Conrad <adconrad@ubuntu.com>
5
--- sbsigntool-0.4.orig/configure.ac
6
+++ sbsigntool-0.4/configure.ac
7
@@ -65,6 +65,11 @@ PKG_CHECK_MODULES(uuid, uuid,
1
From ffbf59032c9dff0afc19490f012066d4bbd5a0c3 Mon Sep 17 00:00:00 2001
2
From: Steve Langasek <steve.langasek@canonical.com>
3
Date: Fri, 12 Oct 2012 16:48:53 -0700
4
Subject: [PATCH] Use AC_CANONICAL_HOST, not uname -m, to determine target
6
The EFI architecture should be set from the standard autoconf macros, not
7
from uname -m. Uname -m is wrong not just when cross-building, but also when
8
running 32-bit userspace on a 64-bit kernel.
10
Ref: https://bugs.launchpad.net/bugs/1066038
12
configure.ac | 15 ++++++++++++++-
13
1 file changed, 14 insertions(+), 1 deletion(-)
15
diff --git a/configure.ac b/configure.ac
16
index 0d8f0bb..a693d96 100644
19
@@ -7,6 +7,8 @@ AC_PREREQ(2.60)
20
AC_CONFIG_HEADERS(config.h)
21
AC_CONFIG_SRCDIR(src/sbsign.c)
28
@@ -64,7 +66,18 @@ PKG_CHECK_MODULES(uuid, uuid,
29
AC_MSG_ERROR([libuuid (from the uuid package) is required]))
9
31
dnl gnu-efi headers require extra include dirs
16
EFI_CPPFLAGS="-I/usr/include/efi -I/usr/include/efi/$EFI_ARCH \
17
-DEFI_FUNCTION_WRAPPER"
18
CPPFLAGS_save="$CPPFLAGS"
19
--- sbsigntool-0.4.orig/configure
20
+++ sbsigntool-0.4/configure
21
@@ -5480,6 +5480,11 @@ $as_echo "yes" >&6; }
30
EFI_CPPFLAGS="-I/usr/include/efi -I/usr/include/efi/$EFI_ARCH \
31
-DEFI_FUNCTION_WRAPPER"
32
CPPFLAGS_save="$CPPFLAGS"
41
+ AC_MSG_ERROR([unsupported EFI architecture $host_cpu])
45
EFI_CPPFLAGS="-I/usr/include/efi -I/usr/include/efi/$EFI_ARCH \
46
-DEFI_FUNCTION_WRAPPER"
47
CPPFLAGS_save="$CPPFLAGS"