Blame 0001-fix-systemd-explicitly-install-some-libs-that-will-n.patch

Adam Williamson de8cf4
From 04b362d713235459cff1f370efb4cd5e36e4a358 Mon Sep 17 00:00:00 2001
Adam Williamson de8cf4
From: Antonio Alvarez Feijoo <antonio.feijoo@suse.com>
Adam Williamson de8cf4
Date: Thu, 4 Apr 2024 13:49:26 +0200
Adam Williamson de8cf4
Subject: [PATCH] fix(systemd): explicitly install some libs that will not be
Adam Williamson de8cf4
 statically included
Adam Williamson de8cf4
Adam Williamson de8cf4
Some required libraries that used to be statically included are in the process
Adam Williamson de8cf4
to be opened via `dlopen()`.
Adam Williamson de8cf4
Adam Williamson de8cf4
References:
Adam Williamson de8cf4
- https://github.com/systemd/systemd/pull/31131
Adam Williamson de8cf4
- https://github.com/systemd/systemd/pull/31550
Adam Williamson de8cf4
- https://github.com/systemd/systemd/pull/32019
Adam Williamson de8cf4
Adam Williamson de8cf4
Closes #2642
Adam Williamson de8cf4
---
Adam Williamson de8cf4
 modules.d/00systemd/module-setup.sh          | 2 ++
Adam Williamson de8cf4
 modules.d/01systemd-coredump/module-setup.sh | 7 +++++++
Adam Williamson de8cf4
 modules.d/01systemd-journald/module-setup.sh | 5 +++--
Adam Williamson de8cf4
 3 files changed, 12 insertions(+), 2 deletions(-)
Adam Williamson de8cf4
Adam Williamson de8cf4
diff --git a/modules.d/00systemd/module-setup.sh b/modules.d/00systemd/module-setup.sh
Adam Williamson de8cf4
index 66e08ea6..72341746 100755
Adam Williamson de8cf4
--- a/modules.d/00systemd/module-setup.sh
Adam Williamson de8cf4
+++ b/modules.d/00systemd/module-setup.sh
Adam Williamson de8cf4
@@ -260,6 +260,8 @@ EOF
Adam Williamson de8cf4
     # Install library file(s)
Adam Williamson de8cf4
     _arch=${DRACUT_ARCH:-$(uname -m)}
Adam Williamson de8cf4
     inst_libdir_file \
Adam Williamson de8cf4
+        {"tls/$_arch/",tls/,"$_arch/",}"libgcrypt.so*" \
Adam Williamson de8cf4
+        {"tls/$_arch/",tls/,"$_arch/",}"libkmod.so*" \
Adam Williamson de8cf4
         {"tls/$_arch/",tls/,"$_arch/",}"libnss_*"
Adam Williamson de8cf4
 
Adam Williamson de8cf4
 }
Adam Williamson de8cf4
diff --git a/modules.d/01systemd-coredump/module-setup.sh b/modules.d/01systemd-coredump/module-setup.sh
Adam Williamson de8cf4
index 69ec9668..47666b6c 100755
Adam Williamson de8cf4
--- a/modules.d/01systemd-coredump/module-setup.sh
Adam Williamson de8cf4
+++ b/modules.d/01systemd-coredump/module-setup.sh
Adam Williamson de8cf4
@@ -40,6 +40,13 @@ install() {
Adam Williamson de8cf4
         "$sysusers"/systemd-coredump.conf \
Adam Williamson de8cf4
         coredumpctl
Adam Williamson de8cf4
 
Adam Williamson de8cf4
+    # Install library file(s)
Adam Williamson de8cf4
+    _arch=${DRACUT_ARCH:-$(uname -m)}
Adam Williamson de8cf4
+    inst_libdir_file \
Adam Williamson de8cf4
+        {"tls/$_arch/",tls/,"$_arch/",}"liblz4.so.*" \
Adam Williamson de8cf4
+        {"tls/$_arch/",tls/,"$_arch/",}"liblzma.so.*" \
Adam Williamson de8cf4
+        {"tls/$_arch/",tls/,"$_arch/",}"libzstd.so.*"
Adam Williamson de8cf4
+
Adam Williamson de8cf4
     # Install the hosts local user configurations if enabled.
Adam Williamson de8cf4
     if [[ $hostonly ]]; then
Adam Williamson de8cf4
         inst_multiple -H -o \
Adam Williamson de8cf4
diff --git a/modules.d/01systemd-journald/module-setup.sh b/modules.d/01systemd-journald/module-setup.sh
Adam Williamson de8cf4
index 3cf2a1a1..276e7528 100755
Adam Williamson de8cf4
--- a/modules.d/01systemd-journald/module-setup.sh
Adam Williamson de8cf4
+++ b/modules.d/01systemd-journald/module-setup.sh
Adam Williamson de8cf4
@@ -53,9 +53,10 @@ install() {
Adam Williamson de8cf4
     # Install library file(s)
Adam Williamson de8cf4
     _arch=${DRACUT_ARCH:-$(uname -m)}
Adam Williamson de8cf4
     inst_libdir_file \
Adam Williamson de8cf4
+        {"tls/$_arch/",tls/,"$_arch/",}"libgcrypt.so*" \
Adam Williamson de8cf4
         {"tls/$_arch/",tls/,"$_arch/",}"liblz4.so.*" \
Adam Williamson de8cf4
-        {"tls/$_arch/",tls/,"$_arch/",}"libzstd.so.*" \
Adam Williamson de8cf4
-        {"tls/$_arch/",tls/,"$_arch/",}"liblzma.so.*"
Adam Williamson de8cf4
+        {"tls/$_arch/",tls/,"$_arch/",}"liblzma.so.*" \
Adam Williamson de8cf4
+        {"tls/$_arch/",tls/,"$_arch/",}"libzstd.so.*"
Adam Williamson de8cf4
 
Adam Williamson de8cf4
     # Install the hosts local user configurations if enabled.
Adam Williamson de8cf4
     if [[ $hostonly ]]; then
Adam Williamson de8cf4
-- 
Adam Williamson de8cf4
2.44.0
Adam Williamson de8cf4