diff options
author | Thomas Trepl <thomas@linuxfromscratch.org> | 2019-05-16 06:29:32 +0000 |
---|---|---|
committer | Thomas Trepl <thomas@linuxfromscratch.org> | 2019-05-16 06:29:32 +0000 |
commit | 01ffc239f0d5717676f76998538b660f4aa89ba0 (patch) | |
tree | a806502c0fc8c2e76a8b3d6b64196bc6b6829fff | |
parent | 8c5e7286941bdcff21be0e42d59ffba4a7afdf8b (diff) |
Merge changes from trunk
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11606 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | chapter01/changelog.xml | 10 | ||||
-rw-r--r-- | chapter05/gcc-pass1.xml | 34 | ||||
-rw-r--r-- | chapter05/gcc-pass2.xml | 27 | ||||
-rw-r--r-- | chapter06/eudev.xml | 2 | ||||
-rw-r--r-- | chapter06/gcc.xml | 31 | ||||
-rw-r--r-- | chapter06/man-db.xml | 13 | ||||
-rw-r--r-- | chapter06/systemd.xml | 10 | ||||
-rw-r--r-- | general.ent | 6 |
8 files changed, 48 insertions, 85 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index ca1b08eb5..6d33cc0b9 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -45,6 +45,16 @@ appropriate for the entry or if needed the entire day's listitem. --> + <listitem revision="systemd"> + <para>2019-05-11</para> + <itemizedlist> + <listitem> + <para>[pierre] - Fix a hardcoded path to /usr/bin/find in the + systemd unit of man-db.</para> + </listitem> + </itemizedlist> + </listitem> + <listitem> <para>2019-05-03</para> <itemizedlist> diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml index fece3969f..a7efac839 100644 --- a/chapter05/gcc-pass1.xml +++ b/chapter05/gcc-pass1.xml @@ -155,31 +155,10 @@ cd build</userinput></screen> <para>Prepare GCC for compilation:</para> -<screen arch="default"><userinput remap="configure">../configure \ - --target=$LFS_TGT \ - --prefix=/tools \ - --with-glibc-version=2.11 \ - --with-sysroot=$LFS \ - --with-newlib \ - --without-headers \ - --with-local-prefix=/tools \ - --with-native-system-header-dir=/tools/include \ - --disable-nls \ - --disable-shared \ - --disable-multilib \ - --disable-decimal-float \ - --disable-threads \ - --disable-libatomic \ - --disable-libgomp \ - --disable-libquadmath \ - --disable-libssp \ - --disable-libvtv \ - --disable-libstdcxx \ - --enable-languages=c,c++</userinput></screen> - -<screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure">mlist="m64"</userinput> -<userinput arch="ml_32,ml_all" remap="configure">mlist="$mlist,m32"</userinput> -<userinput arch="ml_x32,ml_all" remap="configure">mlist="$mlist,mx32"</userinput> +<screen><userinput arch="default" remap="configure">mloptions="--disable-multilib"</userinput> +<userinput arch="ml_32,ml_x32,ml_all" remap="configure">mloptions="--enable-multilib --with-multilib-list=m64"</userinput> +<userinput arch="ml_32,ml_all" remap="configure">mloptions="$mloptions,m32"</userinput> +<userinput arch="ml_x32,ml_all" remap="configure">mloptions="$mloptions,mx32"</userinput> <userinput remap="configure">../configure \ --target=$LFS_TGT \ --prefix=/tools \ @@ -191,8 +170,6 @@ cd build</userinput></screen> --with-native-system-header-dir=/tools/include \ --disable-nls \ --disable-shared \ - --enable-multilib \ - --with-multilib-list=$mlist \ --disable-decimal-float \ --disable-threads \ --disable-libatomic \ @@ -201,7 +178,8 @@ cd build</userinput></screen> --disable-libssp \ --disable-libvtv \ --disable-libstdcxx \ - --enable-languages=c,c++</userinput></screen> + --enable-languages=c,c++ \ + $mloptions</userinput></screen> <variablelist> <title>The meaning of the configure options:</title> diff --git a/chapter05/gcc-pass2.xml b/chapter05/gcc-pass2.xml index 776610b5f..1b6a6b953 100644 --- a/chapter05/gcc-pass2.xml +++ b/chapter05/gcc-pass2.xml @@ -139,23 +139,10 @@ cd build</userinput></screen> <para>Now prepare GCC for compilation:</para> -<screen arch="default"><userinput remap="configure">CC=$LFS_TGT-gcc \ -CXX=$LFS_TGT-g++ \ -AR=$LFS_TGT-ar \ -RANLIB=$LFS_TGT-ranlib \ -../configure \ - --prefix=/tools \ - --with-local-prefix=/tools \ - --with-native-system-header-dir=/tools/include \ - --enable-languages=c,c++ \ - --disable-libstdcxx-pch \ - --disable-multilib \ - --disable-bootstrap \ - --disable-libgomp</userinput></screen> - -<screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure">mlist="m64"</userinput> -<userinput arch="ml_32,ml_all" remap="configure">mlist="$mlist,m32"</userinput> -<userinput arch="ml_x32,ml_all" remap="configure">mlist="$mlist,mx32"</userinput> +<screen><userinput arch="default" remap="configure">mloptions="--disable-multilib"</userinput> +<userinput arch="ml_32,ml_x32,ml_all" remap="configure">mloptions="--with-system-zlib --enable-multilib --with-multilib-list=m64"</userinput> +<userinput arch="ml_32,ml_all" remap="configure">mloptions="$mloptions,m32"</userinput> +<userinput arch="ml_x32,ml_all" remap="configure">mloptions="$mloptions,mx32"</userinput> <userinput remap="configure">CC=$LFS_TGT-gcc \ CXX=$LFS_TGT-g++ \ AR=$LFS_TGT-ar \ @@ -166,11 +153,9 @@ RANLIB=$LFS_TGT-ranlib \ --with-native-system-header-dir=/tools/include \ --enable-languages=c,c++ \ --disable-libstdcxx-pch \ - --enable-multilib \ - --with-multilib-list=$mlist \ - --with-system-zlib \ --disable-bootstrap \ - --disable-libgomp</userinput></screen> + --disable-libgomp \ + $mloptions</userinput></screen> <variablelist> <title>The meaning of the new configure options:</title> diff --git a/chapter06/eudev.xml b/chapter06/eudev.xml index 9e8e8ffb5..eac56f4fa 100644 --- a/chapter06/eudev.xml +++ b/chapter06/eudev.xml @@ -49,7 +49,7 @@ <screen><userinput remap="pre">sed -i '/keyboard_lookup_key/d' src/udev/udev-builtin-keyboard.c</userinput></screen> --> - <para>Next, add a workaround to prevent the /tools directory from being + <para>First, add a workaround to prevent the /tools directory from being hard coded into Eudev binary files library locations:</para> <screen><userinput remap="pre">cat > config.cache << "EOF" diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml index 0ac6353af..f48cde6e0 100644 --- a/chapter06/gcc.xml +++ b/chapter06/gcc.xml @@ -76,33 +76,16 @@ cd build</userinput></screen> <para>Prepare GCC for compilation:</para> -<screen arch="default"><userinput remap="configure">SED=sed \ +<screen><userinput arch="default" remap="configure">mloptions="--disable-multilib"</userinput> +<userinput arch="ml_32,ml_x32,ml_all" remap="configure">mloptions="--enable-multilib --with-multilib-list=m64"</userinput> +<userinput arch="ml_32,ml_all" remap="configure">mloptions="$mloptions,m32"</userinput> +<userinput arch="ml_x32,ml_all" remap="configure">mloptions="$mloptions,mx32"</userinput> +<userinput remap="configure">SED=sed \ ../configure --prefix=/usr \ --enable-languages=c,c++ \ - --disable-multilib \ --disable-bootstrap \ - --with-system-zlib</userinput></screen> -<screen arch="ml_32"><userinput remap="configure">SED=sed \ -../configure --prefix=/usr \ - --enable-languages=c,c++ \ - --enable-multilib \ - --with-multilib-list=m32,m64 \ - --disable-bootstrap \ - --with-system-zlib</userinput></screen> -<screen arch="ml_x32"><userinput remap="configure">SED=sed \ -../configure --prefix=/usr \ - --enable-languages=c,c++ \ - --enable-multilib \ - --with-multilib-list=mx32,m64 \ - --disable-bootstrap \ - --with-system-zlib</userinput></screen> -<screen arch="ml_all"><userinput remap="configure">SED=sed \ -../configure --prefix=/usr \ - --enable-languages=c,c++ \ - --enable-multilib \ - --with-multilib-list=m32,mx32,m64 \ - --disable-bootstrap \ - --with-system-zlib</userinput></screen> + --with-system-zlib \ + $mloptions</userinput></screen> <para>Note that for other languages, there are some prerequisites that are not yet available. See the diff --git a/chapter06/man-db.xml b/chapter06/man-db.xml index a3b866ae9..5554d45d4 100644 --- a/chapter06/man-db.xml +++ b/chapter06/man-db.xml @@ -43,7 +43,9 @@ <para>Prepare Man-DB for compilation:</para> -<screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \ +<screen revision="systemd"><userinput remap="configure">sed -i '/find/s@/usr@@' init/systemd/man-db.service.in + +./configure --prefix=/usr \ --docdir=/usr/share/doc/man-db-&man-db-version; \ --sysconfdir=/etc \ --disable-setuid \ @@ -66,6 +68,15 @@ <variablelist> <title>The meaning of the configure options:</title> + <varlistentry revision="systemd"> + <term><command>sed -i '/find/s@/usr@@' init/systemd/man-db.service.in</command></term> + <listitem> + <para>This changes a harcoded path to the <command>find</command> + utility, which we install in + <filename class="directory">/bin</filename>.</para> + </listitem> + </varlistentry> + <varlistentry> <term><parameter>--disable-setuid</parameter></term> <listitem> diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml index a3a11fb6e..ce6a559b4 100644 --- a/chapter06/systemd.xml +++ b/chapter06/systemd.xml @@ -198,15 +198,11 @@ rm -f /usr/bin/xsltproc</userinput></screen> <screen><userinput remap="adjust">systemd-machine-id-setup</userinput></screen> - <para>Create the <filename>/lib/systemd/systemd-user-sessions</filename> - script to allow unprivileged user logins without + <para>Prevent systemd from creating <filename>/run/nologin</filename> + to allow unprivileged user logins without <application>systemd-logind</application>:</para> -<screen><userinput remap="adjust">cat > /lib/systemd/systemd-user-sessions << "EOF" -#!/bin/bash -rm -f /run/nologin -EOF -chmod 755 /lib/systemd/systemd-user-sessions</userinput></screen> +<screen><userinput remap="adjust">rm -f /usr/lib/tmpfiles.d/systemd-nologin.conf</userinput></screen> </sect2> diff --git a/general.ent b/general.ent index d1995b768..4a38b7978 100644 --- a/general.ent +++ b/general.ent @@ -1,13 +1,13 @@ -<!ENTITY version "SVN-20190503"> +<!ENTITY version "SVN-20190511"> <!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 "20190503-systemd"> +<!ENTITY versiond "20190511-systemd"> <!ENTITY short-versiond "systemd"> <!ENTITY generic-versiond "systemd"> -<!ENTITY releasedate "May 3, 2019"> +<!ENTITY releasedate "May 11, 2019"> <!ENTITY copyrightdate "1999-2019"><!-- jhalfs needs a literal dash, not – --> <!ENTITY milestone "8.5"> |