mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Apply fixes on systemd contributed by Eric Clothier
This commit is contained in:
parent
76b810bf91
commit
75646aed8c
@ -40,6 +40,16 @@
|
|||||||
appropriate for the entry or if needed the entire day's listitem.
|
appropriate for the entry or if needed the entire day's listitem.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>2024-12-23</para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem revision="systemd">
|
||||||
|
<para>[thomas] - Fix systemd instructions. Thanks to
|
||||||
|
Eric Clothier for preparing the patch.</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>2024-12-15</para>
|
<para>2024-12-15</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
@ -273,10 +273,13 @@ ninja test</userinput></screen>
|
|||||||
|
|
||||||
<screen><userinput remap="pre">rm -rf *</userinput></screen>
|
<screen><userinput remap="pre">rm -rf *</userinput></screen>
|
||||||
|
|
||||||
<para>Create a symlink to work around missing xsltproc:</para>
|
<!-- Remove the symlink to work around missing xsltproc
|
||||||
|
Man page generation will be properly supressed in meson options -->
|
||||||
|
|
||||||
|
<!-- para>Create a symlink to work around missing xsltproc:</para -->
|
||||||
|
|
||||||
<!-- screen><userinput remap="pre">ln -sf /tools/bin/true /usr/bin/xsltproc</userinput></screen -->
|
<!-- screen><userinput remap="pre">ln -sf /tools/bin/true /usr/bin/xsltproc</userinput></screen -->
|
||||||
<screen><userinput remap="pre">ln -sf /bin/true /usr/bin/xsltproc</userinput></screen>
|
<!-- screen><userinput remap="pre">ln -sf /bin/true /usr/bin/xsltproc</userinput></screen -->
|
||||||
|
|
||||||
<!-- with cross-LFS we have util-linux in place:
|
<!-- with cross-LFS we have util-linux in place:
|
||||||
<para>Because we have not yet installed the final version of Util-Linux,
|
<para>Because we have not yet installed the final version of Util-Linux,
|
||||||
@ -287,30 +290,33 @@ ninja test</userinput></screen>
|
|||||||
done</userinput></screen>
|
done</userinput></screen>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<!-- Match config switch style (-Dxxx -> -D xxx) to initial build above
|
||||||
|
Properly supress man page generation (-D man=disabled)
|
||||||
|
(Removes need for xsltproc symlink)
|
||||||
|
Remove deprecated switches that are duplicates/not needed
|
||||||
|
(-Drootlibdir deprecated, covered by libdir= option)
|
||||||
|
(-Db_lto not found in meson-options.txt, lto handled by mode switch)
|
||||||
|
(-Dblkid deprecated) -->
|
||||||
<para>Prepare systemd for compilation:</para>
|
<para>Prepare systemd for compilation:</para>
|
||||||
|
|
||||||
<screen><userinput remap="configure">PKG_CONFIG_PATH="/usr/lib32/pkgconfig" \
|
<screen><userinput remap="configure">PKG_CONFIG_PATH="/usr/lib32/pkgconfig" \
|
||||||
CC="gcc -m32 -march=i686" \
|
CC="gcc -m32" \
|
||||||
CXX="g++ -m32 -march=i686" \
|
CXX="g++ -m32" \
|
||||||
LANG=en_US.UTF-8 \
|
LANG=en_US.UTF-8 \
|
||||||
meson --prefix=/usr \
|
meson setup .. \
|
||||||
--sysconfdir=/etc \
|
--prefix=/usr \
|
||||||
--localstatedir=/var \
|
|
||||||
--libdir=/usr/lib32 \
|
--libdir=/usr/lib32 \
|
||||||
-Drootlibdir=/usr/lib32 \
|
--buildtype=release \
|
||||||
-Dblkid=true \
|
-D default-dnssec=no \
|
||||||
-Ddefault-dnssec=no \
|
-D firstboot=false \
|
||||||
-Dfirstboot=false \
|
-D install-tests=false \
|
||||||
-Dinstall-tests=false \
|
-D ldconfig=false \
|
||||||
-Dldconfig=false \
|
-D sysusers=false \
|
||||||
-Dsysusers=false \
|
-D rpmmacrosdir=no \
|
||||||
-Db_lto=false \
|
-D homed=disabled \
|
||||||
-Drpmmacrosdir=no \
|
-D userdb=false \
|
||||||
-Dhomed=false \
|
-D man=disabled \
|
||||||
-Duserdb=false \
|
-D mode=release </userinput></screen>
|
||||||
-Dman=false \
|
|
||||||
-Dmode=release \
|
|
||||||
..</userinput></screen>
|
|
||||||
|
|
||||||
<para>Compile the package:</para>
|
<para>Compile the package:</para>
|
||||||
|
|
||||||
@ -318,10 +324,13 @@ meson --prefix=/usr \
|
|||||||
|
|
||||||
<para>Install the package:</para>
|
<para>Install the package:</para>
|
||||||
|
|
||||||
|
<!-- Only install needed libs from lib32 as opposed to installing all libs
|
||||||
|
Needed libs: libudev.so*
|
||||||
|
libsystemd.so*-->
|
||||||
<screen><userinput remap="install">LANG=en_US.UTF-8 DESTDIR=$PWD/DESTDIR ninja install
|
<screen><userinput remap="install">LANG=en_US.UTF-8 DESTDIR=$PWD/DESTDIR ninja install
|
||||||
cp -Rv DESTDIR/usr/lib32/* /usr/lib32
|
cp -v DESTDIR/usr/lib32/libsystemd.so* /usr/lib32/
|
||||||
rm -rf DESTDIR
|
cp -v DESTDIR/usr/lib32/libudev.so* /usr/lib32/
|
||||||
rm -f /usr/bin/xsltproc</userinput></screen>
|
rm -rf DESTDIR</userinput></screen>
|
||||||
|
|
||||||
</sect2><!-- m32 -->
|
</sect2><!-- m32 -->
|
||||||
|
|
||||||
@ -336,9 +345,6 @@ rm -f /usr/bin/xsltproc</userinput></screen>
|
|||||||
|
|
||||||
<screen><userinput remap="pre">rm -rf *</userinput></screen>
|
<screen><userinput remap="pre">rm -rf *</userinput></screen>
|
||||||
|
|
||||||
<para>Create a symlink to work around missing xsltproc:</para>
|
|
||||||
|
|
||||||
<screen><userinput remap="pre">ln -sf /bin/true /usr/bin/xsltproc</userinput></screen>
|
|
||||||
<!--
|
<!--
|
||||||
<para>Fix an issue on x32:</para>
|
<para>Fix an issue on x32:</para>
|
||||||
|
|
||||||
@ -347,30 +353,24 @@ sed '/long drift_freq;/s@long @int64_t @' -i src/timesync/timesyncd-manager.h</u
|
|||||||
-->
|
-->
|
||||||
<para>Prepare systemd for compilation:</para>
|
<para>Prepare systemd for compilation:</para>
|
||||||
|
|
||||||
<screen><userinput remap="configure">PKG_CONFIG_PATH="/usr/libx32/pkgconfig" \
|
<screen><userinput remap="configure">PKG_CONFIG_PATH="/usr/libx32/pkgconfig" \
|
||||||
CC="gcc -mx32" \
|
CC="gcc -mx32" \
|
||||||
CXX="g++ -mx32" \
|
CXX="g++ -mx32" \
|
||||||
CFLAGS+=" -Wno-error=shift-overflow" \
|
|
||||||
CXXFLAGS+=" -Wno-error=shift-overflow" \
|
|
||||||
LANG=en_US.UTF-8 \
|
LANG=en_US.UTF-8 \
|
||||||
meson --prefix=/usr \
|
meson setup .. \
|
||||||
--sysconfdir=/etc \
|
--prefix=/usr \
|
||||||
--localstatedir=/var \
|
|
||||||
--libdir=/usr/libx32 \
|
--libdir=/usr/libx32 \
|
||||||
-Drootlibdir=/usr/libx32 \
|
--buildtype=release \
|
||||||
-Dblkid=true \
|
-D default-dnssec=no \
|
||||||
-Ddefault-dnssec=no \
|
-D firstboot=false \
|
||||||
-Dfirstboot=false \
|
-D install-tests=false \
|
||||||
-Dinstall-tests=false \
|
-D ldconfig=false \
|
||||||
-Dldconfig=false \
|
-D sysusers=false \
|
||||||
-Dsysusers=false \
|
-D rpmmacrosdir=no \
|
||||||
-Db_lto=false \
|
-D homed=false \
|
||||||
-Drpmmacrosdir=no \
|
-D userdb=false \
|
||||||
-Dhomed=false \
|
-D man=disabled \
|
||||||
-Duserdb=false \
|
-D mode=release </userinput></screen>
|
||||||
-Dman=false \
|
|
||||||
-Dmode=release \
|
|
||||||
..</userinput></screen>
|
|
||||||
|
|
||||||
<para>Compile the package:</para>
|
<para>Compile the package:</para>
|
||||||
|
|
||||||
@ -379,9 +379,9 @@ meson --prefix=/usr \
|
|||||||
<para>Install the package:</para>
|
<para>Install the package:</para>
|
||||||
|
|
||||||
<screen><userinput remap="install">LANG=en_US.UTF-8 DESTDIR=$PWD/DESTDIR ninja install
|
<screen><userinput remap="install">LANG=en_US.UTF-8 DESTDIR=$PWD/DESTDIR ninja install
|
||||||
cp -Rv DESTDIR/usr/libx32/* /usr/libx32
|
cp -v DESTDIR/usr/libx32/libsystemd.so* /usr/libx32/
|
||||||
rm -rf DESTDIR
|
cp -v DESTDIR/usr/libx32/libudev.so* /usr/libx32/
|
||||||
rm -f /usr/bin/xsltproc</userinput></screen>
|
rm -rf DESTDIR</userinput></screen>
|
||||||
|
|
||||||
</sect2><!-- mx32 -->
|
</sect2><!-- mx32 -->
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user