2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 11:44:07 +00:00

trustedGrub, trustedGrub-for-HP: apply upstream fix for fresh glibc

This commit is contained in:
Sergei Trofimovich 2021-09-11 12:51:12 +01:00
parent fff9593c7a
commit 1d7917e64e

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fetchgit, autogen, flex, bison, python, autoconf, automake { lib, stdenv, fetchurl, fetchgit, fetchpatch, autogen, flex, bison, python, autoconf, automake
, gettext, ncurses, libusb-compat-0_1, freetype, qemu, lvm2 , gettext, ncurses, libusb-compat-0_1, freetype, qemu, lvm2
, for_HP_laptop ? false , for_HP_laptop ? false
}: }:
@ -81,7 +81,14 @@ stdenv.mkDerivation rec {
-e "s|/usr/src/unifont.bdf|$PWD/unifont.bdf|g" -e "s|/usr/src/unifont.bdf|$PWD/unifont.bdf|g"
''; '';
patches = [ ./fix-bash-completion.patch ]; patches = [
./fix-bash-completion.patch
(fetchpatch {
# glibc-2.26 and above needs '<sys/sysmacros.h>'
url = "https://github.com/Rohde-Schwarz/TrustedGRUB2/commit/7a5b301e3adb8e054288518a325135a1883c1c6c.patch";
sha256 = "1jfrrmcrd9a8w7n419kszxgbpshx7888wc05smg5q4jvc1ag3xm7";
})
];
# save target that grub is compiled for # save target that grub is compiled for
grubTarget = if inPCSystems grubTarget = if inPCSystems
@ -89,7 +96,9 @@ stdenv.mkDerivation rec {
else ""; else "";
doCheck = false; doCheck = false;
enableParallelBuilding = true; # On -j16 races with early header creation:
# config.h:38:10: fatal error: ./config-util.h: No such file or directory
enableParallelBuilding = false;
meta = with lib; { meta = with lib; {
description = "GRUB 2.0 extended with TCG (TPM) support for integrity measured boot process (trusted boot)"; description = "GRUB 2.0 extended with TCG (TPM) support for integrity measured boot process (trusted boot)";