diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-11-14 00:27:17 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-11-14 00:27:17 +0800 |
commit | 7a72a22f9ba2c4e665dc4eefec60bc588ab57673 (patch) | |
tree | 43d1349bcc25af69d3bc05fe418bf7a77ea37322 /chapter07/chroot.xml | |
parent | 1780e72d8d14621ffe3aaea89678d2eb93a63bf1 (diff) | |
parent | e07c41946983e891b283482c294ed748494c2578 (diff) |
Merge tag 'xry111/update-20231113' into trunk
There are some suspicious "nptl/tst-robust" test failures in Glibc, but
all other test results are clean. To be diagnosed...
And note that jhalfs needs an update to work with the merged parallelism
changes.
Diffstat (limited to 'chapter07/chroot.xml')
-rw-r--r-- | chapter07/chroot.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chapter07/chroot.xml b/chapter07/chroot.xml index b8de03dc2..a8cd5f878 100644 --- a/chapter07/chroot.xml +++ b/chapter07/chroot.xml @@ -23,8 +23,21 @@ TERM="$TERM" \ PS1='(lfs chroot) \u:\w\$ ' \ PATH=/usr/bin:/usr/sbin \ + MAKEFLAGS="-j<replaceable>$(nproc)</replaceable>" \ + TESTSUITEFLAGS="-j<replaceable>$(nproc)</replaceable>" \ /bin/bash --login</userinput></screen> + <para> + Again, replace <replaceable>$(nproc)</replaceable> with the number + of logical cores you want to use for building packages in this chapter + and the following chapters if you don't want to use all available + logical cores. The test suites of some packages (notably Autoconf, + Libtool, and Tar) in &ch-final; are not affected by + <envar>MAKEFLAGS</envar>, they use a <envar>TESTSUITEFLAGS</envar> + environment variable instead. So we set it here as well for running + these test suites with multiple cores. + </para> + <para>The <parameter>-i</parameter> option given to the <command>env</command> command will clear all the variables in the chroot environment. After that, only the <envar>HOME</envar>, <envar>TERM</envar>, <envar>PS1</envar>, and |