Merge remote-tracking branch 'origin/trunk' into xry111/arm64

This commit is contained in:
Xi Ruoyao 2023-06-05 23:25:22 +08:00
commit ed9b087f73
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3
10 changed files with 108 additions and 36 deletions

View File

@ -40,9 +40,53 @@
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> <listitem>
<para>2023-05-18</para> <para>2023-06-03</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Update to iana-etc-20230524. Addresses
<ulink url='&lfs-ticket-root;5006'>#5006</ulink>.</para>
</listitem>
<listitem revision='systemd'>
<para>[bdubbs] - Update to MarkupSafe-2.1.3 (Python Module).
Fixes <ulink url='&lfs-ticket-root;5268'>#5268</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to linux-6.3.5. Fixes
<ulink url='&lfs-ticket-root;5264'>#5264</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to openssl-3.1.1. Fixes
<ulink url='&lfs-ticket-root;5267'>#5267</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to meson-1.1.1. Fixes
<ulink url='&lfs-ticket-root;5266'>#5266</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to diffutils-3.10. Fixes
<ulink url='&lfs-ticket-root;5262'>#5262</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to bc-6.6.0. Fixes
<ulink url='&lfs-ticket-root;5263'>#5263</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem revision='sysv'>
<para>2023-05-25</para>
<itemizedlist> <itemizedlist>
<listitem revision='sysv'> <listitem revision='sysv'>
<para>[ken] - Remove unneeded group sgx from eudev rules. Fixes
<ulink url='&lfs-ticket-root;5265'>#5265</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2023-05-18</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Update to util-linux-2.39. Fixes <para>[bdubbs] - Update to util-linux-2.39. Fixes
<ulink url='&lfs-ticket-root;5259'>#5259</ulink>.</para> <ulink url='&lfs-ticket-root;5259'>#5259</ulink>.</para>
</listitem> </listitem>

View File

@ -85,9 +85,9 @@
<!--<listitem revision="systemd"> <!--<listitem revision="systemd">
<para>D-Bus-&dbus-version;</para> <para>D-Bus-&dbus-version;</para>
</listitem>--> </listitem>-->
<!--<listitem> <listitem>
<para>Diffutils-&diffutils-version;</para> <para>Diffutils-&diffutils-version;</para>
</listitem>--> </listitem>
<!--<listitem> <!--<listitem>
<para>E2fsprogs-&e2fsprogs-version;</para> <para>E2fsprogs-&e2fsprogs-version;</para>
</listitem>--> </listitem>-->
@ -202,9 +202,9 @@
<listitem> <listitem>
<para>Man-pages-&man-pages-version;</para> <para>Man-pages-&man-pages-version;</para>
</listitem> </listitem>
<!--<listitem revision="systemd"> <listitem revision="systemd">
<para>MarkupSafe-&markupsafe-version;</para> <para>MarkupSafe-&markupsafe-version;</para>
</listitem>--> </listitem>
<listitem> <listitem>
<para>Meson-&meson-version;</para> <para>Meson-&meson-version;</para>
</listitem> </listitem>
@ -220,9 +220,9 @@
<!--<listitem> <!--<listitem>
<para>Ninja-&ninja-version;</para> <para>Ninja-&ninja-version;</para>
</listitem>--> </listitem>-->
<!--<listitem> <listitem>
<para>Openssl-&openssl-version;</para> <para>Openssl-&openssl-version;</para>
</listitem>--> </listitem>
<!--<listitem> <!--<listitem>
<para>Patch-&patch-version;</para> <para>Patch-&patch-version;</para>
</listitem>--> </listitem>-->

View File

@ -93,8 +93,11 @@
<para>The reason for the kernel version requirement is that we specify <para>The reason for the kernel version requirement is that we specify
that version when building <application>glibc</application> in that version when building <application>glibc</application> in
<xref linkend="chapter-cross-tools"/> and <xref linkend="chapter-cross-tools"/> and
<xref linkend="chapter-building-system"/>, <xref linkend="chapter-building-system"/>, so the workarounds for
at the recommendation of the developers.</para> older kernels are not enabled and the compiled
<application>glibc</application> is slightly faster and smaller.
As at June 2023, &min-kernel; is the oldest kernel release still
supported by the kernel developers.</para>
<para>If the host kernel is earlier than &min-kernel; you will need to replace <para>If the host kernel is earlier than &min-kernel; you will need to replace
the kernel with a more up-to-date version. There are two ways the kernel with a more up-to-date version. There are two ways

View File

@ -68,7 +68,7 @@ cd build</userinput></screen>
--prefix=/usr \ --prefix=/usr \
--host=$LFS_TGT \ --host=$LFS_TGT \
--build=$(../scripts/config.guess) \ --build=$(../scripts/config.guess) \
--enable-kernel=&min-kernel; \ --enable-kernel=&min-kernel; \
--with-headers=$LFS/usr/include \ --with-headers=$LFS/usr/include \
libc_cv_slibdir=/usr/lib</userinput></screen> libc_cv_slibdir=/usr/lib</userinput></screen>

View File

@ -44,6 +44,14 @@
<screen><userinput remap="pre">sed -i '/udevdir/a udev_dir=${udevdir}' src/udev/udev.pc.in</userinput></screen> <screen><userinput remap="pre">sed -i '/udevdir/a udev_dir=${udevdir}' src/udev/udev.pc.in</userinput></screen>
--> -->
<!-- different from systemd: we do not have a render group and file is
named differently -->
<para>Remove an unneeded group
<systemitem class="groupname">sgx</systemitem>, from the default udev
rules:</para>
<screen><userinput remap="pre">sed -i -e 's/GROUP="sgx", //' rules/50-udev-default.rules</userinput></screen>
<para>Prepare Eudev for compilation:</para> <para>Prepare Eudev for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/usr \ <screen><userinput remap="configure">./configure --prefix=/usr \
@ -96,7 +104,7 @@ make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen>
consider it dangerous. Create a configuration file to override it: consider it dangerous. Create a configuration file to override it:
</para> </para>
<screen><userinput remap="configure">cat > /etc/udev/rules.d/65-kvm.rules &lt;&lt; "EOF" <screen><userinput>cat > /etc/udev/rules.d/65-kvm.rules &lt;&lt; "EOF"
<literal>KERNEL=="kvm", GROUP="kvm", MODE="0660", TAG+="uaccess"</literal> <literal>KERNEL=="kvm", GROUP="kvm", MODE="0660", TAG+="uaccess"</literal>
EOF</userinput></screen> EOF</userinput></screen>

View File

@ -76,7 +76,7 @@ cd build</userinput></screen>
<screen><userinput remap="configure">../configure --prefix=/usr \ <screen><userinput remap="configure">../configure --prefix=/usr \
--disable-werror \ --disable-werror \
--enable-kernel=&min-kernel; \ --enable-kernel=&min-kernel; \
--enable-stack-protector=strong \ --enable-stack-protector=strong \
--with-headers=/usr/include \ --with-headers=/usr/include \
libc_cv_slibdir=/usr/lib</userinput></screen> libc_cv_slibdir=/usr/lib</userinput></screen>

View File

@ -85,6 +85,20 @@
libraries until all the dependent packages have been recompiled.</para> libraries until all the dependent packages have been recompiled.</para>
</listitem> </listitem>
<listitem><para>If a package is (directly or indirectly) linked to both
the old and new names of a shared library (for example, the package
links to both <filename class='libraryfile'>libfoo.so.2</filename> and
<filename class='libraryfile'>libbar.so.1</filename>, while the latter
links to <filename class='libraryfile'>libfoo.so.3</filename>), the
package may malfunction because the different revisions of the shared
library present incompatible definitions for some symbol names. This can be
caused by recompiling some, but not all, of the packages linked to the
old shared library after the package providing the shared library is
upgraded. To avoid the issue, users will need to rebuild every package
linked to a shared library with an updated revision (e.g. libfoo.so.2 to
libfoo.so.3) as soon as possible.
</para></listitem>
<listitem> <para>If a package containing a shared library is updated, <listitem> <para>If a package containing a shared library is updated,
and the name of the library doesn't change, but the version number of the and the name of the library doesn't change, but the version number of the
library <emphasis role="bold">file</emphasis> decreases (for example, library <emphasis role="bold">file</emphasis> decreases (for example,
@ -112,14 +126,13 @@
(replace <replaceable>libfoo</replaceable> with the name of the (replace <replaceable>libfoo</replaceable> with the name of the
library):</para> library):</para>
<screen role="nodump"><userinput>grep -l -e '<replaceable>libfoo</replaceable>.*deleted' /proc/*/maps | <screen role="nodump"><userinput>grep -l '<replaceable>libfoo</replaceable>.*deleted' /proc/*/maps | tr -cd 0-9\\n | xargs -r ps u</userinput></screen>
tr -cd 0-9\\n | xargs -r ps u</userinput></screen>
<para> <para>
If <application>OpenSSH</application> is being used to access If <application>OpenSSH</application> is being used to access
the system and it is linked to the updated library, you must the system and it is linked to the updated library, you must
restart the <command>sshd</command> service, then logout, login again, restart the <command>sshd</command> service, then logout, login again,
and rerun the preceding ps command to confirm that nothing is still using the and run the preceding command again to confirm that nothing is still using the
deleted libraries. deleted libraries.
</para> </para>

View File

@ -91,7 +91,11 @@
<!ENTITY livecd-root "&lfs-root;livecd/"> <!ENTITY livecd-root "&lfs-root;livecd/">
<!ENTITY test-results "&lfs-root;lfs/build-logs/&generic-version;/"> <!ENTITY test-results "&lfs-root;lfs/build-logs/&generic-version;/">
<!ENTITY secadv "&lfs-root;lfs/advisories/"> <!ENTITY secadv "&lfs-root;lfs/advisories/">
<!ENTITY min-kernel "3.7">
<!-- 4.14 EOL is Jan 2024
so for LFS 11.5 we may consider moving to 4.19 -->
<!ENTITY min-kernel "4.14">
<!-- <!--
<!ENTITY patches-rootd "&lfs-root;patches/lfs/&generic-versiond;/"> <!ENTITY patches-rootd "&lfs-root;patches/lfs/&generic-versiond;/">
<!ENTITY downloads-rootd "&lfs-root;lfs/downloads/&generic-versiond;/"> <!ENTITY downloads-rootd "&lfs-root;lfs/downloads/&generic-versiond;/">

View File

@ -292,7 +292,7 @@ if ( $package == "zstd" ) $dirpath = "https://github.com/facebook/zstd/rel
return find_max( $lines, "/tcl\d/", "/^.*tcl(\d\.[\d\.]*\d)-src.*$/" ); return find_max( $lines, "/tcl\d/", "/^.*tcl(\d\.[\d\.]*\d)-src.*$/" );
if ( $package == "ninja" ) if ( $package == "ninja" )
return find_max( $lines, "/v\d/", "/^.*v(\d[\d\.]*\d).*$/" ); return find_max( $lines, "/^ *v\d/", "/^.*v(\d[\d\.]*\d).*$/" );
if ( $package == "gmp" ) if ( $package == "gmp" )
return find_max( $lines, "/$package/", "/^.*$package-([\d\._]*\d[a-z]?).tar.*$/" ); return find_max( $lines, "/$package/", "/^.*$package-([\d\._]*\d[a-z]?).tar.*$/" );

View File

@ -58,10 +58,10 @@
<!ENTITY bash-fin-du "52 MB"> <!ENTITY bash-fin-du "52 MB">
<!ENTITY bash-fin-sbu "1.2 SBU"> <!ENTITY bash-fin-sbu "1.2 SBU">
<!ENTITY bc-version "6.5.0"> <!ENTITY bc-version "6.6.0">
<!ENTITY bc-size "452 KB"> <!ENTITY bc-size "455 KB">
<!ENTITY bc-url "https://github.com/gavinhoward/bc/releases/download/&bc-version;/bc-&bc-version;.tar.xz"> <!ENTITY bc-url "https://github.com/gavinhoward/bc/releases/download/&bc-version;/bc-&bc-version;.tar.xz">
<!ENTITY bc-md5 "e4757f48340dfe74af0d5be7ea56f7c7"> <!ENTITY bc-md5 "a148cbaaf8ff813b7289a00539e74a5f">
<!ENTITY bc-home "https://git.gavinhoward.com/gavin/bc"> <!ENTITY bc-home "https://git.gavinhoward.com/gavin/bc">
<!ENTITY bc-fin-du "7.6 MB"> <!ENTITY bc-fin-du "7.6 MB">
<!ENTITY bc-fin-sbu "less than 0.1 SBU"> <!ENTITY bc-fin-sbu "less than 0.1 SBU">
@ -130,10 +130,10 @@
<!ENTITY dejagnu-tmp-du "6.9 MB"> <!ENTITY dejagnu-tmp-du "6.9 MB">
<!ENTITY dejagnu-tmp-sbu "0.1 SBU"> <!ENTITY dejagnu-tmp-sbu "0.1 SBU">
<!ENTITY diffutils-version "3.9"> <!ENTITY diffutils-version "3.10">
<!ENTITY diffutils-size "1,551 KB"> <!ENTITY diffutils-size "1,587 KB">
<!ENTITY diffutils-url "&gnu;diffutils/diffutils-&diffutils-version;.tar.xz"> <!ENTITY diffutils-url "&gnu;diffutils/diffutils-&diffutils-version;.tar.xz">
<!ENTITY diffutils-md5 "cf0a65266058bf22fe3feb69e57ffc5b"> <!ENTITY diffutils-md5 "2745c50f6f4e395e7b7d52f902d075bf">
<!ENTITY diffutils-home "&gnu-software;diffutils/"> <!ENTITY diffutils-home "&gnu-software;diffutils/">
<!ENTITY diffutils-tmp-du "26 MB"> <!ENTITY diffutils-tmp-du "26 MB">
<!ENTITY diffutils-tmp-sbu "0.2 SBU"> <!ENTITY diffutils-tmp-sbu "0.2 SBU">
@ -325,10 +325,10 @@
<!ENTITY gzip-fin-du "21 MB"> <!ENTITY gzip-fin-du "21 MB">
<!ENTITY gzip-fin-sbu "0.3 SBU"> <!ENTITY gzip-fin-sbu "0.3 SBU">
<!ENTITY iana-etc-version "20230418"> <!ENTITY iana-etc-version "20230524">
<!ENTITY iana-etc-size "587 KB"> <!ENTITY iana-etc-size "587 KB">
<!ENTITY iana-etc-url "https://github.com/Mic92/iana-etc/releases/download/&iana-etc-version;/iana-etc-&iana-etc-version;.tar.gz"> <!ENTITY iana-etc-url "https://github.com/Mic92/iana-etc/releases/download/&iana-etc-version;/iana-etc-&iana-etc-version;.tar.gz">
<!ENTITY iana-etc-md5 "284e39f1cfdc0870923e65fc99ac3de0"> <!ENTITY iana-etc-md5 "16d24a6c990cc98fea65eec05738a5a5">
<!ENTITY iana-etc-home "https://www.iana.org/protocols"> <!ENTITY iana-etc-home "https://www.iana.org/protocols">
<!ENTITY iana-etc-fin-du "4.8 MB"> <!ENTITY iana-etc-fin-du "4.8 MB">
<!ENTITY iana-etc-fin-sbu "less than 0.1 SBU"> <!ENTITY iana-etc-fin-sbu "less than 0.1 SBU">
@ -432,12 +432,12 @@
<!ENTITY linux-major-version "6"> <!ENTITY linux-major-version "6">
<!ENTITY linux-minor-version "3"> <!ENTITY linux-minor-version "3">
<!ENTITY linux-patch-version "3"> <!ENTITY linux-patch-version "5">
<!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">--> <!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">-->
<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;"> <!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;">
<!ENTITY linux-size "133,722 KB"> <!ENTITY linux-size "133,718 KB">
<!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz"> <!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz">
<!ENTITY linux-md5 "900468549dbd8cc9b44efd85d9e934e6"> <!ENTITY linux-md5 "9b517d394dc1446890b4b15bdf8afa9f">
<!ENTITY linux-home "https://www.kernel.org/"> <!ENTITY linux-home "https://www.kernel.org/">
<!-- measured for 5.13.4 / gcc-11.1.0 on x86_64 : minimum is <!-- measured for 5.13.4 / gcc-11.1.0 on x86_64 : minimum is
allnoconfig rounded down to allow for ongoing cleanups, allnoconfig rounded down to allow for ongoing cleanups,
@ -484,18 +484,18 @@
<!ENTITY man-pages-fin-du "32 MB"> <!ENTITY man-pages-fin-du "32 MB">
<!ENTITY man-pages-fin-sbu "less than 0.1 SBU"> <!ENTITY man-pages-fin-sbu "less than 0.1 SBU">
<!ENTITY markupsafe-version "2.1.2"> <!ENTITY markupsafe-version "2.1.3">
<!ENTITY markupsafe-size "19 KB"> <!ENTITY markupsafe-size "19 KB">
<!ENTITY markupsafe-url "&pypi-src;/M/MarkupSafe/MarkupSafe-&markupsafe-version;.tar.gz"> <!ENTITY markupsafe-url "&pypi-src;/M/MarkupSafe/MarkupSafe-&markupsafe-version;.tar.gz">
<!ENTITY markupsafe-md5 "02f337b98aef11bd0fee9c5ae860173b"> <!ENTITY markupsafe-md5 "ca33f119bd0551ce15837f58bb180214">
<!ENTITY markupsafe-home "https://palletsprojects.com/p/markupsafe/"> <!ENTITY markupsafe-home "https://palletsprojects.com/p/markupsafe/">
<!ENTITY markupsafe-fin-du "544 KB"> <!ENTITY markupsafe-fin-du "544 KB">
<!ENTITY markupsafe-fin-sbu "less than 0.1 SBU"> <!ENTITY markupsafe-fin-sbu "less than 0.1 SBU">
<!ENTITY meson-version "1.1.0"> <!ENTITY meson-version "1.1.1">
<!ENTITY meson-size "2,075 KB"> <!ENTITY meson-size "2,076 KB">
<!ENTITY meson-url "&github;/mesonbuild/meson/releases/download/&meson-version;/meson-&meson-version;.tar.gz"> <!ENTITY meson-url "&github;/mesonbuild/meson/releases/download/&meson-version;/meson-&meson-version;.tar.gz">
<!ENTITY meson-md5 "94ea898bcf799470878e60809be80467"> <!ENTITY meson-md5 "0f810b31b26156989ac9321fa2063a04">
<!ENTITY meson-home "https://mesonbuild.com"> <!ENTITY meson-home "https://mesonbuild.com">
<!ENTITY meson-fin-du "41 MB"> <!ENTITY meson-fin-du "41 MB">
<!ENTITY meson-fin-sbu "less than 0.1 SBU"> <!ENTITY meson-fin-sbu "less than 0.1 SBU">
@ -534,10 +534,10 @@
<!ENTITY ninja-fin-du "77 MB"> <!ENTITY ninja-fin-du "77 MB">
<!ENTITY ninja-fin-sbu "0.3 SBU"> <!ENTITY ninja-fin-sbu "0.3 SBU">
<!ENTITY openssl-version "3.1.0"> <!ENTITY openssl-version "3.1.1">
<!ENTITY openssl-size "15,164 KB"> <!ENTITY openssl-size "15,181 KB">
<!ENTITY openssl-url "https://www.openssl.org/source/openssl-&openssl-version;.tar.gz"> <!ENTITY openssl-url "https://www.openssl.org/source/openssl-&openssl-version;.tar.gz">
<!ENTITY openssl-md5 "f6c520aa2206d4d1fa71ea30b5e9a56d"> <!ENTITY openssl-md5 "1864b75e31fb4a6e0a07fd832529add3">
<!ENTITY openssl-home "https://www.openssl.org/"> <!ENTITY openssl-home "https://www.openssl.org/">
<!ENTITY openssl-fin-du "520 MB"> <!ENTITY openssl-fin-du "520 MB">
<!ENTITY openssl-fin-sbu "3.2 SBU"> <!ENTITY openssl-fin-sbu "3.2 SBU">