From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 16 23:37:14 2024 Received: (at submit) by debbugs.gnu.org; 17 Jan 2024 04:37:14 +0000 Received: from localhost ([127.0.0.1]:50358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPxft-0005J5-Nq for submit@debbugs.gnu.org; Tue, 16 Jan 2024 23:37:14 -0500 Received: from lists.gnu.org ([2001:470:142::17]:60350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPxfr-0005IY-Id for submit@debbugs.gnu.org; Tue, 16 Jan 2024 23:37:12 -0500 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 1rPxfg-0001zc-FV for guix-patches@gnu.org; Tue, 16 Jan 2024 23:37:00 -0500 Received: from sendmail.purelymail.com ([34.202.193.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPxfe-0003KO-6n for guix-patches@gnu.org; Tue, 16 Jan 2024 23:37:00 -0500 Authentication-Results: purelymail.com; auth=pass DKIM-Signature: a=rsa-sha256; b=p2RF8n/rDUFoXKXJAD77JYIjQoEq2Mf7FDECK7ka/pBtScK+WH0d/G/uhX8kXgpuj6YtA73mvAhvtQiiHJus5nqMo4hhkjqLhs55lLE8uzxBZy+LkabNAwOsXYdOar7bcL4LFK0VzW34iFRSzXxyQBXb5Pk+P0sAajJIXi3Z4ksu1thrNBPp70vrAVWPbKoqJ7ROf+VwyOjmpbDOJ6kfsqKyjr3gYuPCmVERx4N6mef1xmc3rgxfC3JF2cTO1jr7VXQS+qzrAV4kkQM9n1YxLENxyqO0SAs7z+TWnnec+vLRaa8Dx1E4/aqz1mpHGw+kiX24HRjWfJNFSrTHW0nzVg==; s=purelymail1; d=lunabee.space; v=1; bh=s8vpIAJO+n52Yh3EdmZRqYS4sHsw1WBVogfFqDJhfEE=; h=Received:From:To:Subject; DKIM-Signature: a=rsa-sha256; b=ZqYAESOmgknKors1mytanBq+WKJNTUbXEwljwO1Ku2/3xWJj5iKdm4c2MkNp05c7ky8D86s90YBpHnkAIWyAnLqJMWInvzN4MX9tjoAUUoNYBJAO6dGynn2OkZbrUaaTQeQArAKNcH8AZPLaQ6X4fe7vZLq3xDRE+xg/30x8nO2N8eQR7U6v0TG3rNvqvu6Qxngcjt147neJ/dGfVQYAv+2XesSY1Vzy0/1o3Qt/BK+1ZKpnPAAGReCErfRRU4TJzVnTR3ajlNST16nDtKQWPrv8cbZnhA4+Ipv/MvyGHjegC1+jIyXi5Gw/ezZ3Afo/Xa+9DqhwgFHQ7d7II3tqMQ==; s=purelymail1; d=purelymail.com; v=1; bh=s8vpIAJO+n52Yh3EdmZRqYS4sHsw1WBVogfFqDJhfEE=; h=Feedback-ID:Received:From:To:Subject; Feedback-ID: 8937:2070:null:purelymail X-Pm-Original-To: guix-patches@gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -2094701616; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 17 Jan 2024 04:36:50 +0000 (UTC) From: Lilah Tascheter To: guix-patches@gnu.org Subject: [PATCH 1/2] gnu: bootloaders: Add uki packages. Date: Tue, 16 Jan 2024 22:23:03 -0600 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Debbugs-Cc: Efraim Flashner , Vagrant Cascadian Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by Purelymail Content-Type: text/plain; charset=UTF-8 Received-SPF: pass client-ip=34.202.193.197; envelope-from=lilah@lunabee.space; helo=sendmail.purelymail.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/packages/bootloaders.scm (systemd-stub-name): New procedure. (systemd-version, systemd-source, systemd-stub, ukify): New variables. Change-Id: Ie27bdcbf2c03e895956295f94f280c304393ce8d --- gnu/packages/bootloaders.scm | 94 ++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.1 URIBL_SBL_A Contains URL's A record listed in the Spamhaus SBL blocklist [URIs: systemd.io] 0.6 URIBL_SBL Contains an URL's NS IP listed in the Spamhaus SBL blocklist [URIs: systemd.io] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: submit Cc: Lilah Tascheter X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) * gnu/packages/bootloaders.scm (systemd-stub-name): New procedure. (systemd-version,systemd-source,systemd-stub,ukify): New variables. Change-Id: Ie27bdcbf2c03e895956295f94f280c304393ce8d --- gnu/packages/bootloaders.scm | 94 ++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index c73a0e665d..32cbb4e704 100644 --- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -46,11 +46,13 @@ (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) #:use-module (gnu packages gcc) #:use-module (gnu packages gettext) + #:use-module (gnu packages gperf) #:use-module (gnu packages linux) #:use-module (gnu packages man) #:use-module (gnu packages mtools) @@ -71,11 +73,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) @@ -632,6 +636,96 @@ (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)) + (sha256 + (base32 + "1qdyw9g3jgvsbc1aryr11gpc3075w5pg00mqv4pyf3hwixxkwaq6")))) + +(define-public (systemd-stub-name) + (let ((arch (cond ((target-x86-32?) "ia32") + ((target-x86-64?) "x64") + ((target-arm32?) "arm") + ((target-aarch64?) "aa64") + ((target-riscv64?) "riscv64")))) + (string-append "linux" arch ".efi.stub"))) + +(define-public systemd-stub + (package + (name "systemd-stub") + (version systemd-version) + (source systemd-source) + (build-system meson-build-system) + (arguments + (list + #:configure-flags + `(list "-Defi=3Dtrue" "-Dsbat-distro=3Dguix" + "-Dsbat-distro-generation=3D1" ; package revision! + "-Dsbat-distro-summary=3DGuix System" + "-Dsbat-distro-url=3Dhttps://guix.gnu.org" + ,(string-append "-Dsbat-distro-pkgname=3D" name) + ,(string-append "-Dsbat-distro-version=3D" version)) + #:phases + #~(let ((stub #$(string-append "src/boot/efi/" (systemd-stub-name)= ))) + (modify-phases %standard-phases + (replace 'build + (lambda* (#:key parallel-build? #:allow-other-keys) + (invoke "ninja" stub + "-j" (if parallel-build? + (number->string (parallel-job-count)) "1")))) + (replace 'install + (lambda _ + (install-file stub (string-append #$output "/libexec")))= ) + (delete 'check))))) + (inputs (list libcap python-pyelftools `(,util-linux "lib"))) + (native-inputs (list gperf pkg-config python-3 python-jinja2)) + (home-page "https://systemd.io") + (synopsis "Unified kernel image UEFI stub") + (description "Simple UEFi boot stub that loads a conjoined kernel imag= e and +supporting data to their proper locations, before chainloading to the kern= el. +Supports measured and/or verified boot environments.") + (license license:lgpl2.1+))) + +(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 _ + (substitute* "src/ukify/ukify.py" ; added in python 3.= 11 + (("datetime\\.UTC") "datetime.timezone.utc")))) + (delete 'check) + (replace 'install + (lambda* (#:key inputs #:allow-other-keys) + (let* ((bin (string-append #$output "/bin")) + (file (string-append bin "/ukify")) + (binutils (assoc-ref inputs "binutils")) + (sbsign (assoc-ref inputs "sbsigntools"))) + (mkdir-p bin) + (copy-file "src/ukify/ukify.py" file) + (wrap-program file + `("PATH" ":" prefix + (,(string-append binutils "/bin") + ,(string-append sbsign "/bin")))))))))) + (inputs (list binutils 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.41.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 16 23:43:15 2024 Received: (at control) by debbugs.gnu.org; 17 Jan 2024 04:43:15 +0000 Received: from localhost ([127.0.0.1]:50377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPxlj-0005Tz-Gd for submit@debbugs.gnu.org; Tue, 16 Jan 2024 23:43:15 -0500 Received: from sendmail.purelymail.com ([34.202.193.197]:41108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPxlh-0005Tk-CB for control@debbugs.gnu.org; Tue, 16 Jan 2024 23:43:14 -0500 DKIM-Signature: a=rsa-sha256; b=dQ/7Mo+xjXywq6eA5BLJGN+LnXOK/AeDojlrUgMcETRmWIn4EaYEgZ85OwPzztnuu1sebc9nQwmKREshKA6P7u0cy8Yp/3LvW+0IP4UYl7lPgSFY1UkwydCuJ7/FTidQxUWqRKZZUkRaTEiwYoVKTsSGGJikNgbboHlLFI13pkjjDzjXPcm8pdY5swidGsL72kqfA4wKybsQnqN0JnlIaoVo9kfqVnZjgfU8XD/Hckoc8fd8Zyr6HkGrSnUo4s/mcKCT4hSNX8v0fhoZdNzilRMI0I8VSfrL8hwB984H2i70lBgrrAYpMu4xOYPA7Loy2ugxWOI1pXFP2rvi96kkTQ==; s=purelymail1; d=lunabee.space; v=1; bh=obRvJsvI0AMb/ix0cSzT/JRmtpiHHEa2907FscAjVHg=; h=Received:Subject:From:To; DKIM-Signature: a=rsa-sha256; b=ejS8RfGtwhSIzNILhBE+GfqGSKVqjTBJfJumM9yLGDi1FsCLN38p7DUWhb/S8jzQQQDZ6P8E2YVgL2tQkqIp+zW2nce7gE5ITK0ebZhvV0Qq8GtcCiRko7qW8gSt6/bvdbj5J6C6YYsA80IFaCsW9D9jBgGPnxGWtv4Mj6xYdiLMg+e2qQVRWo+y76YxGx5vFrLuVs6bGxNGI6nvni0AhAEp63nXe3tJXVCFpSG6Z/FrMnxYAGObyGKcBCQiyH6zb4sRz5B9dY+Hv0IY3mtAhHBDnwdTipspkdfOYC7mGkdAhqI7Uj4+HLRUqKx72at4A1zcsII+S7RGZWskAW/7Ww==; s=purelymail1; d=purelymail.com; v=1; bh=obRvJsvI0AMb/ix0cSzT/JRmtpiHHEa2907FscAjVHg=; h=Feedback-ID:Received:Subject:From:To; Feedback-ID: 8937:2070:null:purelymail X-Pm-Original-To: control@debbugs.gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1102296812 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 17 Jan 2024 04:43:02 +0000 (UTC) Message-ID: <6cccbd91cb0d30590b9410ab75994243154f2414.camel@lunabee.space> Subject: From: Lilah Tascheter To: control@debbugs.gnu.org Date: Tue, 16 Jan 2024 22:43:01 -0600 Organization: Dissociation for Heresiographal Computation Content-Type: text/plain Content-Transfer-Encoding: 7bit User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 68525 close 68526 Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) close 68525 close 68526 From unknown Thu Jun 19 12:36:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 14 Feb 2024 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator