From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WI9pDt2OsWYV+gAAqHPOHw:P1 (envelope-from ) for ; Tue, 06 Aug 2024 02:47:57 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id WI9pDt2OsWYV+gAAqHPOHw (envelope-from ) for ; Tue, 06 Aug 2024 04:47:57 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=ZRlT0kv6; dkim=fail ("headers rsa verify failed") header.d=lunabee.space header.s=purelymail3 header.b="EjULs/b9"; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail3 header.b=gCv3r7Sr; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722912477; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=buit2QYRv4t16LN+onkxKQtwHUEdrMneSRjlV7pxzDA=; b=jKfzAHyJK6NQLA1juZe8PqRkLP/aG6f/+nAPCJXhY7ZPv1k8bsQcfh6gJR7FMJBfUTEyrF Hv7iHtzwwSZo8ruRa9p6hvZCkj/oQzaLFbJH7rlMhpcxPRCcbcryLDAnOkZ1obHnCeKARE 7SX1RWoAK7zqXpr0SX7C8rd8ldLYMUdC4tVZHIau2BU+Y7K4Ut0GIumLfR1IbiFVjiIfxI EOCKBx4a5QLer/IvDm0tQz9d0Titbz8RPVwk17pZhMYPC83Bsc9OBj2GhefqxJpclQvVH5 ZicNJRkkivXdb8/Gytq1T/sTda7ChHdLcd9oQnbw0vT1VsPW4PldkMj8mHRsyA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=ZRlT0kv6; dkim=fail ("headers rsa verify failed") header.d=lunabee.space header.s=purelymail3 header.b="EjULs/b9"; dkim=fail ("headers rsa verify failed") header.d=purelymail.com header.s=purelymail3 header.b=gCv3r7Sr; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722912477; a=rsa-sha256; cv=none; b=c9iTDCWFc97mzkt4QdWA+MAgfdI+hAyUUm4pCYIoRHZdFNwxed3wf9hqRFPRmVwJDEaZiK lu7rnKDGlUmXibU84DeKX6TxyAwPjclrozx4oulYzqg/7TqJOQo24gilIj6Asf+6JVScfp DfoUF1bh2P0z5Ugxv2QAlkXqrwYHrbsajkpYJ8qqPr7A0aKSy4r0Lujw9L8Y0WZo4azsMQ sxAxaZhqqN/pyXotFWjtjVlEgDeQPFxEu8T9FRRyLEeJjBnMucuiVNo5mv+HGRGxMD9Q1S 2Snk+abygo/IOgTOewJynFye0Wcm74ji7I2P4yndTJGuydOY6f1V5hCDQShINw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0E43E3E7E4 for ; Tue, 6 Aug 2024 04:47:57 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbAE6-0000xB-2f; Mon, 05 Aug 2024 22:47:06 -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 1sbADr-0000rz-23 for guix-patches@gnu.org; Mon, 05 Aug 2024 22:46:51 -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 1sbADk-0001IA-Mw for guix-patches@gnu.org; Mon, 05 Aug 2024 22:46:49 -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=buit2QYRv4t16LN+onkxKQtwHUEdrMneSRjlV7pxzDA=; b=ZRlT0kv6zxoYNjdzPQQv9ZCKhwBPPwSZfSmPqOjKj/hFhzDcpcirLfk4Ckf6mbiVuYDMVNeVWO+FJHp0eSboDDj0JNbjpLm450KINS4kxSg0yKHbOpmE8axGFvrWU3xC4ST738fAm7sLzALzaO9LPZW9pXb0r9WD3+qpuEnFwiuQQ/vo+yOjHy4QMEsVC/nvctqCzlLPuO35paPdyj021Se1amG9dQgG/idsLI5FfJOI0gNyyS6TSfJeOogzomzRRWFvcOmNwHjd+xKhqQRLABuYA1lLKcvusVIlGeSfAuOa2bnH9A0Ph7SEva5bXgpfenZ4UoAuBZddniKwxrzicg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbAE7-0008VW-Rr; Mon, 05 Aug 2024 22:47:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72457] [PATCH v4 09/15] gnu: packages: Add ukify. Resent-From: Lilah Tascheter Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, guix-patches@gnu.org Resent-Date: Tue, 06 Aug 2024 02:47:07 +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 , Sergey Trofimov , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 72457-submit@debbugs.gnu.org id=B72457.172291240132491 (code B ref 72457); Tue, 06 Aug 2024 02:47:07 +0000 Received: (at 72457) by debbugs.gnu.org; 6 Aug 2024 02:46:41 +0000 Received: from localhost ([127.0.0.1]:59680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbADg-0008Rt-Sg for submit@debbugs.gnu.org; Mon, 05 Aug 2024 22:46:41 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]:51872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbADd-0008Qd-TD for 72457@debbugs.gnu.org; Mon, 05 Aug 2024 22:46:39 -0400 DKIM-Signature: a=rsa-sha256; b=EjULs/b9loAyJXBXAwxbJ5WO6nnvUszwp73Hv2TkVqswvZ7AW+WNvEDnyX4oaTFSljG137jChvAUuCqZOPXtLMvYSW/zGM82Ut92iFumWB8rjAo1dIHgXNFpmSrq2kc6B6nZ+s1AG///a+QB7VyyjoIkdJgSLWd+C4VVNY6rIynnokoIQJd9I4iO4oZKlR3d5H6BMP5zi2gT59wCGCFw0tjqvpK9vzntGBNKziLOgCAtV+HbvsGT/6R9MJOV6sbsSOUuLPO6l3XJBH94BxbsQsyRyMTRWN2Z8tOSZDykxR7teQHbSs1woQuznfMIrWIbX01n0be/Oi7q9NHpL/n30A==; s=purelymail3; d=lunabee.space; v=1; bh=ct20D5UCkzcg79/PpAd07DbZyO28QekLcI9/1dbTTb8=; h=Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=gCv3r7Srvx+CGXtbWV/9632dBzBX+MvTjflEz/mjbAoC8CT1XMP97LTJbO9BUJPxCOH6vumYfyhhtB7NbSXEQXALJOEWZEOjo2IoKEga6Ar8+JBVrpuLS69GfHm36c0k98sk1Nz78Y5Az4ZpmRraHTrNAVOeFVJVXAJ7Je4hYNQGHniq2LUIVIIvcRXd6M3X6Zbn9ILqerJ8UCfEMbP2FivgQGXmJWziQIM8QSNcOsjzV5UmDXjVV8AUcVQhWGTgw8VPIf0vdBWlAoGJ813B9XtoQci/ccyn/SQO0n5eRMbUlLWQ/Lj3SgA1qAB/gIvADWoSgg4GIcqjIxDFi6ZTxQ==; s=purelymail3; d=purelymail.com; v=1; bh=ct20D5UCkzcg79/PpAd07DbZyO28QekLcI9/1dbTTb8=; 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 1040940465; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 06 Aug 2024 02:45:52 +0000 (UTC) Date: Mon, 5 Aug 2024 21:44:47 -0500 Message-ID: <69b694d36b04f108d37e426a76afc8b1b5a73b40.1722912293.git.lilah@lunabee.space> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: , From: Lilah Tascheter via Guix-patches Reply-To: Lilah Tascheter Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 0E43E3E7E4 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.94 X-Spam-Score: -6.94 X-TUID: UFEp47ljtyh+ * gnu/packages/bootloaders.scm (systemd-version,systemd-source,ukify): New variables. Change-Id: Icde59b7266529c8002331ff0375e0a35af3a2add --- gnu/packages/bootloaders.scm | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index e78602379d..04bb1b06f0 100644 --- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -20,6 +20,7 @@ ;;; Copyright =C2=A9 2022, 2023 Maxim Cournoyer ;;; Copyright =C2=A9 2023 Herman Rimm ;;; Copyright =C2=A9 2024 Zheng Junjie <873216071@qq.com> +;;; Copyright =C2=A9 2024 Lilah Tascheter ;;; ;;; This file is part of GNU Guix. ;;; @@ -47,6 +48,7 @@ (define-module (gnu packages bootloaders) #:use-module (gnu packages compression) #:use-module (gnu packages cross-base) #:use-module (gnu packages disk) + #:use-module (gnu packages efi) #:use-module (gnu packages firmware) #:use-module (gnu packages flex) #:use-module (gnu packages fontutils) @@ -73,11 +75,13 @@ (define-module (gnu packages bootloaders) #:use-module (gnu packages valgrind) #:use-module (gnu packages virtualization) #:use-module (gnu packages xorg) + #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) #:use-module (guix build-system pyproject) + #:use-module (guix build-system python) #:use-module (guix build-system trivial) #:use-module (guix download) #:use-module (guix gexp) @@ -573,6 +577,56 @@ (define-public syslinux ;; Also contains: license:expat license:isc license:zlib))))) =20 +(define systemd-version "255") +(define systemd-source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/systemd/systemd") + (commit (string-append "v" systemd-version)))) + (file-name (git-file-name "systemd" systemd-version)) + (snippet #~(substitute* "src/ukify/ukify.py" ; remove after python 3.1= 1 + (("datetime\\.UTC") "datetime.timezone.utc"))) + (modules '((guix build utils))) + (sha256 + (base32 + "1qdyw9g3jgvsbc1aryr11gpc3075w5pg00mqv4pyf3hwixxkwaq6")))) + +(define-public ukify + (package + (name "ukify") + (version systemd-version) + (source systemd-source) + (build-system python-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'build + (lambda* (#:key inputs #:allow-other-keys) + (define (get-tool tool) + (search-input-file inputs (string-append "bin/" tool= ))) + + (substitute* "src/ukify/ukify.py" ; hardcode tool path= s + (("(find_tool\\(')(readelf|sbsign|pesign)'," _ ctx t= ool) + (string-append ctx (get-tool tool) "',")) + (("('name': ')(sbverify|pesign)'," _ ctx tool) + (string-append ctx (get-tool tool) "',"))))) + (delete 'check) + (replace 'install + (lambda* (#:key inputs #:allow-other-keys) + (let* ((bin (string-append #$output "/bin")) + (file (string-append bin "/ukify"))) + (mkdir-p bin) + (copy-file "src/ukify/ukify.py" file))))))) + (inputs + (list binutils pesign python-cryptography python-pefile sbsigntools)= ) + (home-page "https://systemd.io/") + (synopsis "Unified kernel image UEFI tool") + (description "@command{ukify} joins together a UKI stub, linux kernel,= initrd, +kernel arguments, and optional secure boot signatures into a single, UEFI-= bootable +image.") + (license license:lgpl2.1+))) + (define-public dtc (package (name "dtc") --=20 2.45.2