diff --git a/chapter05/binutils-pass1.xml b/chapter05/binutils-pass1.xml index 1ddea43ed..f3b651fc5 100644 --- a/chapter05/binutils-pass1.xml +++ b/chapter05/binutils-pass1.xml @@ -150,7 +150,7 @@ cd build for a dynamic linker to perform symbol lookup. On LFS the dynamic linker (provided by the Glibc package) will always use the GNU-style hash table which is faster to query. So the classic - ELF hash table is completely useless. This makes the the linker + ELF hash table is completely useless. This makes the linker only generate the GNU-style hash table by default, so we can avoid wasting time to generate the classic ELF hash table when we build the packages, or wasting disk space to store it. diff --git a/chapter08/udev.xml b/chapter08/udev.xml index e2016042c..570f304e7 100644 --- a/chapter08/udev.xml +++ b/chapter08/udev.xml @@ -126,9 +126,10 @@ meson setup \ Get the list of the shipped udev helpers and save it into an - environment variable: + environment variable (exporting it is not strictly necessary, but it makes + building as a regular user or using a package manager easier): - udev_helpers=$(grep "'name' :" ../src/udev/meson.build | \ + export udev_helpers=$(grep "'name' :" ../src/udev/meson.build | \ awk '{print $3}' | tr -d ",'" | grep -v 'udevadm') Only build the components needed for udev: @@ -186,6 +187,12 @@ sed 's|lib.*udevd|sbin/udevd|' \ rm /usr/share/man/man*/systemd* + Finally, unset the udev_helpers variable: + + + unset udev_helpers +