dracut: Drop an unnecessary patch

Dropped 0001-util.h-include-sys-reg.h-when-libc-glibc.patch
that's unnecessary for a long time now, because dracut
(since version 049) does not rely on __WORDSIZE.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Zoltán Böszörményi 2024-06-10 12:24:55 +02:00 committed by Khem Raj
parent 0ec2b7aab2
commit b235b47cb6
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 0 additions and 36 deletions

View File

@ -1,35 +0,0 @@
From 9f7740c4c2fda64029c23674e9858ce8bd4367df Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 13 Jul 2017 17:14:05 -0700
Subject: [PATCH] util.h: include <sys/reg.h> when libc != glibc
For musl libc it is required to include <sys/reg.h> to
have __WORDSIZE defined to e.g. 32 for arm*-musl.
Taken from void-linux
https://github.com/voidlinux/void-packages/blob/master/srcpkgs/dracut/patches/musl-__wordsize.patch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Pending
src/install/util.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/install/util.h b/src/install/util.h
index a6f9a184..82732913 100644
--- a/src/install/util.h
+++ b/src/install/util.h
@@ -36,6 +36,9 @@
#include <sys/stat.h>
#include <dirent.h>
#include <sys/resource.h>
+#if !defined(__GLIBC__)
+#include <sys/reg.h>
+#endif
#include "macro.h"
--
2.17.1

View File

@ -9,7 +9,6 @@ PE = "1"
SRCREV = "1a8ee6e00bbe017717a5ef9e9bcfefb3b88f629e"
SRC_URI = "git://github.com/dracut-ng/dracut-ng.git;protocol=http;branch=main \
file://0001-util.h-include-sys-reg.h-when-libc-glibc.patch \
file://0001-feat-dracut-install-split-ldd-command-arguments-for-.patch \
"