Github messages for voidlinux
 help / color / mirror / Atom feed
From: LaszloGombos <LaszloGombos@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] dracut: update to 059
Date: Thu, 19 Jan 2023 04:05:33 +0100	[thread overview]
Message-ID: <20230119030533.o3-ofd3COpPW9EMDuQN-NltiRORDuX14Zq05bKaSUXw@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41716@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 454 bytes --]

There is an updated pull request by LaszloGombos against master on the void-packages repository

https://github.com/LaszloGombos/void-packages master
https://github.com/void-linux/void-packages/pull/41716

dracut: update to 059
#### Testing the changes
- I tested the changes in this PR: **briefly**

I hope others from the community can help testing as well.

A patch file from https://github.com/void-linux/void-packages/pull/41716.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-41716.patch --]
[-- Type: text/x-diff, Size: 8300 bytes --]

From b811346615608de188d993c7b23dab144c31a068 Mon Sep 17 00:00:00 2001
From: Laszlo Gombos <laszlo.gombos@gmail.com>
Date: Thu, 19 Jan 2023 03:02:23 +0000
Subject: [PATCH] dracut: update to 059

---
 srcpkgs/dracut/patches/force_poweroff.patch  | 31 ++++++++++----
 srcpkgs/dracut/patches/kmod-fix.patch        | 15 -------
 srcpkgs/dracut/patches/musl-__wordsize.patch | 15 -------
 srcpkgs/dracut/patches/network.patch         | 44 ++++++++++----------
 srcpkgs/dracut/template                      | 17 ++++----
 5 files changed, 54 insertions(+), 68 deletions(-)
 delete mode 100644 srcpkgs/dracut/patches/kmod-fix.patch
 delete mode 100644 srcpkgs/dracut/patches/musl-__wordsize.patch

diff --git a/srcpkgs/dracut/patches/force_poweroff.patch b/srcpkgs/dracut/patches/force_poweroff.patch
index 655746cc3745..9056685e32b9 100644
--- a/srcpkgs/dracut/patches/force_poweroff.patch
+++ b/srcpkgs/dracut/patches/force_poweroff.patch
@@ -1,17 +1,30 @@
+The shutdown binary is actually provided by runit and expects the runit
+init to be running. This is not the case in the initramfs. Forcing the
+shutdown, halt or reboot is necessary to ignore this requirement.
+
+---
+ modules.d/99base/dracut-lib.sh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
 --- a/modules.d/99base/dracut-lib.sh
 +++ b/modules.d/99base/dracut-lib.sh
-@@ -1128,11 +1128,11 @@
- 
+@@ -1004,13 +1004,13 @@ emergency_shell() {
+
      case "$_emergency_action" in
          reboot)
--            reboot || exit 1;;
-+            reboot -f || exit 1;;
+-            reboot || exit 1
++            reboot -f || exit 1
+             ;;
          poweroff)
--            poweroff || exit 1;;
-+            poweroff -f || exit 1;;
+-            poweroff || exit 1
++            poweroff -f || exit 1
+             ;;
          halt)
--            halt || exit 1;;
-+            halt -f || exit 1;;
+-            halt || exit 1
++            halt -f || exit 1
+             ;;
      esac
  }
- 
+--
+2.37.3
diff --git a/srcpkgs/dracut/patches/kmod-fix.patch b/srcpkgs/dracut/patches/kmod-fix.patch
deleted file mode 100644
index fcde1eb76dc4..000000000000
--- a/srcpkgs/dracut/patches/kmod-fix.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-The depmod program from kmod>=30 looks for modules.builtin.modinfo and throws a
-warning when it isn't found. Newer versions of dracut pull in this file as well
-as modules.builtin.alias, so let's pull this in here and avoid the warning.
-
---- a/dracut-init.sh
-+++ b/dracut-init.sh
-@@ -982,7 +982,7 @@
- }
- 
- dracut_kernel_post() {
--    for _f in modules.builtin.bin modules.builtin modules.order; do
-+    for _f in modules.builtin.{bin,alias,modinfo} modules.builtin modules.order; do
-         [[ -e $srcmods/$_f ]] && inst_simple "$srcmods/$_f" "/lib/modules/$kernel/$_f"
-     done
- 
diff --git a/srcpkgs/dracut/patches/musl-__wordsize.patch b/srcpkgs/dracut/patches/musl-__wordsize.patch
deleted file mode 100644
index 7a8b40a29034..000000000000
--- a/srcpkgs/dracut/patches/musl-__wordsize.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-For musl libc it is required to include <sys/reg.h> to
-have __WORDSIZE defined to e.g. 32 for arm*-musl.
-
---- a/install/util.h	2015-06-15 12:27:21.000000000 +0200
-+++ b/install/util.h	2015-09-02 09:07:57.321104222 +0200
-@@ -33,6 +33,9 @@
- #include <signal.h>
- #include <sched.h>
- #include <limits.h>
-+#if !defined(__GLIBC__)
-+#include <sys/reg.h>
-+#endif
- #include <sys/stat.h>
- #include <dirent.h>
- #include <sys/resource.h>
diff --git a/srcpkgs/dracut/patches/network.patch b/srcpkgs/dracut/patches/network.patch
index 09f08e327503..ba8f9d23c4c3 100644
--- a/srcpkgs/dracut/patches/network.patch
+++ b/srcpkgs/dracut/patches/network.patch
@@ -1,32 +1,34 @@
-From 209812fe905ab8a66e0c131a1173dd46ee7c4cc7 Mon Sep 17 00:00:00 2001
+From 11a34f6b55f91610effd79ff1bf6a4bb2db760d3 Mon Sep 17 00:00:00 2001
 From: Laszlo Gombos <laszlo.gombos@gmail.com>
-Date: Wed, 18 Jan 2023 20:50:27 +0000
+Date: Wed, 18 Jan 2023 19:59:24 +0000
 Subject: [PATCH] meta module should check if module exists
 
 Bug: https://github.com/dracutdevs/dracut/issues/1756
 ---
- modules.d/40network/module-setup.sh | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
+ modules.d/40network/module-setup.sh | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
 
 diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
-index d30f496..a69978c 100755
+index ba7104d9..8f9e5bff 100755
 --- a/modules.d/40network/module-setup.sh
 +++ b/modules.d/40network/module-setup.sh
-@@ -17,11 +17,11 @@ depends() {
-         done;
- 
-         if [ -z "$network_handler" ]; then
--            if find_binary wicked  &>/dev/null ; then
-+            if [[ -d "$dracutbasedir"/modules.d/35network-wicked ]] && find_binary wicked  &>/dev/null ; then
-                 network_handler="network-wicked"
--            elif [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator ]]; then
-+            elif [[ -d "$dracutbasedir"/modules.d/35connman ]] && [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator ]]; then
-                 network_handler="network-manager"
--            else
-+            elif [[ -d "$dracutbasedir"/modules.d/35network-legacy ]]; then
-                 network_handler="network-legacy"
-             fi
+@@ -17,13 +17,13 @@ depends() {
+     done
+
+     if [ -z "$network_handler" ]; then
+-        if [[ -e $dracutsysrootdir$systemdsystemunitdir/connman.service ]]; then
++        if [[ -d "$dracutbasedir"/modules.d/35network-wicked ]] && [[ -e $dracutsysrootdir$systemdsystemunitdir/connman.service ]]; then
+             network_handler="connman"
+-        elif [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator ]] || [[ -x $dracutsysrootdir/usr/lib/nm-initrd-generator ]]; then
++        elif [[ -d "$dracutbasedir"/modules.d/35connman ]] && ( [[ -x $dracutsysrootdir/usr/libexec/nm-initrd-generator ]] || [[ -x $dracutsysrootdir/usr/lib/nm-initrd-generator ]] ); then
+             network_handler="network-manager"
+-        elif [[ -x $dracutsysrootdir$systemdutildir/systemd-networkd ]]; then
++        elif [[ -d "$dracutbasedir"/modules.d/35network-manager ]] && [[ -x $dracutsysrootdir$systemdutildir/systemd-networkd ]]; then
+             network_handler="systemd-networkd"
+-        else
++        elif [[ -d "$dracutbasedir"/modules.d/35network-legacy ]]; then
+             network_handler="network-legacy"
          fi
--- 
+     fi
+--
 2.34.1
-
diff --git a/srcpkgs/dracut/template b/srcpkgs/dracut/template
index 63153c5fe0bd..91f62ae000d0 100644
--- a/srcpkgs/dracut/template
+++ b/srcpkgs/dracut/template
@@ -1,20 +1,20 @@
 # Template file for 'dracut'
 pkgname=dracut
-reverts="056_1"
-version=053
-revision=7
+version=059
+revision=1
 build_style=configure
 configure_args="--prefix=/usr --sysconfdir=/etc"
 conf_files="/etc/dracut.conf"
-hostmakedepends="pkg-config"
+hostmakedepends="pkg-config asciidoc"
 makedepends="libkmod-devel"
 depends="bash coreutils cpio eudev gzip kmod>=3.7 kpartx util-linux"
 short_desc="Low-level tool for generating an initramfs/initrd image"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="Zach Dykstra <dykstra.zachary@gmail.com>"
 license="GPL-2.0-or-later, LGPL-2.0-or-later"
-homepage="http://www.kernel.org/pub/linux/utils/boot/dracut/dracut.html"
-distfiles="${KERNEL_SITE}/utils/boot/dracut/dracut-${version}.tar.xz"
-checksum=d5a1b47cdb07919d8225d5b5f538e6ae604988f3df0afbde99a8dc775277b726
+homepage="https://github.com/dracutdevs/dracut/wiki"
+changelog="https://raw.githubusercontent.com/dracutdevs/dracut/master/NEWS.md"
+distfiles="https://github.com/dracutdevs/dracut/archive/refs/tags/${version}.tar.gz"
+checksum=eabf0bb685420c1e1d5475b6855ef787104508f0135ff570312845256e0fcecf
 alternatives="
  initramfs:/etc/kernel.d/post-install/20-initramfs:/usr/libexec/dracut/kernel-hook-postinst
  initramfs:/etc/kernel.d/post-remove/20-initramfs:/usr/libexec/dracut/kernel-hook-postrm
@@ -61,6 +61,7 @@ post_install() {
 
 	rm ${DESTDIR}/usr/share/man/man8/*.service.*
 	rm -r ${DESTDIR}/usr/lib/kernel
+	echo "DRACUT_VERSION=%{version}-%{revision}" > ${DESTDIR}/usr/lib/dracut/dracut-version.sh
 }
 
 dracut-network_package() {

  parent reply	other threads:[~2023-01-19  3:05 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-18 13:31 [PR PATCH] " LaszloGombos
2023-01-18 13:34 ` [PR PATCH] [Updated] " LaszloGombos
2023-01-18 13:38 ` LaszloGombos
2023-01-18 13:42 ` LaszloGombos
2023-01-18 13:56 ` LaszloGombos
2023-01-18 14:02 ` LaszloGombos
2023-01-18 15:21 ` motorto
2023-01-18 16:15 ` [PR PATCH] [Updated] " LaszloGombos
2023-01-18 17:06 ` zdykstra
2023-01-18 17:25 ` [PR PATCH] [Updated] " LaszloGombos
2023-01-18 17:27 ` LaszloGombos
2023-01-18 17:31 ` zdykstra
2023-01-18 17:58 ` classabbyamp
2023-01-18 17:59 ` classabbyamp
2023-01-18 17:59 ` classabbyamp
2023-01-18 18:01 ` classabbyamp
2023-01-18 18:02 ` classabbyamp
2023-01-18 18:05 ` classabbyamp
2023-01-18 18:31 ` LaszloGombos
2023-01-18 18:32 ` LaszloGombos
2023-01-18 18:52 ` LaszloGombos
2023-01-18 20:16 ` LaszloGombos
2023-01-18 20:28 ` LaszloGombos
2023-01-18 21:00 ` [PR PATCH] [Updated] " LaszloGombos
2023-01-18 21:01 ` LaszloGombos
2023-01-18 21:22 ` zdykstra
2023-01-18 21:34 ` [PR PATCH] [Updated] " LaszloGombos
2023-01-18 21:35 ` LaszloGombos
2023-01-18 21:44 ` LaszloGombos
2023-01-19  0:12 ` mhmdanas
2023-01-19  0:58 ` [PR PATCH] [Updated] " LaszloGombos
2023-01-19  3:02 ` LaszloGombos
2023-01-19  3:05 ` LaszloGombos [this message]
2023-01-19  3:26 ` LaszloGombos
2023-01-19  5:07 ` [PR REVIEW] " ahesford
2023-01-19  5:25 ` ahesford
2023-01-19 17:37 ` [PR PATCH] [Updated] " LaszloGombos
2023-01-19 17:38 ` [PR REVIEW] " LaszloGombos
2023-01-19 18:03 ` [PR PATCH] [Updated] " ahesford
2023-01-19 18:05 ` [PR REVIEW] " ahesford
2023-01-19 18:05 ` ahesford
2023-01-19 19:10 ` [PR PATCH] [Updated] " LaszloGombos
2023-01-19 19:41 ` [PR REVIEW] " LaszloGombos
2023-01-19 20:13 ` classabbyamp
2023-01-19 20:16 ` [PR REVIEW] " ahesford
2023-01-19 20:30 ` [PR PATCH] [Updated] " LaszloGombos
2023-01-19 20:30 ` [PR REVIEW] " LaszloGombos
2023-01-19 20:33 ` [PR PATCH] [Updated] " LaszloGombos
2023-01-21 14:49 ` motorto
2023-01-22  1:52 ` classabbyamp
2023-01-22  1:55 ` classabbyamp
2023-01-22  2:55 ` [PR PATCH] [Merged]: " ahesford
2023-03-02  1:22 ` LaszloGombos
2023-03-02  1:30 ` zdykstra

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=20230119030533.o3-ofd3COpPW9EMDuQN-NltiRORDuX14Zq05bKaSUXw@z \
    --to=laszlogombos@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).