Simplify linking for systemd and remove text references to /tools/include.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11326 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
DJ Lucas 2017-11-09 05:48:55 +00:00
parent 3f60e0c723
commit f1e1fe6579
5 changed files with 46 additions and 45 deletions

View File

@ -42,6 +42,17 @@
<listitem revision="sysv"> or <listitem revision="systemd"> as <listitem revision="sysv"> or <listitem revision="systemd"> as
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 revision="systemd">
<para>2017-11-09</para>
<itemizedlist>
<listitem>
<para>[dj] - Create additional symlinks to simplify build of systemd
and remove text references to
<filename class="directory">/tools/include</filename>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem revision="systemd"> <listitem revision="systemd">
<para>2017-11-08</para> <para>2017-11-08</para>
<itemizedlist> <itemizedlist>

View File

@ -56,6 +56,14 @@ do
ln -sv /tools/lib/lib$lib.so* /usr/lib ln -sv /tools/lib/lib$lib.so* /usr/lib
sed 's/tools/usr/' /tools/lib/lib${lib}.la > /usr/lib/lib${lib}.la sed 's/tools/usr/' /tools/lib/lib${lib}.la > /usr/lib/lib${lib}.la
done done
ln -svf /tools/include/blkid /usr/include
ln -svf /tools/include/libmount /usr/include
ln -svf /tools/include/uuid /usr/include
for pc in blkid mount uuid
do
sed 's@tools@usr@g' /tools/lib/pkgconfig/${pc}.pc \
> /usr/lib/pkgconfig/${pc}.pc
done
ln -sv bash /bin/sh</userinput></screen> ln -sv bash /bin/sh</userinput></screen>
<variablelist> <variablelist>

View File

@ -46,29 +46,26 @@
<para>Prepare systemd for compilation:</para> <para>Prepare systemd for compilation:</para>
<screen><userinput remap="configure">PKG_CONFIG_PATH=/usr/lib/pkgconfig:/tools/lib/pkgconfig \ <screen><userinput remap="configure">
LANG=en_US.UTF-8 \ LANG=en_US.UTF-8 meson --prefix=/usr \
meson --prefix /usr \ --sysconfdir /etc \
--sysconfdir /etc \ --localstatedir /var \
--localstatedir /var \ -Dblkid=true \
-Dblkid=true \ -Dbuildtype=release \
-Dbuildtype=release \ -Ddefault-dnssec=no \
-Ddefault-dnssec=no \ -Dfirstboot=false \
-Dfirstboot=false \ -Dkill-path=/bin/kill \
-Dkill-path=/bin/kill \ -Dkmod-path=/bin/kmod \
-Dkmod-path=/bin/kmod \ -Dldconfig=false \
-Dldconfig=false \ -Dmount-path=/bin/mount \
-Dmount-path=/bin/mount \ -Drootprefix= \
-Drootprefix= \ -Drootlibdir=/lib \
-Drootlibdir=/lib \ -Dsplit-usr=true \
-Dsplit-usr=true \ -Dsulogin-path=/sbin/sulogin \
-Dsulogin-path=/sbin/sulogin \ -Dsysusers=false \
-Dsysusers=false \ -Dumount-path=/bin/umount \
-Dumount-path=/bin/umount \ -Db_lto=false \
-Db_lto=false \ $PWD build</userinput></screen>
-Dc_link_args="-lblkid -lmount" \
-Dc_args="-I/tools/include/blkid -I/tools/include/libmount" \
$PWD build</userinput></screen>
<variablelist> <variablelist>
<title>The meaning of the meson options:</title> <title>The meaning of the meson options:</title>
@ -140,25 +137,6 @@ LANG=en_US.UTF-8 \
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term><parameter>-Dc_link_args="-lblkid -lmount"</parameter></term>
<listitem>
<para>This switch manually adds libblkid and libmount to the
linker flags as they only exist in <filename>/tools/lib</filename>
until <application>Util-Linux</application> is installed later in
this chapter.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>-Dc_args="-I/tools/include/blkid -I/tools/include/libmount"</parameter></term>
<listitem>
<para>This switch manually adds the include paths for libblkid and
libmount to the CFLAGS variable as the packages are not yet installed
in the final system.</para>
</listitem>
</varlistentry>
</variablelist> </variablelist>
<para>Compile the package:</para> <para>Compile the package:</para>

View File

@ -60,6 +60,10 @@
<screen><userinput remap="pre">sed -e 's/2^64/(2^64/' -e 's/E &lt;/E) &lt;=/' -e 's/ne /eq /' \ <screen><userinput remap="pre">sed -e 's/2^64/(2^64/' -e 's/E &lt;/E) &lt;=/' -e 's/ne /eq /' \
-i tests/ts/ipcs/limits2</userinput></screen> -i tests/ts/ipcs/limits2</userinput></screen>
--> -->
<para revision="systemd">Remove the earlier created symlinks:</para>
<screen revision="systemd"><userinput remap="pre">rm -vf /usr/include/{blkid,libmount,uuid}</userinput></screen>
<para>Prepare Util-linux for compilation:</para> <para>Prepare Util-linux for compilation:</para>
<screen revision="sysv"><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ <screen revision="sysv"><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \

View File

@ -1,13 +1,13 @@
<!ENTITY version "SVN-20171106"> <!ENTITY version "SVN-20171109">
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book; <!ENTITY short-version "svn"> <!-- Used below in &blfs-book;
Change to x.y for release but not -rc releases --> Change to x.y for release but not -rc releases -->
<!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" --> <!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" -->
<!ENTITY versiond "20171108-systemd"> <!ENTITY versiond "20171109-systemd">
<!ENTITY short-versiond "systemd"> <!ENTITY short-versiond "systemd">
<!ENTITY generic-versiond "systemd"> <!ENTITY generic-versiond "systemd">
<!ENTITY releasedate "November 6, 2017"> <!ENTITY releasedate "November 9, 2017">
<!ENTITY copyrightdate "1999-2017"><!-- jhalfs needs a literal dash, not &ndash; --> <!ENTITY copyrightdate "1999-2017"><!-- jhalfs needs a literal dash, not &ndash; -->
<!ENTITY milestone "8.2"> <!ENTITY milestone "8.2">