diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-05-10 16:25:04 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-05-10 16:26:26 +0800 |
commit | 740ee46aeff1a6b24b77f44a55968d690e739c36 (patch) | |
tree | 7b8725b504a9560dc53299d8b554fac6b09426bd | |
parent | 9ae3d8ad311e538d55b0dc6cd4f17de7ba1dd35f (diff) |
systemd: Fix runtime issues exploited by GCC 13 (#5254)
Switch to "meson setup" from the plain "meson" by the way.
-rw-r--r-- | chapter08/systemd.xml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/chapter08/systemd.xml b/chapter08/systemd.xml index 31d89e01a..545f47889 100644 --- a/chapter08/systemd.xml +++ b/chapter08/systemd.xml @@ -40,6 +40,19 @@ <sect2 role="installation"> <title>Installation of systemd</title> + <para> + Remove several inappropriate uses of the <literal>pure</literal> + attribute or they'd cause runtime issues when the package is built + with GCC 13 or later: + </para> + +<screen><userinput remap='pre'>sed '/bus_message_type_from_string/s/_pure_//' \ + -i src/libsystemd/sd-bus/bus-internal.h && +sed '/devt_hash_func/s/_pure_//' \ + -i src/basic/hash-funcs.h && +sed '/job_get_timeout/s/_pure_//' \ + -i src/core/job.h</userinput></screen> + <para>Remove two unneeded groups, <systemitem class="groupname">render</systemitem> and <systemitem class="groupname">sgx</systemitem>, from the default udev @@ -53,7 +66,8 @@ <screen><userinput remap="configure">mkdir -p build cd build -meson --prefix=/usr \ +meson setup \ + --prefix=/usr \ --buildtype=release \ -Ddefault-dnssec=no \ -Dfirstboot=false \ |