From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: systemd-boot-efistub-255.3
Date: Fri, 02 Feb 2024 23:34:37 +0100 [thread overview]
Message-ID: <20240202223437.AB2802162D@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42667@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 759 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages sysd-boot-stub
https://github.com/void-linux/void-packages/pull/42667
New package: systemd-boot-efistub-255.3
<!-- Uncomment relevant sections and delete options which are not applicable -->
see #42566
thoroughly untested atm, but it builds the efistub
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
A patch file from https://github.com/void-linux/void-packages/pull/42667.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sysd-boot-stub-42667.patch --]
[-- Type: text/x-diff, Size: 6486 bytes --]
From ac8a79e46ebd5993f0b52b670d3a348c299892ad Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Wed, 8 Mar 2023 19:24:00 -0500
Subject: [PATCH] New package: systemd-boot-efistub-255.3
---
.../patches/musl-wchar_t.patch | 62 +++++++++++++++
srcpkgs/systemd-boot-efistub/template | 78 +++++++++++++++++++
srcpkgs/ukify | 1 +
3 files changed, 141 insertions(+)
create mode 100644 srcpkgs/systemd-boot-efistub/patches/musl-wchar_t.patch
create mode 100644 srcpkgs/systemd-boot-efistub/template
create mode 120000 srcpkgs/ukify
diff --git a/srcpkgs/systemd-boot-efistub/patches/musl-wchar_t.patch b/srcpkgs/systemd-boot-efistub/patches/musl-wchar_t.patch
new file mode 100644
index 0000000000000..5c8e58a20b1f2
--- /dev/null
+++ b/srcpkgs/systemd-boot-efistub/patches/musl-wchar_t.patch
@@ -0,0 +1,62 @@
+diff --git a/src/fundamental/memory-util-fundamental.h b/src/fundamental/memory-util-fundamental.h
+index 78e2dbe..561e05f 100644
+--- a/src/fundamental/memory-util-fundamental.h
++++ b/src/fundamental/memory-util-fundamental.h
+@@ -1,11 +1,10 @@
+ /* SPDX-License-Identifier: LGPL-2.1-or-later */
+ #pragma once
+
+-#include <stddef.h>
+-
+ #if SD_BOOT
+ # include "efi-string.h"
+ #else
++# include <stddef.h>
+ # include <string.h>
+ #endif
+
+diff --git a/src/fundamental/string-util-fundamental.c b/src/fundamental/string-util-fundamental.c
+index a5bafc6..0d7c08a 100644
+--- a/src/fundamental/string-util-fundamental.c
++++ b/src/fundamental/string-util-fundamental.c
+@@ -4,8 +4,8 @@
+ # include <ctype.h>
+ #endif
+
+-#include "macro-fundamental.h"
+ #include "string-util-fundamental.h"
++#include "macro-fundamental.h"
+
+ sd_char *startswith(const sd_char *s, const sd_char *prefix) {
+ size_t l;
+diff --git a/src/boot/efi/efi.h b/src/boot/efi/efi.h
+index 5c34668..50fca66 100644
+--- a/src/boot/efi/efi.h
++++ b/src/boot/efi/efi.h
+@@ -1,6 +1,14 @@
+ /* SPDX-License-Identifier: LGPL-2.1-or-later */
+ #pragma once
+
++#if SD_BOOT
++#define __DEFINED_wchar_t
++/* uchar.h/wchar.h are not suitable for freestanding environments. */
++typedef __WCHAR_TYPE__ wchar_t;
++typedef __CHAR16_TYPE__ char16_t;
++typedef __CHAR32_TYPE__ char32_t;
++#endif
++
+ #include <stdarg.h>
+ #include <stdbool.h>
+ #include <stddef.h>
+@@ -9,11 +17,6 @@
+ #include "macro-fundamental.h"
+
+ #if SD_BOOT
+-/* uchar.h/wchar.h are not suitable for freestanding environments. */
+-typedef __WCHAR_TYPE__ wchar_t;
+-typedef __CHAR16_TYPE__ char16_t;
+-typedef __CHAR32_TYPE__ char32_t;
+-
+ /* Let's be paranoid and do some sanity checks. */
+ assert_cc(__STDC_HOSTED__ == 0);
+ assert_cc(sizeof(bool) == 1);
diff --git a/srcpkgs/systemd-boot-efistub/template b/srcpkgs/systemd-boot-efistub/template
new file mode 100644
index 0000000000000..a6d66172c09fb
--- /dev/null
+++ b/srcpkgs/systemd-boot-efistub/template
@@ -0,0 +1,78 @@
+# Template file for 'systemd-boot-efistub'
+pkgname=systemd-boot-efistub
+version=255.3
+revision=1
+build_style=meson
+configure_args="-Defi=true -Dman=enabled -Dbootloader=enabled
+ -Dsbat-distro=void -Dsbat-distro-summary=Void -Dsbat-distro-pkgname=${pkgname}
+ -Dsbat-distro-version="${version}_${revision}"
+ -Dsbat-distro-url=https://github.com/void-linux/void-packages/issues
+
+ -Dacl=disabled -Dkmod=disabled -Dselinux=disabled -Dsysusers=false -Dtmpfiles=false
+ -Dadm-group=false -Danalyze=false -Dapparmor=disabled -Daudit=disabled
+ -Dbacklight=false -Dbinfmt=false -Dbpf-framework=disabled -Dbzip2=disabled
+ -Dcoredump=false -Ddbus=disabled -Delfutils=disabled -Denvironment-d=false
+ -Dfdisk=disabled -Dgcrypt=disabled -Dglib=disabled -Dgshadow=false -Dgnutls=disabled
+ -Dhibernate=false -Dhostnamed=false -Didn=false -Dima=false -Dinitrd=false
+ -Dfirstboot=false -Dldconfig=false -Dlibcryptsetup=disabled -Dlibcurl=disabled
+ -Dlibfido2=disabled -Dlibidn=disabled -Dlibidn2=disabled -Dlibiptc=disabled -Dlocaled=false
+ -Dlogind=false -Dlz4=disabled -Dmachined=false -Dmicrohttpd=disabled -Dnetworkd=false
+ -Dnscd=false -Dnss-myhostname=false -Dnss-resolve=disabled -Dnss-systemd=false
+ -Doomd=false -Dopenssl=disabled -Dp11kit=disabled -Dpam=disabled -Dpcre2=disabled
+ -Dpolkit=disabled -Dportabled=false -Dpstore=false -Dpwquality=disabled
+ -Drandomseed=false -Dresolve=false -Drfkill=false -Dseccomp=disabled -Dsmack=false
+ -Dsysext=false -Dtimedated=false -Dtimesyncd=false -Dtpm=false -Dqrencode=disabled
+ -Dquotacheck=false -Duserdb=false -Dutmp=false -Dvconsole=false -Dwheel-group=false
+ -Dxdg-autostart=false -Dxkbcommon=disabled -Dxz=disabled -Dzlib=disabled -Dzstd=disabled
+ -Dtests=false -Dkernel-install=false -Dlink-boot-shared=false -Dstandalone-binaries=true"
+# most of these aren't needed for what we're building but it's easier than patching
+hostmakedepends="pkg-config gperf python3-Jinja2 python3-pyelftools libxslt docbook-xsl"
+makedepends="libcap-devel libmount-devel"
+short_desc="UEFI stub loader from systemd-boot"
+maintainer="classabbyamp <void@placeviolette.net>"
+license="LGPL-2.1-or-later"
+homepage="https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/"
+distfiles="https://github.com/systemd/systemd-stable/archive/refs/tags/v${version}.tar.gz"
+checksum=27807c65f969d0e0e44629dee8379e1e2c30e6c5e84be0389438c4ab1b225000
+make_check=no # missing printf.h
+
+if [ "${XBPS_TARGET_LIBC}" = glibc ]; then
+ makedepends+=" libxcrypt-devel"
+fi
+
+case "${XBPS_TARGET_MACHINE}" in
+ x86_64*) _efi_arch="x64" ;;
+ i686*) _efi_arch="ia32" ;;
+ aarch64*) _efi_arch="aa64" ;;
+ arm*) _efi_arch="arm" ;;
+ riscv64*) _efi_arch="riscv64" ;;
+ *) broken="unknown efi architecture" ;;
+esac
+
+_bins=(ukify)
+_mans=(man/ukify.1 man/systemd-stub.7)
+_efis=("src/boot/efi/linux${_efi_arch}.efi.stub")
+make_build_target="${_bins[*]} ${_mans[*]} ${_efis[*]}"
+
+do_install() {
+ for b in "${_bins[@]}"; do
+ vbin "build/$b"
+ done
+
+ for m in build/man/*.[0-9]; do
+ vman "$m"
+ done
+
+ for e in "${_efis[@]}"; do
+ vinstall "build/$e" 644 usr/lib/systemd/boot/efi
+ done
+}
+
+ukify_package() {
+ short_desc="Unified Kernel Image creation tool from systemd-boot"
+ depends="python3-pefile"
+ pkg_install() {
+ vmove usr/bin/ukify
+ vmove usr/share/man/man1/ukify.1
+ }
+}
diff --git a/srcpkgs/ukify b/srcpkgs/ukify
new file mode 120000
index 0000000000000..9258199038ee7
--- /dev/null
+++ b/srcpkgs/ukify
@@ -0,0 +1 @@
+systemd-boot-efistub
\ No newline at end of file
next prev parent reply other threads:[~2024-02-02 22:34 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-09 0:25 [PR PATCH] New package: systemd-boot-efistub-253 classabbyamp
2023-03-09 0:28 ` [PR PATCH] [Updated] " classabbyamp
2023-03-09 0:29 ` classabbyamp
2023-03-09 0:40 ` classabbyamp
2023-03-09 0:46 ` classabbyamp
2023-03-09 0:58 ` classabbyamp
2023-03-11 8:38 ` classabbyamp
2023-03-11 19:26 ` classabbyamp
2023-03-11 19:38 ` classabbyamp
2023-03-11 20:14 ` classabbyamp
2023-03-13 1:48 ` prez
2023-03-13 2:12 ` classabbyamp
2023-03-13 6:44 ` sonnysighedup
2023-03-13 6:45 ` sonnysighedup
2023-03-13 11:24 ` NymanMatthias
2023-03-14 22:18 ` prez
2023-03-14 22:23 ` prez
2023-03-15 4:32 ` 0x5c
2023-03-15 4:41 ` classabbyamp
2023-03-15 12:04 ` prez
2023-03-17 1:07 ` [PR PATCH] [Updated] " classabbyamp
2023-03-17 1:43 ` 0x5c
2023-03-30 12:31 ` [PR REVIEW] " prez
2023-03-30 12:31 ` prez
2023-04-02 19:48 ` prez
2023-04-02 20:00 ` classabbyamp
2023-04-25 11:57 ` junkmanner
2023-04-25 14:04 ` classabbyamp
2023-04-25 14:04 ` classabbyamp
2023-04-25 14:04 ` classabbyamp
2023-07-25 2:01 ` github-actions
2023-09-08 8:03 ` [PR PATCH] [Updated] " classabbyamp
2023-09-08 8:04 ` classabbyamp
2023-09-08 8:06 ` New package: systemd-boot-254.2 classabbyamp
2023-09-08 8:27 ` [PR PATCH] [Updated] " classabbyamp
2023-09-08 8:29 ` classabbyamp
2023-10-05 11:31 ` MeganerdNL
2023-10-05 11:32 ` MeganerdNL
2023-10-05 11:42 ` MeganerdNL
2023-10-05 12:18 ` classabbyamp
2023-10-05 12:43 ` MeganerdNL
2024-01-04 1:46 ` github-actions
2024-02-01 20:53 ` dkwo
2024-02-01 20:53 ` dkwo
2024-02-01 21:26 ` dkwo
2024-02-02 18:56 ` [PR PATCH] [Updated] " classabbyamp
2024-02-02 22:34 ` classabbyamp [this message]
2024-02-02 22:50 ` [PR PATCH] [Merged]: New package: systemd-boot-efistub-255.3 classabbyamp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240202223437.AB2802162D@inbox.vuxu.org \
--to=classabbyamp@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).