From aa8115c447ab23e2c5496134fc20ec5996619421 Mon Sep 17 00:00:00 2001 From: Henri Menke Date: Tue, 7 Jun 2022 21:22:25 +0200 Subject: [PATCH] sbsigntool: 0.9.1 -> 0.9.4 --- pkgs/tools/security/sbsigntool/autoconf.patch | 12 +++++++----- pkgs/tools/security/sbsigntool/default.nix | 8 ++++---- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/pkgs/tools/security/sbsigntool/autoconf.patch b/pkgs/tools/security/sbsigntool/autoconf.patch index f436a73bca72..0f41b4327e6a 100644 --- a/pkgs/tools/security/sbsigntool/autoconf.patch +++ b/pkgs/tools/security/sbsigntool/autoconf.patch @@ -1,9 +1,11 @@ ---- sbsigntools/configure.ac 2018-09-25 10:30:00.878766256 -0500 -+++ configure.ac.new 2018-09-25 10:34:56.231277375 -0500 -@@ -71,15 +71,16 @@ +diff --git a/configure.ac b/configure.ac +index 4ffb68f..d8a8265 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -71,15 +71,16 @@ AM_CONDITIONAL(TEST_BINARY_FORMAT, [ test "$EFI_ARCH" = "arm" -o "$EFI_ARCH" = " # no consistent view of where gnu-efi should dump the efi stuff, so find it ## - for path in /lib /lib64 /usr/lib /usr/lib64 /usr/lib32 /lib/efi /lib64/efi /usr/lib/efi /usr/lib64/efi; do + for path in /lib /lib64 /usr/lib /usr/lib64 /usr/lib32 /lib/efi /lib64/efi /usr/lib/efi /usr/lib64/efi /usr/lib/gnuefi /usr/lib64/gnuefi ; do - if test -e $path/crt0-efi-$EFI_ARCH.o; then - CRTPATH=$path + if test -e @@NIX_GNUEFI@@/$path/crt0-efi-$EFI_ARCH.o; then @@ -20,7 +22,7 @@ -DEFI_FUNCTION_WRAPPER" CPPFLAGS_save="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $EFI_CPPFLAGS" -@@ -90,5 +91,5 @@ +@@ -90,5 +91,5 @@ AC_SUBST(EFI_ARCH, $EFI_ARCH) AC_SUBST(CRTPATH, $CRTPATH) AC_CONFIG_FILES([Makefile src/Makefile lib/ccan/Makefile] diff --git a/pkgs/tools/security/sbsigntool/default.nix b/pkgs/tools/security/sbsigntool/default.nix index 7a0bb37d4a4c..fac009f6e771 100644 --- a/pkgs/tools/security/sbsigntool/default.nix +++ b/pkgs/tools/security/sbsigntool/default.nix @@ -3,14 +3,14 @@ , openssl, libuuid, gnu-efi, libbfd }: -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "sbsigntool"; - version = "0.9.1"; + version = "0.9.4"; src = fetchgit { url = "https://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git"; - rev = "v0.9.1"; - sha256 = "098gxmhjn8acxjw5bq59wq4xhgkpx1xn8kjvxwdzpqkwq9ivrsbp"; + rev = "v${version}"; + sha256 = "sha256-dbjdA+hjII/k7wABTTJV5RBdy4KlNkFlBWEaX4zn5vg="; }; patches = [ ./autoconf.patch ];