summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2023-06-29 18:15:30 +0800
committerSteve Sakoman <steve@sakoman.com>2023-07-04 05:32:29 -1000
commit548b503e6dfd11a8ad4bd2ff514a6d918505be9d (patch)
treed83ed3a5b5a5322b4009d499fd49a32515905583 /meta/recipes-core/systemd
parent3ee2522d8a879c13dd0cc394be6fc9b385b5f68f (diff)
downloadpoky-548b503e6dfd11a8ad4bd2ff514a6d918505be9d.tar.gz
systemd: fix a dead link under /var/log
Commit 6fe23ff31c0 changed README to a symlink to README.logs, and install README.logs under systemd doc dir. But for OE, systemd doc dir is splited into package systemd-doc, when it is not installed on the target, there will be an dead link: Eg: root@intel-x86-64:/var/log# ls -l README lrwxrwxrwx 1 root root 39 Jun 20 08:57 README -> ../../usr/share/doc/systemd/README.logs root@intel-x86-64:/var/log# ls -l ../../usr/share/doc/systemd/README.logs ls: cannot access '../../usr/share/doc/systemd/README.logs': No such file or directory Meantime, relative path for a symlink also will meet issue like "No such file or directory" Since OE have set ForwardToSyslog=yes, this README is not needed. So remove this symlink from package systemd (From OE-Core rev: 7702dc8fc6c9b34647067ffabbc0e24d6109abe7) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-core/systemd')
-rw-r--r--meta/recipes-core/systemd/systemd/0001-legacy.conf.in-Don-t-create-symlink-README-in-this-f.patch42
-rw-r--r--meta/recipes-core/systemd/systemd_253.1.bb1
2 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0001-legacy.conf.in-Don-t-create-symlink-README-in-this-f.patch b/meta/recipes-core/systemd/systemd/0001-legacy.conf.in-Don-t-create-symlink-README-in-this-f.patch
new file mode 100644
index 0000000000..a2644bba8e
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/0001-legacy.conf.in-Don-t-create-symlink-README-in-this-f.patch
@@ -0,0 +1,42 @@
1From b17826490c1db2051dda23550ebdcd7f10e23479 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Wed, 28 Jun 2023 13:49:41 +0800
4Subject: [PATCH 1/2] legacy.conf.in: Don't create symlink README in this file
5
6Commit 6fe23ff31c0 changed README to an symlink to README.logs, and
7install README.logs under systemd doc dir.
8
9But for OE, systemd doc dir is splited into package systemd-doc, when it
10is not installed on the target, there will be an dead link:
11Eg:
12root@intel-x86-64:/var/log# ls -l README
13lrwxrwxrwx 1 root root 39 Jun 20 08:57 README -> ../../usr/share/doc/systemd/README.logs
14root@intel-x86-64:/var/log# ls -l ../../usr/share/doc/systemd/README.logs
15ls: cannot access '../../usr/share/doc/systemd/README.logs': No such file or directory
16
17So remove this symlink from package systemd
18
19Upstream-Status: Inappropriate [oe specific]
20
21Signed-off-by: Changqing Li <changqing.li@windriver.com>
22---
23 tmpfiles.d/legacy.conf.in | 3 ---
24 1 file changed, 3 deletions(-)
25
26diff --git a/tmpfiles.d/legacy.conf.in b/tmpfiles.d/legacy.conf.in
27index 4f2c0d7c43..62e2ae0986 100644
28--- a/tmpfiles.d/legacy.conf.in
29+++ b/tmpfiles.d/legacy.conf.in
30@@ -12,9 +12,6 @@
31
32 d /run/lock 0755 root root -
33 L /var/lock - - - - ../run/lock
34-{% if CREATE_LOG_DIRS %}
35-L /var/log/README - - - - ../..{{DOC_DIR}}/README.logs
36-{% endif %}
37
38 # /run/lock/subsys is used for serializing SysV service execution, and
39 # hence without use on SysV-less systems.
40--
412.25.1
42
diff --git a/meta/recipes-core/systemd/systemd_253.1.bb b/meta/recipes-core/systemd/systemd_253.1.bb
index f306765168..59a0ab757f 100644
--- a/meta/recipes-core/systemd/systemd_253.1.bb
+++ b/meta/recipes-core/systemd/systemd_253.1.bb
@@ -25,6 +25,7 @@ SRC_URI += " \
25 file://0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch \ 25 file://0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch \
26 file://0008-implment-systemd-sysv-install-for-OE.patch \ 26 file://0008-implment-systemd-sysv-install-for-OE.patch \
27 file://0004-Move-sysusers.d-sysctl.d-binfmt.d-modules-load.d-to-.patch \ 27 file://0004-Move-sysusers.d-sysctl.d-binfmt.d-modules-load.d-to-.patch \
28 file://0001-legacy.conf.in-Don-t-create-symlink-README-in-this-f.patch \
28 " 29 "
29 30
30# patches needed by musl 31# patches needed by musl