Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#49314 - [efitools] Missing PreLoader.efi

Attached to Project: Arch Linux
Opened by Gerardo Exequiel Pozzi (djgera) - Thursday, 12 May 2016, 23:43 GMT
Last edited by Tobias Powalowski (tpowa) - Saturday, 14 May 2016, 15:20 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: Looks like PreLoader.efi is missing due some build issue. Should be present in x86_64 only [#1]

Additional info:
efitools-1.7.0-1

[#1] https://git.kernel.org/cgit/linux/kernel/git/jejb/efitools.git/tree/Makefile#n8
Closed by  Tobias Powalowski (tpowa)
Saturday, 14 May 2016, 15:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.7.0.3
Comment by Christian Hesse (eworm) - Friday, 13 May 2016, 06:16 GMT
The environment variable ARCH is not defined at build time. We need something like:

export ARCH="${CARCH}"

This solves part one of the problem. Building PreLoader.efi is still broken with:

PreLoader.c: In function ‘efi_main’:
PreLoader.c:45:11: error: too few arguments to function ‘security_policy_install’
status = security_policy_install();
^~~~~~~~~~~~~~~~~~~~~~~
In file included from PreLoader.c:14:0:
/tmp/efitools/include/security_policy.h:4:1: note: declared here
security_policy_install(BOOLEAN (*override)(void), POLICY_FUNCTION allow, POLICY_FUNCTION deny);
^~~~~~~~~~~~~~~~~~~~~~~
Make.rules:102: recipe for target 'PreLoader.o' failed

I already pinged James Bottomley and he want to add the missing code next week.
Comment by Tobias Powalowski (tpowa) - Friday, 13 May 2016, 15:38 GMT
Thx folks for jumping in, just keep me informed how to fix this.
Sorry I thought all went well.
Comment by Philip Müller (philm) - Saturday, 14 May 2016, 07:20 GMT
With latest git-commit 791e4639ee837f70c8d5e1190e01dc3441d4a401 it builds now.

Loading...