From 5089e9aa0626e6f69b926b97aba75d539fe38f3b Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sat, 19 Feb 2022 12:00:46 +0100 Subject: [PATCH] gnu: efivar: Build in a deterministic fashion. * gnu/packages/linux.scm (efivar)[arguments]: Add phase. --- gnu/packages/linux.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index d4ae8c5c76..7a61cb9f61 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -15,7 +15,7 @@ ;;; Copyright © 2016, 2018, 2019, 2020, 2021 Ricardo Wurmus ;;; Copyright © 2016 David Craven ;;; Copyright © 2016 John Darrington -;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Marius Bakke +;;; Copyright © 2016-2022 Marius Bakke ;;; Copyright © 2016, 2018 Rene Saavedra ;;; Copyright © 2016 Carlos Sánchez de La Lama ;;; Copyright © 2016, 2017 Nikita @@ -6727,6 +6727,12 @@ (define-public efivar (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")) #:phases (modify-phases %standard-phases + (add-after 'unpack 'build-deterministically + (lambda _ + (substitute* "src/include/defaults.mk" + ;; Don't use -march=native. + (("-march=native") + "")))) (delete 'configure)))) (native-inputs (list mandoc pkg-config))