systemd: Fix runtime issues exploited by GCC 13 (#5254)

Switch to "meson setup" from the plain "meson" by the way.
This commit is contained in:
Xi Ruoyao 2023-05-10 16:25:04 +08:00
parent 9ae3d8ad31
commit 740ee46aef
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -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 &amp;&amp;
sed '/devt_hash_func/s/_pure_//' \
-i src/basic/hash-funcs.h &amp;&amp;
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 \