Parcourir la source

Restore build of Util-Linux in chapter5 to avoid reciprocal dependency for Systemd

Moved installation of Util-Linux and E2fsprogs after Procps to satisfy
build order in the Systemd book. This has no effect on the SysV book.

Was r11473.
DJ Lucas il y a 5 ans
Parent
commit
afea920ef4

+ 14 - 0
chapter01/changelog.xml

@@ -42,6 +42,20 @@
     appropriate for the entry or if needed the entire day's listitem.
 -->
 
+    <listitem>
+      <para>2018-09-30</para>
+      <itemizedlist>
+        <listitem revision="systemd">
+          <para>[dj] - 恢复第 5 章中 util-linux 的构建,
+          以避免 systemd 的循环依赖问题。</para>
+        </listitem>
+        <listitem>
+          <para>[dj] - 将 util-linux 和 e2fsprogs 的安装推迟到 procps 后, 
+          以满足 systemd 版本的构建顺序。这对 sysv 版本没有影响。</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
     <listitem>
       <para>2018-09-20</para>
       <itemizedlist>

+ 1 - 1
chapter05/chapter05.xml

@@ -43,7 +43,7 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sed.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tar.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="texinfo.xml"/>
-<!--  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="util-linux.xml"/>-->
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="util-linux.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xz.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="stripping.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="changingowner.xml"/>

+ 1 - 1
chapter05/util-linux.xml

@@ -5,7 +5,7 @@
   %general-entities;
 ]>
 
-<sect1 id="ch-tools-util-linux" role="wrap">
+<sect1 id="ch-tools-util-linux" role="wrap" revision="systemd">
   <?dbhtml filename="util-linux.html"?>
 
   <sect1info condition="script">

+ 4 - 3
chapter06/chapter06.xml

@@ -78,8 +78,6 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libpipeline.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="make.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="patch.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="util-linux.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="e2fsprogs.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="man-db.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tar.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="texinfo.xml"/>
@@ -88,8 +86,11 @@
   <!-- systemd only -->
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="systemd.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dbus.xml"/>
-  <!-- props needs libsystemd -->
+
+  <!-- these packages libsystemd on systemd builds -->
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="procps.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="util-linux.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="e2fsprogs.xml"/>
 
   <!-- sysv only -->
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sysklogd.xml"/>

+ 8 - 0
chapter06/systemd.xml

@@ -43,6 +43,13 @@
 
 <screen><userinput remap="pre">ln -sf /tools/bin/true /usr/bin/xsltproc</userinput></screen>
 
+    <para>由于还没有安装好最终的 Util-Linux,
+    需要在适当的位置创建一些库的符号链接:</para>
+
+<screen><userinput remap="pre">for file in /tools/lib64/lib{blkid,mount,uuid}*; do
+    ln -sf $file /usr/lib/
+done</userinput></screen>
+
     <para>设定好 man 页面:</para>
 
 <screen><userinput remap="pre">tar -xf ../systemd-man-pages-&systemd-version;.tar.xz</userinput></screen>
@@ -64,6 +71,7 @@
     <screen><userinput remap="configure">mkdir -p build
 cd       build
 
+PKG_CONFIG_PATH="/usr/lib/pkgconfig:/tools/lib64/pkgconfig" \
 LANG=en_US.UTF-8                   \
 meson --prefix=/usr                \
       --sysconfdir=/etc            \

+ 3 - 3
general.ent

@@ -1,13 +1,13 @@
-<!ENTITY version         "SVN-20180920">
+<!ENTITY version         "SVN-20180930">
 <!ENTITY short-version   "svn">  <!-- Used below in &blfs-book; 
                                       Change to x.y for release but not -rc releases -->
 <!ENTITY generic-version "development"> <!-- Use "development"  or "x.y[-pre{x}]" -->
 
-<!ENTITY versiond        "20180920-systemd">
+<!ENTITY versiond        "20180930-systemd">
 <!ENTITY short-versiond  "systemd">
 <!ENTITY generic-versiond "systemd"> 
 
-<!ENTITY releasedate     "2018 年 9 月 20 日">
+<!ENTITY releasedate     "2018 年 9 月 30 日">
 
 <!ENTITY copyrightdate   "1999-2018"><!-- jhalfs needs a literal dash, not &ndash; -->
 <!ENTITY milestone       "8.3">