* [PR PATCH] Mkinitcpio 35.2
@ 2023-04-05 14:58 ahesford
2023-04-06 19:32 ` [PR PATCH] [Closed]: " ahesford
0 siblings, 1 reply; 2+ messages in thread
From: ahesford @ 2023-04-05 14:58 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 386 bytes --]
There is a new pull request by ahesford against master on the void-packages repository
https://github.com/ahesford/void-packages mkinitcpio-35.2
https://github.com/void-linux/void-packages/pull/43285
Mkinitcpio 35.2
#### Testing the changes
- I tested the changes in this PR: **in progress**
A patch file from https://github.com/void-linux/void-packages/pull/43285.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mkinitcpio-35.2-43285.patch --]
[-- Type: text/x-diff, Size: 10219 bytes --]
From cbe9df840c6d881694b111aa478c5ccf264ba948 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Wed, 5 Apr 2023 10:53:40 -0400
Subject: [PATCH 1/3] New package: bats-support-0.3.0
---
srcpkgs/bats-support/template | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 srcpkgs/bats-support/template
diff --git a/srcpkgs/bats-support/template b/srcpkgs/bats-support/template
new file mode 100644
index 000000000000..2c276ff2c577
--- /dev/null
+++ b/srcpkgs/bats-support/template
@@ -0,0 +1,28 @@
+# Template file for 'bats-support'
+pkgname=bats-support
+version=0.3.0
+revision=1
+depends="bats"
+checkdepends="$depends"
+short_desc="Supporting library for BATS test helpers"
+maintainer="Andrew J. Hesford <ajh@sideband.org>"
+license="CC0-1.0"
+homepage="https://github.com/bats-core/bats-support"
+distfiles="${homepage}/archive/v${version}.tar.gz"
+checksum=7815237aafeb42ddcc1b8c698fc5808026d33317d8701d5ec2396e9634e2918f
+
+do_check() {
+ bats test
+}
+
+do_install() {
+ local f
+
+ for f in *.bash; do
+ vinstall "$f" 644 usr/lib/bats-support
+ done
+
+ for f in src/*.bash; do
+ vinstall "$f" 644 usr/lib/bats-support/src
+ done
+}
From 8f20a7e048852554d5e911f324460f3abc0980f2 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Wed, 5 Apr 2023 10:53:50 -0400
Subject: [PATCH 2/3] New package: bats-assert-2.1.0
---
srcpkgs/bats-assert/template | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 srcpkgs/bats-assert/template
diff --git a/srcpkgs/bats-assert/template b/srcpkgs/bats-assert/template
new file mode 100644
index 000000000000..a831812ff6a8
--- /dev/null
+++ b/srcpkgs/bats-assert/template
@@ -0,0 +1,28 @@
+# Template file for 'bats-assert'
+pkgname=bats-assert
+version=2.1.0
+revision=1
+depends="bats bats-support"
+checkdepends="$depends"
+short_desc="Common assertions for BATS"
+maintainer="Andrew J. Hesford <ajh@sideband.org>"
+license="CC0-1.0"
+homepage="https://github.com/bats-core/bats-assert"
+distfiles="${homepage}/archive/v${version}.tar.gz"
+checksum=98ca3b685f8b8993e48ec057565e6e2abcc541034ed5b0e81f191505682037fd
+
+do_check() {
+ BATS_LIB_PATH=/usr/lib bats test
+}
+
+do_install() {
+ local f
+
+ for f in *.bash; do
+ vinstall "$f" 644 usr/lib/bats-assert
+ done
+
+ for f in src/*.bash; do
+ vinstall "$f" 644 usr/lib/bats-assert/src
+ done
+}
From 6e05a342d63e137d1083c0a57f508b138892a2c7 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Wed, 5 Apr 2023 10:57:28 -0400
Subject: [PATCH 3/3] mkinitcpio: update to 35.2.
---
.../patches/default-to-runit-init.patch | 2 +-
srcpkgs/mkinitcpio/patches/fix-depmod.patch | 30 -------------------
srcpkgs/mkinitcpio/patches/gzip-default.patch | 26 ++++++++--------
srcpkgs/mkinitcpio/patches/use-rc-conf.patch | 16 +++++-----
srcpkgs/mkinitcpio/template | 12 +++-----
5 files changed, 26 insertions(+), 60 deletions(-)
delete mode 100644 srcpkgs/mkinitcpio/patches/fix-depmod.patch
diff --git a/srcpkgs/mkinitcpio/patches/default-to-runit-init.patch b/srcpkgs/mkinitcpio/patches/default-to-runit-init.patch
index a1a89d03a2d6..e40395bc098b 100644
--- a/srcpkgs/mkinitcpio/patches/default-to-runit-init.patch
+++ b/srcpkgs/mkinitcpio/patches/default-to-runit-init.patch
@@ -11,7 +11,7 @@ diff --git a/init b/init
index 4891ed8..7534d23 100644
--- a/init
+++ b/init
-@@ -2,7 +2,7 @@
+@@ -5,7 +5,7 @@
udevd_running=0
mount_handler=default_mount_handler
diff --git a/srcpkgs/mkinitcpio/patches/fix-depmod.patch b/srcpkgs/mkinitcpio/patches/fix-depmod.patch
deleted file mode 100644
index 55e5e7bb3a1d..000000000000
--- a/srcpkgs/mkinitcpio/patches/fix-depmod.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From e629e34f18141a6244eaac2f0288d7b2a5d669ee Mon Sep 17 00:00:00 2001
-From: Chih-Hsuan Yen <yan12125@gmail.com>
-Date: Sun, 3 Jul 2022 11:03:10 +0800
-Subject: [PATCH] Fix the warning about missing modules.builtin.modinfo
-
-> depmod: WARNING: could not open modules.builtin.modinfo at /tmp/mkinitcpio.EftMSK/root/lib/modules/5.15.52-1-lts: No such file or directory
-
-kmod wants modules.builtin.modinfo since v30 [1].
-
-Also adds modules.order as suggested by heftig. That file is used (if
-exists) since the first commit of depmod.
-
-[1] https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/commit/?id=0246e06340df292b5dda4bc00e24cc9ae894e881
----
- functions | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/functions b/functions
-index 48cfd7a..e77a4c4 100644
---- a/functions
-+++ b/functions
-@@ -876,7 +876,7 @@ install_modules() {
- (( ${#zst_comp[*]} )) && zstd -d --rm -q "${zst_comp[@]}"
-
- msg "Generating module dependencies"
-- install -m644 -t "$moduledest" "$_d_kmoduledir"/modules.builtin
-+ install -m644 -t "$moduledest" "$_d_kmoduledir"/modules.{builtin,builtin.modinfo,order}
-
- # we install all modules into kernel/, making the .order file incorrect for
- # the module tree. munge it, so that we have an accurate index. This avoids
diff --git a/srcpkgs/mkinitcpio/patches/gzip-default.patch b/srcpkgs/mkinitcpio/patches/gzip-default.patch
index 7d6365a38f81..2ede9f30715a 100644
--- a/srcpkgs/mkinitcpio/patches/gzip-default.patch
+++ b/srcpkgs/mkinitcpio/patches/gzip-default.patch
@@ -1,10 +1,10 @@
Because not all Void kernels may support zstd, change the default initramfs
compression to gzip.
-diff -ur a/man/mkinitcpio.conf.5.txt b/man/mkinitcpio.conf.5.txt
---- a/man/mkinitcpio.conf.5.txt 2021-02-16 21:37:31.000000000 -0500
-+++ b/man/mkinitcpio.conf.5.txt 2021-05-17 09:33:32.418504652 -0400
-@@ -55,7 +55,7 @@
+diff -ur a/man/mkinitcpio.conf.5.adoc b/man/mkinitcpio.conf.5.adoc
+--- a/man/mkinitcpio.conf.5.adoc
++++ b/man/mkinitcpio.conf.5.adoc
+@@ -56,7 +56,7 @@
Defines a program to filter the generated image through. The kernel
understands the compression formats yielded by the *zstd*, *gzip*, *bzip2*,
*lz4*, *lzop*, *lzma*, and *xz* compressors. If unspecified, this setting
@@ -14,22 +14,22 @@ diff -ur a/man/mkinitcpio.conf.5.txt b/man/mkinitcpio.conf.5.txt
+
It's not hard to realize that a filter such as a *tac* or *rev* will cause
diff -ur a/mkinitcpio b/mkinitcpio
---- a/mkinitcpio 2021-02-16 21:37:31.000000000 -0500
-+++ b/mkinitcpio 2021-05-17 09:34:15.970588222 -0400
-@@ -508,7 +508,7 @@
- die 'Unable to write to %s' "$_optgenimg"
+--- a/mkinitcpio
++++ b/mkinitcpio
+@@ -856,7 +856,7 @@
+ die "Unable to write to '%s'" "$_optgenimg"
fi
-- _optcompress=${_optcompress:-${COMPRESSION:-zstd}}
-+ _optcompress=${_optcompress:-${COMPRESSION:-gzip}}
+- _optcompress="${_optcompress:-"${COMPRESSION:-zstd}"}"
++ _optcompress="${_optcompress:-"${COMPRESSION:-gzip}"}"
if ! type -P "$_optcompress" >/dev/null; then
- warning "Unable to locate compression method: %s" "$_optcompress"
- _optcompress=cat
+ warning "Unable to locate compression method: '%s'" "$_optcompress"
+ _optcompress='cat'
diff -ur a/mkinitcpio.conf b/mkinitcpio.conf
--- a/mkinitcpio.conf 2021-02-16 21:37:31.000000000 -0500
+++ b/mkinitcpio.conf 2021-05-17 09:34:24.752605714 -0400
@@ -52,7 +52,7 @@
- HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)
+ HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block filesystems fsck)
# COMPRESSION
-# Use this to compress the initramfs image. By default, zstd compression
diff --git a/srcpkgs/mkinitcpio/patches/use-rc-conf.patch b/srcpkgs/mkinitcpio/patches/use-rc-conf.patch
index 1073708ff9b5..5796c6d1c1d6 100644
--- a/srcpkgs/mkinitcpio/patches/use-rc-conf.patch
+++ b/srcpkgs/mkinitcpio/patches/use-rc-conf.patch
@@ -14,25 +14,25 @@ diff --git a/install/consolefont b/install/consolefont
index c10b65d..dad38e2 100644
--- a/install/consolefont
+++ b/install/consolefont
-@@ -3,7 +3,7 @@
- build() {
+@@ -9,7 +9,7 @@
# subshell to avoid namespace pollution
(
+ # shellcheck disable=SC1091
- [[ -s /etc/vconsole.conf ]] && . /etc/vconsole.conf
+ [[ -s /etc/rc.conf ]] && . /etc/rc.conf
- if [[ $FONT ]]; then
- for file in "/usr/share/kbd/consolefonts/$FONT".@(fnt|psf?(u))?(.gz); do
+ if [[ -n "$FONT" ]]; then
+ for file in "/usr/share/kbd/consolefonts/$FONT".@(fnt|psf?(u))?(.gz|.zst); do
diff --git a/install/keymap b/install/keymap
index 7de6acb..beb4f7f 100644
--- a/install/keymap
+++ b/install/keymap
-@@ -7,7 +7,7 @@ build() {
- l=$LANG
+@@ -12,7 +12,7 @@ build() {
+ l="$LANG"
unset LANG
- for cfg in /etc/{vconsole,locale}.conf; do
+ for cfg in /etc/{rc,locale}.conf; do
- [[ -s $cfg ]] && . "$cfg"
+ # shellcheck disable=SC1090
+ [[ -s "$cfg" ]] && . "$cfg"
done
-
diff --git a/srcpkgs/mkinitcpio/template b/srcpkgs/mkinitcpio/template
index c9a6b62f26c6..80b06163ade0 100644
--- a/srcpkgs/mkinitcpio/template
+++ b/srcpkgs/mkinitcpio/template
@@ -1,17 +1,17 @@
# Template file for 'mkinitcpio'
pkgname=mkinitcpio
-version=31
-revision=3
+version=35.2
+revision=1
build_style=gnu-makefile
hostmakedepends="asciidoc"
depends="busybox-static bsdtar bash"
-checkdepends="busybox-static"
+checkdepends="busybox-static bats-assert lz4 xz zstd"
short_desc="Next generation of initramfs creation"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-2.0-only"
homepage="https://git.archlinux.org/mkinitcpio.git"
distfiles="https://sources.archlinux.org/other/${pkgname}/${pkgname}-${version}.tar.gz"
-checksum=8f2811250b852ab78375bf90e1a7430daa132e57e128b0f6eaadddd9b27bbc63
+checksum=1627dd3de027e9497db054d04799db8e1bf2adcf59a4f36b0c04613b58758c99
conf_files="/etc/mkinitcpio.conf"
alternatives="
initramfs:/etc/kernel.d/post-install/20-initramfs:/usr/libexec/mkinitcpio/kernel-hook-postinst
@@ -19,10 +19,6 @@ alternatives="
"
replaces="mkinitcpio-udev>=0"
-pre_check() {
- sed -i -e '1s,/lib/initcpio/busybox,/usr/bin/busybox.static,' test/*
-}
-
post_install() {
# Install udev hooks
vinstall ${FILESDIR}/udev_hook 644 usr/lib/initcpio/hooks udev
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Closed]: Mkinitcpio 35.2
2023-04-05 14:58 [PR PATCH] Mkinitcpio 35.2 ahesford
@ 2023-04-06 19:32 ` ahesford
0 siblings, 0 replies; 2+ messages in thread
From: ahesford @ 2023-04-06 19:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 225 bytes --]
There's a closed pull request on the void-packages repository
Mkinitcpio 35.2
https://github.com/void-linux/void-packages/pull/43285
Description:
#### Testing the changes
- I tested the changes in this PR: **in progress**
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-06 19:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-05 14:58 [PR PATCH] Mkinitcpio 35.2 ahesford
2023-04-06 19:32 ` [PR PATCH] [Closed]: " ahesford
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).