From patchwork Sun Aug 4 03:55:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lilah Tascheter X-Patchwork-Id: 66657 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7CCF027BBEA; Sun, 4 Aug 2024 04:57:54 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A6B4827BBE2 for ; Sun, 4 Aug 2024 04:57:53 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1saSNL-0007j5-Du; Sat, 03 Aug 2024 23:57:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1saSNJ-0007ii-UU for guix-patches@gnu.org; Sat, 03 Aug 2024 23:57:41 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1saSNJ-0004Gr-HQ for guix-patches@gnu.org; Sat, 03 Aug 2024 23:57:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=26FLSOuiGYmCw11nXp61rJ0AD1wQhux41z4ZLgracwk=; b=Cnh30wLlnO3dZR0BhNJ45ncIZyPqQBDqDR2raeUUVFSsaNxzChzKCxvXkVpKUTZAqQ9AMLJ7L1rjHrt+Z3qf/WB1KQ1NEG1stBUF6HOUzfia51+1YgMSmfwpmj2qsrRI/x40gc7qDWHq+K0/996paMRJQv6C6n9KdM78tIsOcD8GDFtrIqoGy+qxfKPs1xqMw0ACH3ct20/XoCDUJljEBCMOMhQTT43AcUwH8F0vguefHBk6GbnvioWBCsUhGQGAXGkJIQ0fAizyoEZPWh9IfVfb2V+TSHtjVz38oSO5VxsMEQ17hwG4cDx1mfL4NnHYSG8g/RSK1OA8kzozcyuklw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1saSNd-0001O7-VH for guix-patches@gnu.org; Sat, 03 Aug 2024 23:58:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72457] [PATCH 08/15] gnu: packages: Add pesign. Resent-From: Lilah Tascheter Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 04 Aug 2024 03:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72457 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72457@debbugs.gnu.org Cc: Lilah Tascheter Received: via spool by 72457-submit@debbugs.gnu.org id=B72457.17227438285098 (code B ref 72457); Sun, 04 Aug 2024 03:58:01 +0000 Received: (at 72457) by debbugs.gnu.org; 4 Aug 2024 03:57:08 +0000 Received: from localhost ([127.0.0.1]:55156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saSMl-0001K5-VE for submit@debbugs.gnu.org; Sat, 03 Aug 2024 23:57:08 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]:58142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saSMj-0001I6-UP for 72457@debbugs.gnu.org; Sat, 03 Aug 2024 23:57:06 -0400 Authentication-Results: purelymail.com; auth=pass DKIM-Signature: a=rsa-sha256; b=kIPyzWznlprez4290KMPuPNGXfmCTdxk6hQERkXECXTbTtnzQr+X4ZrwGB3IKECWx0LD8kygEAqwo/fi0r/BCqRyyFFdIu2uxr8YTTMxjznqSPQ4TQprEn7cVv2awvZTyEPYCMmi0efteRFo0arsTQFaNaatie+zdICKGSnZK9Iya/hEdfv9ky8JUvdZgy2aMbPSNEDk/2YqEMZ8R6y/gUC4BG+7DY6GJhJQsO51xV4/zkTDn9zhAmtQ+m/iTk0nM2lr8V0dgBSG2ArmLtbvMQdj8aquMMp1OE3PVt+7CCtmC8gwH+pXJfE75KMRaSz7U5+umvRPh9l2FS9y16KmJw==; s=purelymail2; d=lunabee.space; v=1; bh=WhiA5/5V8UV3UEflB4NEu7ujLL2fVd2BbiCKawWu2rY=; h=Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=QizPqx6fYC/Eegy77MBc6VyZefiDmzFuyUOFDQIYRQ2PNrTSK5G49CrIZuCYR1JjTXv24QO8g3u0ZtEAX6Ig4NDMQ3Qp3KAqPmPjTRuZmI2aBCRkMirBXMFJujfdtx6SOgnLxbVQy0Et8p6Bf+ixUV0Kgo601HW5sWZ91E1LtlUr/Ik9cQ3ya72cITOG6BrXuTT2P+tqlx5oRzdTyQbJe8u6QcIMDWf+5CFcSaB1WAOzSASIThRYRVsySA/gDWr0uwRAtbStTaVvoh4cv7uKghyTCvpCE400a8uiaZPvtx9l/rBFQBN0jOLEmV/FVHJeBVo+3pVsjcNlCRct16tJsg==; s=purelymail2; d=purelymail.com; v=1; bh=WhiA5/5V8UV3UEflB4NEu7ujLL2fVd2BbiCKawWu2rY=; h=Feedback-ID:Received:From:To:Subject:Date; Feedback-ID: 8937:2070:null:purelymail X-Pm-Original-To: 72457@debbugs.gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 1753051598; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 04 Aug 2024 03:56:24 +0000 (UTC) Date: Sat, 3 Aug 2024 22:55:28 -0500 Message-ID: <043696a5b83f37396efe0c49a8fa7e0e2b0ce108.1722741997.git.lilah@lunabee.space> In-Reply-To: References: MIME-Version: 1.0 X-MIME-Autoconverted: from 8bit to quoted-printable by Purelymail X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Lilah Tascheter via Guix-patches From: Lilah Tascheter Reply-To: Lilah Tascheter Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/efi.scm (pesign): New variable. Change-Id: I00fcc679d9514c85d508183b9ec7e121e0a814db --- gnu/packages/efi.scm | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/efi.scm b/gnu/packages/efi.scm index 499745eba1..417b70d91b 100644 --- a/gnu/packages/efi.scm +++ b/gnu/packages/efi.scm @@ -24,8 +24,10 @@ (define-module (gnu packages efi) #:use-module (gnu packages bash) #:use-module (gnu packages linux) #:use-module (gnu packages man) + #:use-module (gnu packages nss) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages popt) #:use-module (gnu packages tls) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system gnu) @@ -153,6 +155,51 @@ (define-public sbsigntools (home-page "https://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git/") (license license:gpl3+))) +(define-public pesign + (package + (name "pesign") + (version "116") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rhboot/pesign") + (commit version))) + (snippet #~(substitute* "Make.defaults" + (("pkg-config-ccldflags") "pkg-config-ldflags"))) + (modules '((guix build utils))) + (sha256 + (base32 + "0fnqfiivj46bha4hsnwiqy8vq8b4i3w2dig0h9h2k4j7yq7r5qvj")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f + #:modules '((guix build gnu-build-system) + (guix build utils) + (ice-9 match)) + #:phases #~(modify-phases %standard-phases (delete 'configure)) + #:make-flags + (let ((system (%current-system)) (target (%current-target-system))) + (define (arch s) (match (string-split s #\-) + (("i386" _ ...) "ia32") + (("i486" _ ...) "ia32") + (("i586" _ ...) "ia32") + (("i686" _ ...) "ia32") + ((x _ ...) x))) + #~(list "prefix=/" "libdir=/lib/" + (string-append "DESTDIR=" #$output) + (string-append "HOSTARCH=" #$(arch system)) + (string-append "ARCH=" #$(arch (or target system))) + (string-append "CROSS_COMPILE=" + #$@(if target (list target "-gcc") '())))))) + (inputs (list efivar nspr nss popt `(,util-linux "lib"))) + (native-inputs (list mandoc pkg-config)) + (synopsis "PE-COFF binary signing tools") + (description "Supports EFI keygen and subsequent signing of PE-COFF +binaries. Contains the tools authvar, efikeygen, pesigcheck, pesign, +pesign-client, and pesum.") + (home-page "https://github.com/rhboot/pesign") + (license license:gpl2+))) + (define-public efitools (package (name "efitools")