Changeset 716db1f
- Timestamp:
- 09/20/2021 07:37:34 AM (21 months ago)
- Branches:
- multilib
- Children:
- 60870bc
- Parents:
- e680022 (diff), 7e62bbc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 127 edited
Legend:
- Unmodified
- Added
- Removed
-
INSTALL
re680022 r716db1f 1 1 LFS Book Conversion Tools Installation Instructions 2 2 3 After downloading the SVN source, there are some things that need to be set up 4 on your computer if you want to convert the XML source into something easier to 5 read (e.g. HTML, TXT, or PDF). If you are interested in this, then keep 6 reading. If you are only interested in editing the XML source for re- 7 submission to the lfs-book or lfs-dev mailing lists, then you do not need this 8 document. Instead, you need to read the LFS Editor's Manual. See the LFS 3 After downloading the SVN source, there are some things that need to be set up 4 on your computer if you want to convert the XML source into something easier to 5 read (e.g. HTML, TXT, or PDF). If you are interested in this, then keep 6 reading. If you are only interested in editing the XML source for re- 7 submission to the lfs-book or lfs-dev mailing lists, then you do not need this 8 document. Instead, you need to read the LFS Editor's Manual. See the LFS 9 9 website at https://www.linuxfromscratch.org for more information. 10 10 … … 19 19 - https://www.linuxfromscratch.org/blfs/view/svn/general/libxslt.html 20 20 21 * DocBook DTD 21 * DocBook DTD 22 22 - https://www.linuxfromscratch.org/blfs/view/svn/pst/xml.html 23 23 24 * DocBook XSL Stylesheets 24 * DocBook XSL Stylesheets 25 25 - https://www.linuxfromscratch.org/blfs/view/svn/pst/docbook-xsl.html 26 26 … … 28 28 - https://www.linuxfromscratch.org/blfs/view/svn/general/tidy-html5.html 29 29 30 ------------------------------------------------------------------------------- 30 ------------------------------------------------------------------------------- 31 31 32 32 If you want to convert the XML to TXT, install the above items, and then install … … 36 36 - https://www.linuxfromscratch.org/blfs/view/svn/basicnet/lynx.html 37 37 38 ------------------------------------------------------------------------------- 38 ------------------------------------------------------------------------------- 39 39 40 40 If you want to convert the XML to PDF, install the items listed above (except -
Makefile
re680022 r716db1f 158 158 @echo "Validation complete." 159 159 160 profile-html: 160 profile-html: 161 161 @echo "Generating profiled XML for XHTML..." 162 162 $(Q)xsltproc --nonet \ -
README
re680022 r716db1f 1 1 LFS Book README 2 2 3 This document is meant to instruct the user on how to convert the book's XML 4 source to other formats (e.g. HTML, PDF, PS and TXT). First, if you have not 3 This document is meant to instruct the user on how to convert the book's XML 4 source to other formats (e.g. HTML, PDF, PS and TXT). First, if you have not 5 5 already done so, please read the INSTALL file for instructions on how to install 6 6 the required software. If you have already completed the steps outlined in the … … 8 8 various other formats. 9 9 10 In all examples, setting the parameter REV=systemd is needed to build the 10 In all examples, setting the parameter REV=systemd is needed to build the 11 11 systemd version of the book. 12 12 -
appendices/acknowledgments.xml
re680022 r716db1f 76 76 77 77 <listitem> 78 <para><ulink url="mailto:jmengual@linuxfromscratch.org">Jean-Philippe 78 <para><ulink url="mailto:jmengual@linuxfromscratch.org">Jean-Philippe 79 79 Mengual </ulink> <jmengual@linuxfromscratch.org> – French LFS 80 80 translation project 2008-2016</para> … … 82 82 83 83 <listitem> 84 <para><ulink url="mailto:jlepiller@linuxfromscratch.org">Julien 84 <para><ulink url="mailto:jlepiller@linuxfromscratch.org">Julien 85 85 Lepiller </ulink> <jlepiller@linuxfromscratch.org> – French LFS 86 86 translation project 2017-present</para> … … 100 100 101 101 <listitem> 102 <para><ulink url="mailto:info@linuxfromscratch.org.ru">Anton Maisak</ulink> 102 <para><ulink url="mailto:info@linuxfromscratch.org.ru">Anton Maisak</ulink> 103 103 <info@linuxfromscratch.org.ru> – Russian LFS 104 104 translation project</para> … … 106 106 107 107 <listitem> 108 <para><ulink url="mailto:helen@linuxfromscratch.org.ru">Elena Shevcova</ulink> 108 <para><ulink url="mailto:helen@linuxfromscratch.org.ru">Elena Shevcova</ulink> 109 109 <helen@linuxfromscratch.org.ru> – Russian LFS 110 110 translation project</para> -
appendices/dependencies.xml
re680022 r716db1f 473 473 <seg> 474 474 <ulink url="https://metacpan.org/pod/Expect">Expect.pm</ulink> 475 and 475 and 476 476 <ulink url="https://metacpan.org/pod/IO::Tty">IO::Tty</ulink> 477 477 </seg> … … 748 748 <seg> 749 749 <ulink url="&blfs-book;general/tk.html">Tk</ulink> 750 </seg> 750 </seg> 751 751 </seglistitem> 752 752 </segmentedlist> … … 951 951 <ulink url="http://gcc.gnu.org/wiki/GNAT">GNAT</ulink> 952 952 and 953 <ulink url="https://repo.or.cz/isl.git">ISL</ulink> 953 <ulink url="https://repo.or.cz/isl.git">ISL</ulink> 954 954 </seg> 955 955 </seglistitem> … … 2557 2557 </seglistitem> 2558 2558 </segmentedlist> 2559 2560 2559 2561 2560 <segmentedlist id="python-testdeps"> -
bootscripts/ChangeLog
re680022 r716db1f 7 7 8 8 2021-04-28 Bruce Dubbs <bdubbs@linuxfromscratch.org> 9 * Make check_signal more robust. 9 * Make check_signal more robust. 10 10 * Use a better methog for killproc to remove a dead pid file. 11 11 * Clarify what signals killproc accepts. … … 85 85 * Remove local attribue of some variables for Bourne 86 86 shell compatability 87 * Specify /bin/echo in commands with -e switch for 87 * Specify /bin/echo in commands with -e switch for 88 88 Bourne shell compatability 89 89 … … 122 122 ** Updated ifup.8 to reflect current usage 123 123 ** ifup 124 *** Move interface up logic to after service scripts. Eliminates the 124 *** Move interface up logic to after service scripts. Eliminates the 125 125 need for the LINK_CHECK variable. 126 126 *** Sets the GATEWAY if the variable is set … … 168 168 * Create convenience symlink /etc/init.d->/etc/rc.d/init.d. 169 169 * Add help and man pages to upup/ifdown. 170 * Append /run/var/bootlog to /var/log/boot.log at the end of 170 * Append /run/var/bootlog to /var/log/boot.log at the end of 171 171 the boot sequence. 172 172 * Add capabiltiy to step through the boot scripts at boot time 173 * Optionally allow environment variables in sysconfig directory's 173 * Optionally allow environment variables in sysconfig directory's 174 174 console, network, and clock files to be placed in rc.site. 175 175 * Add an optional FASTBOOT parameter to set /fastboot when rebooting. … … 184 184 ** Add /etc/sysconfig/init_params for adding environmental parameters 185 185 to all functions used in bootscripts 186 ** Move network configuration to /etc/sysconfig/ifconfig.*. The 187 ifconfig files can have any extension. Use IFACE parameter to 186 ** Move network configuration to /etc/sysconfig/ifconfig.*. The 187 ifconfig files can have any extension. Use IFACE parameter to 188 188 specify the target network interface within the configuration file. 189 ** Adds an optional parameter, SKIPTMPCLEAN, to skip the removal of 190 files in /tmp at bootup. Specify the variable in 189 ** Adds an optional parameter, SKIPTMPCLEAN, to skip the removal of 190 files in /tmp at bootup. Specify the variable in 191 191 /etc/sysconfig/init_params. 192 192 … … 224 224 2009-01-02 Bruce Dubbs <bdubbs@linuxfromscratch.org> 225 225 * lfs/init.d/functions: 226 * lfs/sysconfig/network-devices/ifup: 227 Updated line widths to accommodate pdf generation in both the above 226 * lfs/sysconfig/network-devices/ifup: 227 Updated line widths to accommodate pdf generation in both the above 228 228 files. 229 229 … … 342 342 n/a - June 2, 2006 343 343 * Removed console config file and makefile targets. 344 * Removed references to /dev/bug and bugreport in udev and344 * Removed references to /dev/bug and bugreport in udev and 345 345 udev_retry bootscripts. (DJ Lucas) 346 346 … … 351 351 352 352 n/a - April 15, 2006 353 * Cleaned up contrib directory. Removed: contrib/init.d, 354 contrib/enhanced, contrib/livecd, contrib/hotplug, and raq2 353 * Cleaned up contrib directory. Removed: contrib/init.d, 354 contrib/enhanced, contrib/livecd, contrib/hotplug, and raq2 355 355 patch. (DJ Lucas) 356 356 357 357 n/a - April 14, 2006 358 358 * Merged changes from udev_update branch (DJ Lucas) 359 * Replaced a return with an exit and reversed comment changes in 359 * Replaced a return with an exit and reversed comment changes in 360 360 udev bootscript. (Dan Nicholson) 361 361 * Replaced walk_sysfs function in udev bootscript with new udevtrigger … … 370 370 371 371 n/a - March 10, 2006 372 * Moved src argument to ipv4-static-route service script and 372 * Moved src argument to ipv4-static-route service script and 373 373 removed from ipv4-static service script. (DJ Lucas) 374 374 … … 389 389 * Made above killproc/print_status changes in enhanced 390 390 bootscripts. 391 * Made logger service configurable in enhanced 391 * Made logger service configurable in enhanced 392 392 bootscripts. (DJ Lucas) 393 393 394 394 n/a - August 14, 2005 395 * Added -s flag to pidofproc() for backwards 395 * Added -s flag to pidofproc() for backwards 396 396 compatibility (DJ Lucas) 397 * Fixed erronous values returned by pidofproc() which 397 * Fixed erronous values returned by pidofproc() which 398 398 broke the functionality of statusproc (DJ Lucas) 399 399 … … 403 403 404 404 n/a - June 26, 2005 405 * Removed consolelog script from contrib 406 * Updated interactive rc script in contrib and added 405 * Removed consolelog script from contrib 406 * Updated interactive rc script in contrib and added 407 407 README.rc-Interactive, added install target to the 408 408 Makefile. (DJ Lucas) … … 600 600 n/a - September 21, 2004 601 601 * boot_mesg has been enhanced. Subsequent calls will overwrite 602 previous text, and it will wrap text basedupon the variable ${WCOL}. 602 previous text, and it will wrap text basedupon the variable ${WCOL}. 603 603 (James Robertson) 604 604 * Fixed mtu optional service typo (Kevin P Fleming) … … 609 609 610 610 n/a - September 15, 2004 611 * Added blue bracket, from dj's 3.0-pre1 bootscript package 611 * Added blue bracket, from dj's 3.0-pre1 bootscript package 612 612 [echo_failure, echo_warning, and echo_ok] 613 613 * Added a new function called boot_mesg, meant to replace the echo … … 633 633 634 634 n/a - August 4, 2004 635 * Added MODE, DIRMODE, and CONFMODE variables to the makefile 635 * Added MODE, DIRMODE, and CONFMODE variables to the makefile 636 636 to allow permissions to be set at install. (DJ) 637 637 638 638 n/a - July 31, 2004 639 640 639 * Moved PIDFILE check to getpids and removed arguments from 641 640 killproc and reloadproc. Signals are now set at beginning of … … 646 645 n/a - July 21, 2004 647 646 648 * Committed DJ Lucas's patch for the killproc function. It no 647 * Committed DJ Lucas's patch for the killproc function. It no 649 648 longer requires arguments if PIDFILE is set 650 649 * added --backup to all sysconfig configuration files, so they are not … … 979 978 * Changed service script install targets to use 980 979 create-service-dir 981 * Added check for dhcpcd service script for stale pid file 980 * Added check for dhcpcd service script for stale pid file 982 981 Suggested by Jeremy 983 982 * Added ifconfig to ipx service script for hosting device not up -
bootscripts/Makefile
re680022 r716db1f 30 30 ln -sfn rc.d/init.d ${ETCDIR}/init.d 31 31 32 files: create-dirs 32 files: create-dirs 33 33 install -m ${MODE} lfs/init.d/checkfs ${ETCDIR}/rc.d/init.d/ 34 34 install -m ${MODE} lfs/init.d/cleanfs ${ETCDIR}/rc.d/init.d/ … … 127 127 rm -rf ${DESTDIR}/lib/services ${DESTDIR}/lib/lsb ${ETCDIR}/rc.d ${ETCDIR}/init.d \ 128 128 ${SBIN}/ifup ${SBIN}/ifdown ${MAN8}/ifup.8 ${MAN8}/ifdown.8 \ 129 ${ETCDIR}/sysconfig/rc 129 ${ETCDIR}/sysconfig/rc 130 130 131 131 .PHONY: all create-dirs install files links rcS rc0 rc1 rc2 rc3 rc4 rc5 rc6 uninstall -
bootscripts/README
re680022 r716db1f 49 49 - SKIPTMPCLEAN: skips cleaning of /tmp directory 50 50 51 /etc/sysconfig/createfiles 51 /etc/sysconfig/createfiles 52 52 Each line is parsed, using space as a deliminator. 53 53 [NAME] [TYPE] [PERMISSIONS] [USER] [GROUP] -
bootscripts/lfs/init.d/checkfs
re680022 r716db1f 62 62 log_failure_msg "${msg}" 63 63 64 log_info_msg "Press Enter to continue..." 64 log_info_msg "Press Enter to continue..." 65 65 wait_for_user 66 66 /etc/rc.d/init.d/halt stop … … 70 70 71 71 if [ -f /forcefsck ]; then 72 msg="/forcefsck found, forcing file" 72 msg="/forcefsck found, forcing file" 73 73 msg="${msg} system checks as requested." 74 74 log_success_msg "$msg" … … 109 109 log_failure_msg "$msg" 110 110 111 log_info_msg "Press Enter to continue..." 111 log_info_msg "Press Enter to continue..." 112 112 wait_for_user 113 113 reboot -f … … 126 126 log_failure_msg "$msg" 127 127 128 log_info_msg "Press Enter to continue..." 128 log_info_msg "Press Enter to continue..." 129 129 wait_for_user 130 130 /etc/rc.d/init.d/halt stop -
bootscripts/lfs/init.d/cleanfs
re680022 r716db1f 23 23 # Short-Description: Cleans temporary directories early in the boot process. 24 24 # Description: Cleans temporary directories /run, /var/lock, and 25 # optionally, /tmp. cleanfs also creates /run/utmp 25 # optionally, /tmp. cleanfs also creates /run/utmp 26 26 # and any files defined in /etc/sysconfig/createfiles. 27 27 # X-LFS-Provided-By: LFS … … 31 31 32 32 # Function to create files/directory on boot. 33 create_files() 33 create_files() 34 34 { 35 35 # Input to file descriptor 9 and output to stdin (redirection) … … 64 64 mknod "${name}" p 65 65 ;; 66 *) 67 log_warning_msg "\nUnknown device type: ${dtype}" 66 *) 67 log_warning_msg "\nUnknown device type: ${dtype}" 68 68 ;; 69 69 esac 70 70 ;; 71 71 *) 72 log_warning_msg "\nUnknown type: ${type}" 72 log_warning_msg "\nUnknown type: ${type}" 73 73 continue 74 74 ;; … … 88 88 case "${1}" in 89 89 start) 90 log_info_msg "Cleaning file systems:" 90 log_info_msg "Cleaning file systems:" 91 91 92 92 if [ "${SKIPTMPCLEAN}" = "" ]; then 93 log_info_msg2 " /tmp" 93 log_info_msg2 " /tmp" 94 94 cd /tmp && 95 95 find . -xdev -mindepth 1 ! -name lost+found -delete || failed=1 -
bootscripts/lfs/init.d/console
re680022 r716db1f 33 33 [ -r /etc/sysconfig/console ] && . /etc/sysconfig/console 34 34 35 is_true() 35 is_true() 36 36 { 37 37 [ "$1" = "1" ] || [ "$1" = "yes" ] || [ "$1" = "true" ] … … 44 44 # See if we need to do anything 45 45 if [ -z "${KEYMAP}" ] && [ -z "${KEYMAP_CORRECTIONS}" ] && 46 [ -z "${FONT}" ] && [ -z "${LEGACY_CHARSET}" ] && 47 ! is_true "${UNICODE}"; then 46 [ -z "${FONT}" ] && [ -z "${LEGACY_CHARSET}" ] && 47 ! is_true "${UNICODE}"; then 48 48 exit 0 49 49 fi … … 86 86 loadkeys ${KEYMAP} >/dev/null 2>&1 || 87 87 failed=1 88 88 89 89 [ -z "${KEYMAP_CORRECTIONS}" ] || 90 90 loadkeys ${KEYMAP_CORRECTIONS} >/dev/null 2>&1 || … … 98 98 # If any of the commands above failed, the trap at the 99 99 # top would set $failed to 1 100 ( exit $failed ) 100 ( exit $failed ) 101 101 evaluate_retval 102 102 103 103 exit $failed 104 ;; 104 ;; 105 105 106 *) 106 *) 107 107 echo "Usage: ${0} {start}" 108 exit 1 109 ;; 108 exit 1 109 ;; 110 110 esac 111 111 -
bootscripts/lfs/init.d/modules
re680022 r716db1f 38 38 egrep -qv '^($|#)' /etc/sysconfig/modules || exit 0 39 39 40 log_info_msg "Loading modules:" 40 log_info_msg "Loading modules:" 41 41 42 42 # Only try to load modules if the user has actually given us … … 55 55 # Print the module name if successful, otherwise take note. 56 56 if [ $? -eq 0 ]; then 57 log_info_msg2 " ${module}" 57 log_info_msg2 " ${module}" 58 58 else 59 59 failedmod="${failedmod} ${module}" … … 64 64 log_success_msg2 65 65 66 # Print a failure message with a list of any modules that 66 # Print a failure message with a list of any modules that 67 67 # may have failed to load. 68 68 if [ -n "${failedmod}" ]; then 69 log_failure_msg "Failed to load modules:${failedmod}" 69 log_failure_msg "Failed to load modules:${failedmod}" 70 70 exit 1 71 71 fi -
bootscripts/lfs/init.d/mountvirtfs
re680022 r716db1f 40 40 chmod 1777 /run/shm /run/lock 41 41 42 log_info_msg "Mounting virtual file systems: ${INFO}/run" 42 log_info_msg "Mounting virtual file systems: ${INFO}/run" 43 43 44 44 if ! mountpoint /proc >/dev/null; then … … 48 48 49 49 if ! mountpoint /sys >/dev/null; then 50 log_info_msg2 " ${INFO}/sys" 50 log_info_msg2 " ${INFO}/sys" 51 51 mount -o nosuid,noexec,nodev /sys || failed=1 52 52 fi 53 53 54 54 if ! mountpoint /dev >/dev/null; then 55 log_info_msg2 " ${INFO}/dev" 55 log_info_msg2 " ${INFO}/dev" 56 56 mount -o mode=0755,nosuid /dev || failed=1 57 57 fi 58 58 59 59 ln -sfn /run/shm /dev/shm 60 60 61 61 (exit ${failed}) 62 62 evaluate_retval -
bootscripts/lfs/init.d/network
re680022 r716db1f 44 44 stop) 45 45 # Unmount any network mounted file systems 46 umount --all --force --types nfs,cifs,nfs4 46 umount --all --force --types nfs,cifs,nfs4 47 47 48 48 # Reverse list -
bootscripts/lfs/init.d/rc
re680022 r716db1f 19 19 log_failure_msg 20 20 # $i is set when called 21 MSG="FAILURE:\n\nYou should not be reading this error message.\n\n" 21 MSG="FAILURE:\n\nYou should not be reading this error message.\n\n" 22 22 MSG="${MSG}It means that an unforeseen error took place in\n" 23 23 MSG="${MSG}${i},\n" 24 24 MSG="${MSG}which exited with a return value of ${error_value}.\n" 25 25 26 26 MSG="${MSG}If you're able to track this error down to a bug in one of\n" 27 27 MSG="${MSG}the files provided by the ${DISTRO_MINI} book,\n" … … 37 37 # $i is set when called 38 38 if [ ! -f ${i} ]; then 39 log_warning_msg "${i} is not a valid symlink." 39 log_warning_msg "${i} is not a valid symlink." 40 40 SCRIPT_STAT="1" 41 41 fi … … 103 103 104 104 if [ ! -d /etc/rc.d/rc${runlevel}.d ]; then 105 log_info_msg "/etc/rc.d/rc${runlevel}.d does not exist.\n" 105 log_info_msg "/etc/rc.d/rc${runlevel}.d does not exist.\n" 106 106 exit 1 107 107 fi … … 110 110 111 111 # Note: In ${LOGLEVEL:-7}, it is ':' 'dash' '7', not minus 7 112 if [ "$runlevel" == "S" ]; then 113 [ -r /etc/sysconfig/console ] && source /etc/sysconfig/console 114 dmesg -n "${LOGLEVEL:-7}" 112 if [ "$runlevel" == "S" ]; then 113 [ -r /etc/sysconfig/console ] && source /etc/sysconfig/console 114 dmesg -n "${LOGLEVEL:-7}" 115 115 fi 116 116 … … 226 226 if [ "${previous}" == "N" -a "${runlevel}" != "S" ]; then 227 227 cat $BOOTLOG >> /var/log/boot.log 228 228 229 229 # Mark the end of boot 230 230 echo "--------" >> /var/log/boot.log 231 231 232 232 # Remove the temporary file 233 233 rm -f $BOOTLOG 2> /dev/null -
bootscripts/lfs/init.d/setclock
re680022 r716db1f 14 14 15 15 ### BEGIN INIT INFO 16 # Provides: 16 # Provides: 17 17 # Required-Start: 18 18 # Should-Start: modules -
bootscripts/lfs/init.d/swap
re680022 r716db1f 49 49 50 50 status) 51 log_success_msg "Retrieving swap status." 51 log_success_msg "Retrieving swap status." 52 52 swapon -s 53 53 ;; -
bootscripts/lfs/init.d/udev
re680022 r716db1f 61 61 # If any LVM based partitions are on the system, ensure they 62 62 # are activated so they can be used. 63 if [ -x /sbin/vgchange ]; then /sbin/vgchange -a y >/dev/null; fi 63 if [ -x /sbin/vgchange ]; then /sbin/vgchange -a y >/dev/null; fi 64 64 65 log_success_msg2 65 log_success_msg2 66 66 ;; 67 67 -
bootscripts/lfs/init.d/udev_retry
re680022 r716db1f 8 8 # DJ Lucas - dj@linuxfromscratch.org 9 9 # Update : Bruce Dubbs - bdubbs@linuxfromscratch.org 10 # Bryan Kadzban - 10 # Bryan Kadzban - 11 11 # 12 12 # Version : LFS 7.0 … … 40 40 # From Debian: "copy the rules generated before / was mounted 41 41 # read-write": 42 42 43 43 for file in ${rundir}/tmp-rules--*; do 44 44 dest=${file##*tmp-rules--} … … 48 48 done 49 49 50 # Re-trigger the uevents that may have failed, 50 # Re-trigger the uevents that may have failed, 51 51 # in hope they will succeed now 52 52 /bin/sed -e 's/#.*$//' /etc/sysconfig/udev_retry | /bin/grep -v '^$' | \ -
bootscripts/lfs/lib/services/init-functions
re680022 r716db1f 1 1 #!/bin/sh 2 2 ######################################################################## 3 # 3 # 4 4 # Begin /lib/lsb/init-funtions 5 5 # … … 155 155 fi 156 156 157 # Return a value ONLY 157 # Return a value ONLY 158 158 # It is the init script's (or distribution's functions) responsibilty 159 159 # to log messages! … … 161 161 162 162 0) 163 # Program is already running correctly, this is a 163 # Program is already running correctly, this is a 164 164 # successful start. 165 165 return 0 … … 231 231 shift 2 232 232 ;; 233 233 234 234 *) 235 235 program="${1}" … … 244 244 if [ -n "${3}" ]; then 245 245 return 2 246 else 246 else 247 247 break 248 fi 248 fi 249 249 ;; 250 250 esac … … 322 322 if [ "${?}" -eq "0" ]; then # Signal is used to terminate the program 323 323 324 # Account for empty pidlist (pid file still exists and no 324 # Account for empty pidlist (pid file still exists and no 325 325 # signal was given) 326 326 if [ "${pidlist}" != "" ]; then … … 337 337 kill "${signal}" "${pid}" 2> /dev/null 338 338 339 # Wait up to ${delay}/10 seconds to for "${pid}" to 339 # Wait up to ${delay}/10 seconds to for "${pid}" to 340 340 # terminate in 10ths of a second 341 341 … … 434 434 prefix=`echo "${program}" | sed 's/[^/]*$//'` 435 435 436 if [ -z "${prefix}" ]; then 436 if [ -z "${prefix}" ]; then 437 437 progname="${program}" 438 438 else … … 584 584 timespec 585 585 /bin/echo -e "${STAMP} ${logmessage} OK" >> ${BOOTLOG} 586 586 587 587 return 0 588 588 } … … 594 594 595 595 echo " OK" >> ${BOOTLOG} 596 596 597 597 return 0 598 598 } … … 619 619 logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` 620 620 /bin/echo -e "${STAMP} ${logmessage} FAIL" >> ${BOOTLOG} 621 621 622 622 return 0 623 623 } … … 629 629 630 630 echo "FAIL" >> ${BOOTLOG} 631 631 632 632 return 0 633 633 } … … 651 651 timespec 652 652 /bin/echo -e "${STAMP} ${logmessage} WARN" >> ${BOOTLOG} 653 653 654 654 return 0 655 655 } … … 663 663 logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` 664 664 /bin/echo "SKIP" >> ${BOOTLOG} 665 665 666 666 return 0 667 667 } … … 684 684 timespec 685 685 /bin/echo -n -e "${STAMP} ${logmessage}" >> ${BOOTLOG} 686 686 687 687 return 0 688 688 } … … 695 695 logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` 696 696 /bin/echo -n -e "${logmessage}" >> ${BOOTLOG} 697 697 698 698 return 0 699 699 } -
bootscripts/lfs/lib/services/ipv4-static-route
re680022 r716db1f 57 57 58 58 if [ -z "${PREFIX}" ]; then 59 log_failure_msg "PREFIX variable missing from ${IFCONFIG}, cannot continue." 59 log_failure_msg "PREFIX variable missing from ${IFCONFIG}, cannot continue." 60 60 exit 1 61 61 fi 62 62 63 63 args="${args} ${IP}/${PREFIX}" 64 64 desc="${desc}${IP}/${PREFIX}" … … 83 83 evaluate_retval 84 84 ;; 85 85 86 86 down) 87 87 log_info_msg "Removing '${desc}' route from the ${1} interface..." … … 89 89 evaluate_retval 90 90 ;; 91 91 92 92 *) 93 93 echo "Usage: ${0} [interface] {up|down}" -
bootscripts/lfs/sbin/ifdown
re680022 r716db1f 1 #!/bin/bash 1 #!/bin/bash 2 2 ######################################################################## 3 3 # Begin /sbin/ifdown … … 31 31 echo "${USAGE}" >& 2 32 32 exit 2 ;; 33 33 34 34 *) break ;; 35 35 esac … … 54 54 [ "${file}" = "${file%""~""}" ] || exit 0 55 55 56 . /lib/lsb/init-functions 56 . /lib/lsb/init-functions 57 57 58 58 if [ ! -r "${file}" ]; then -
bootscripts/lfs/sbin/ifup
re680022 r716db1f 49 49 50 50 --version | -V) echo "${VERSTR}"; exit 0 ;; 51 51 52 52 -*) echo "ifup: ${1}: invalid option" >&2 53 53 echo "${USAGE}" >& 2 54 54 exit 2 ;; 55 55 56 56 *) break ;; 57 57 esac … … 103 103 for S in ${SERVICE}; do 104 104 if [ ! -x "/lib/services/${S}" ]; then 105 MSG="\nUnable to process ${file}. Either " 105 MSG="\nUnable to process ${file}. Either " 106 106 MSG="${MSG}the SERVICE '${S} was not present " 107 107 MSG="${MSG}or cannot be executed." … … 114 114 115 115 # Create/configure the interface 116 for S in ${SERVICE}; do 116 for S in ${SERVICE}; do 117 117 IFCONFIG=${file} /lib/services/${S} ${IFACE} up 118 118 done … … 129 129 if test -n "${MTU}"; then 130 130 if [[ ${MTU} =~ ^[0-9]+$ ]] && [[ $MTU -ge 68 ]] ; then 131 for I in $IFACE $INTERFACE_COMPONENTS; do 132 ip link set dev $I mtu $MTU; 131 for I in $IFACE $INTERFACE_COMPONENTS; do 132 ip link set dev $I mtu $MTU; 133 133 done 134 134 else 135 135 log_info_msg2 "Invalid MTU $MTU" 136 136 fi 137 fi 137 fi 138 138 139 139 # Set the route default gateway if requested -
bootscripts/lfs/sbin/ifup.8
re680022 r716db1f 15 15 16 16 DESCRIPTION 17 The ifup and ifdown commands may be used to configure 18 (or, respectively, deconfigure) a network interface based 19 on interface definitions in the file 17 The ifup and ifdown commands may be used to configure 18 (or, respectively, deconfigure) a network interface based 19 on interface definitions in the file 20 20 /etc/sysconfig/ifconfig.IFACE. 21 21 … … 31 31 EXAMPLES 32 32 ifup eth0 33 Bring up the interface defined in the file 33 Bring up the interface defined in the file 34 34 /etc/sysconfig/ifconfig.eth0 35 35 … … 50 50 LABEL=eth0:2 51 51 SERVICE=dhcpcd 52 52 53 53 DHCP_START="--waitip" 54 54 DHCP_STOP="-k" 55 55 56 56 # Set PRINTIP="yes" to have the script print the DHCP IP address 57 57 PRINTIP="yes" 58 58 59 59 # Set PRINTALL="yes" to print the DHCP assigned values for 60 # IP, SM, DG, and 1st NS. 60 # IP, SM, DG, and 1st NS. 61 61 PRINTALL="no" 62 62 63 63 ifup br0 64 Bring up the interface defined in the file 64 Bring up the interface defined in the file 65 65 /etc/sysconfig/ifconfig.br0 66 66 67 67 ONBOOT=yes 68 68 IFACE=br0 … … 78 78 NOTES 79 79 The program does not configure network interfaces direct- 80 ly. It runs scripts defined by the SERVICE variable in 80 ly. It runs scripts defined by the SERVICE variable in 81 81 the network configuration file. 82 82 … … 84 84 ment variables set: 85 85 86 IFACE - The interface to configure, e.g. eth0. It must 86 IFACE - The interface to configure, e.g. eth0. It must 87 87 be available in /sys/class/net. 88 88 89 89 SERVICE - The service script to run to bring up the inter- 90 face. Standard services are ipv4-static and 90 face. Standard services are ipv4-static and 91 91 ipv4-static-route. Other services such as dhcp 92 92 or bridge may be installed. This value may … … 94 94 compound device such as a bridge. 95 95 96 ONBOOT - If set to 'yes', the specified interface is 96 ONBOOT - If set to 'yes', the specified interface is 97 97 configured by the netowrk boot script. 98 98 99 99 GATEWAY - The default IP address to use for routing if 100 the destination IP address is not in a static 101 route or on a local network, e.g., 192.168.1.1. 102 For secondary IP addresses on an interface, this 100 the destination IP address is not in a static 101 route or on a local network, e.g., 192.168.1.1. 102 For secondary IP addresses on an interface, this 103 103 parameter should not be specified. If the service 104 104 is ipv4-static-route, this parameter must NOT … … 106 106 107 107 STATIC_GATEWAY - The default IP address to use for routing 108 when setting a static routing address. 108 when setting a static routing address. 109 109 110 110 INTERFACE_COMPONENTS - A list of component interfaces 111 only needed for a compound device such as a bridge. 112 This list is normally a single value, e.g. eth0, 111 only needed for a compound device such as a bridge. 112 This list is normally a single value, e.g. eth0, 113 113 for use with a virtual host such as kvm. 114 114 … … 117 117 ipv4-static 118 118 119 IP - The IP address of the interface, 119 IP - The IP address of the interface, 120 120 e.g. 192.168.1.2. 121 121 … … 123 123 number of the interface. The default, if not 124 124 specified, is 24. 125 126 LABEL - The label to be assigned to the interface. 125 126 LABEL - The label to be assigned to the interface. 127 127 This is normally specified for assigning 128 128 additional IP addresses to a network 129 129 device. Example: eth0:2 (optional) 130 131 BROADCAST - The brodcast address for this interface, 132 e.g 192.168.1.255. If not specified, 130 131 BROADCAST - The brodcast address for this interface, 132 e.g 192.168.1.255. If not specified, 133 133 the broadcast address will be calculated 134 134 from the IP and PREFIX. … … 136 136 ipv4-static-route 137 137 138 TYPE - The type of route, typically 'default', 138 TYPE - The type of route, typically 'default', 139 139 'network', 'or host'. 140 140 … … 146 146 STATIC_GATEWAY - The IP address for a network route. 147 147 148 SOURCE - The source IP address to prefer when sending 148 SOURCE - The source IP address to prefer when sending 149 149 to the destinations covered by the specified 150 150 route. (optional) … … 155 155 at startup. 156 156 157 DHCP_STOP - Optional paremeters to pass to the dhcp client 157 DHCP_STOP - Optional paremeters to pass to the dhcp client 158 158 at shutdown. 159 159 … … 165 165 166 166 IP_FORWARD - An optional flag to enable the system to forward 167 inbound IP packets received by one interface to 168 another outbound interface. 167 inbound IP packets received by one interface to 168 another outbound interface. 169 169 170 170 STP - Set bridge spanning tree protocol. Default is no. … … 172 172 FILES 173 173 /etc/sysconfig/ifconfig.* 174 definitions of network interfaces 174 definitions of network interfaces 175 175 176 176 AUTHORS 177 177 The ifup/ifdown suite was written by Nathan Coulson 178 <nathan@linuxfromscratch.org> and Kevin P. Fleming 178 <nathan@linuxfromscratch.org> and Kevin P. Fleming 179 179 <kpfleming@linuxfromscratch.org> 180 180 and updated by Bruce Dubbs <bdubbs@linuxfromscratch>. -
bootscripts/lfs/sysconfig/createfiles
re680022 r716db1f 12 12 # <filename> <type> <permissions> <user> <group> 13 13 # if type is equal to "dev" 14 # <filename> <type> <permissions> <user> <group> <devtype> 14 # <filename> <type> <permissions> <user> <group> <devtype> 15 15 # <major> <minor> 16 16 # … … 23 23 # block creates a block device 24 24 # char creates a character deivce 25 # pipe creates a pipe, this will ignore the <major> and 25 # pipe creates a pipe, this will ignore the <major> and 26 26 # <minor> fields 27 # <major> and <minor> are the major and minor numbers used for 27 # <major> and <minor> are the major and minor numbers used for 28 28 # the device. 29 29 ######################################################################## -
chapter01/askforhelp.xml
re680022 r716db1f 39 39 <itemizedlist> 40 40 <listitem> 41 <para> 42 The version of the book being used (in this case43 <phrase arch="default" revision="sysv">&version;</phrase>44 <phrase arch="ml_32,ml_x32,ml_all" revision="sysv">&version;-multilib</phrase>45 <phrase arch="default" revision="systemd">&versiond;</phrase>46 <phrase arch="ml_32,ml_x32,ml_all" revision="systemd">&versiond;-multilib</phrase>)47 </para>41 <para>The version of the book being used (in this case 42 <phrase revision="sysv">&version;</phrase> 43 <phrase revision="systemd">&versiond;</phrase>) 44 <phrase arch="default" revision="sysv">&version;</phrase> 45 <phrase arch="ml_32,ml_x32,ml_all" revision="sysv">&version;-multilib</phrase> 46 <phrase arch="default" revision="systemd">&versiond;</phrase> 47 <phrase arch="ml_32,ml_x32,ml_all" revision="systemd">&versiond;-multilib</phrase>)</para> 48 48 </listitem> 49 49 <listitem> -
chapter01/changelog.xml
re680022 r716db1f 12 12 13 13 <para>This is version 14 <phrase arch="default" revision="sysv">&version;</phrase>15 <phrase arch="ml_32,ml_x32,ml_all" revision="sysv">&version;-multilib</phrase>16 <phrase arch="default" revision="systemd">&versiond;</phrase>17 <phrase arch="ml_32,ml_x32,ml_all" revision="systemd">&versiond;-multilib</phrase>14 <phrase arch="default" revision="sysv">&version;</phrase> 15 <phrase arch="ml_32,ml_x32,ml_all" revision="sysv">&version;-multilib</phrase> 16 <phrase arch="default" revision="systemd">&versiond;</phrase> 17 <phrase arch="ml_32,ml_x32,ml_all" revision="systemd">&versiond;-multilib</phrase> 18 18 of the Linux From Scratch book, dated 19 19 &releasedate;. If this book is more than six months old, a newer and better … … 45 45 appropriate for the entry or if needed the entire day's listitem. 46 46 --> 47 <listitem> 48 <para>2021-09-15</para> 49 <itemizedlist> 50 <listitem> 51 <para>[bdubbs] - Ensure tcl documentation instructions are present. Fixes 52 <ulink url="&lfs-ticket-root;4923">#4923</ulink>.</para> 53 </listitem> 54 <listitem> 55 <para>[bdubbs] - Update to Python3-3.9.7. Fixes 56 <ulink url="&lfs-ticket-root;4916">#4916</ulink>.</para> 57 </listitem> 58 <listitem> 59 <para>[bdubbs] - Update to linux-5.14.3. Fixes 60 <ulink url="&lfs-ticket-root;4913">#4913</ulink>.</para> 61 </listitem> 62 <listitem> 63 <para>[bdubbs] - Update to libcap-2.57. Fixes 64 <ulink url="&lfs-ticket-root;4912">#4912</ulink>.</para> 65 </listitem> 66 <listitem> 67 <para>[bdubbs] - Update to iproute2-5.14.0. Fixes 68 <ulink url="&lfs-ticket-root;4917">#4917</ulink>.</para> 69 </listitem> 70 <listitem> 71 <para>[bdubbs] - Update to inetutils-2.2. Fixes 72 <ulink url="&lfs-ticket-root;4918">#4918</ulink>.</para> 73 </listitem> 74 <listitem> 75 <para>[bdubbs] - Update to gzip-1.11. Fixes 76 <ulink url="&lfs-ticket-root;4920">#4920</ulink>.</para> 77 </listitem> 78 <listitem> 79 <para>[bdubbs] - Update to gdbm-1.21. Fixes 80 <ulink url="&lfs-ticket-root;4919">#4919</ulink>.</para> 81 </listitem> 82 <listitem> 83 <para>[bdubbs] - Update to bison-3.8.1. Fixes 84 <ulink url="&lfs-ticket-root;4921">#4921</ulink>.</para> 85 </listitem> 86 <listitem> 87 <para>[bdubbs] - Update to bc-5.0.2. Fixes 88 <ulink url="&lfs-ticket-root;4908">#4905</ulink>.</para> 89 </listitem> 90 </itemizedlist> 91 </listitem> 92 93 <listitem> 94 <para>2021-09-08</para> 95 <itemizedlist> 96 <listitem> 97 <para>[renodr] - Fix regressions in File that result in improper 98 detection of text and XZ files.</para> 99 </listitem> 100 </itemizedlist> 101 </listitem> 102 103 <listitem> 104 <para>2021-09-06</para> 105 <itemizedlist> 106 <listitem> 107 <para>[bdubbs] - Text clarifications in the backup/restore section 108 of Chapter 7. Thanks to Kevin Buckley for the patch.</para> 109 </listitem> 110 </itemizedlist> 111 </listitem> 47 112 48 113 <listitem> -
chapter01/whatsnew.xml
re680022 r716db1f 46 46 <para>Bash &bash-version;</para> 47 47 </listitem>--> 48 < !--<listitem>48 <listitem> 49 49 <para>Bc &bc-version;</para> 50 </listitem> -->50 </listitem> 51 51 <!--<listitem> 52 52 <para>Binutils-&binutils-version;</para> 53 53 </listitem>--> 54 < !--<listitem>54 <listitem> 55 55 <para>Bison-&bison-version;</para> 56 </listitem> -->56 </listitem> 57 57 <!--<listitem> 58 58 <para>Bzip2-&bzip2-version;</para> … … 100 100 <para>GCC-&gcc-version;</para> 101 101 </listitem>--> 102 < !--<listitem>102 <listitem> 103 103 <para>GDBM-&gdbm-version;</para> 104 </listitem> -->104 </listitem> 105 105 <!--<listitem> 106 106 <para>Gettext-&gettext-version;</para> … … 124 124 <para>GRUB-&grub-version;</para> 125 125 </listitem>--> 126 < !--<listitem>126 <listitem> 127 127 <para>Gzip-&gzip-version;</para> 128 </listitem> -->128 </listitem> 129 129 <!--<listitem> 130 130 <para>IANA-Etc-&iana-etc-version;</para> 131 131 </listitem>--> 132 < !--<listitem>132 <listitem> 133 133 <para>Inetutils-&inetutils-version;</para> 134 </listitem> -->134 </listitem> 135 135 <!--<listitem> 136 136 <para>Intltool-&intltool-version;</para> 137 137 </listitem>--> 138 < !--<listitem>138 <listitem> 139 139 <para>IPRoute2-&iproute2-version;</para> 140 </listitem> -->140 </listitem> 141 141 <!--<listitem revision="systemd"> 142 142 <para>Jinja2-&jinja2-version;</para> … … 154 154 <para>LFS-Bootscripts-&lfs-bootscripts-version;</para> 155 155 </listitem>--> 156 < !--<listitem>156 <listitem> 157 157 <para>Libcap-&libcap-version;</para> 158 </listitem> -->158 </listitem> 159 159 <!--<listitem> 160 160 <para>Libelf-&elfutils-version; (from elfutils)</para> … … 169 169 <para>Libtool-&libtool-version;</para> 170 170 </listitem>--> 171 < !--<listitem>171 <listitem> 172 172 <para>Linux-&linux-version;</para> 173 </listitem> -->173 </listitem> 174 174 <!--<listitem> 175 175 <para>M4-&m4-version;</para> … … 220 220 <para>Psmisc-&psmisc-version;</para> 221 221 </listitem>--> 222 <!--<listitem>222 <listitem> 223 223 <para>Python-&python-version;</para> 224 </listitem> -->224 </listitem> 225 225 <!--<listitem> 226 226 <para>Readline-&readline-version;</para> … … 285 285 <title>Added:</title> 286 286 <listitem><para></para></listitem> <!-- satisfy build --> 287 <listitem> 288 <para>file-5.40-upstream_fixes-1.patch</para> 289 </listitem> 287 290 <!-- 288 291 <listitem> -
chapter02/aboutlfs.xml
re680022 r716db1f 53 53 <filename>/root/.bash_profile</filename> file is incorporated as a part of 54 54 the login process.</para> 55 55 56 56 <para>Another consideration is the method that is used to log into the 57 57 host system. If logging in through a graphical display manager, the … … 59 59 a virtual terminal is started. In this case, add the export command to 60 60 the <filename>.bashrc</filename> file for the user and 61 <systemitem class="username">root</systemitem>. In addition, 62 some distributions have instructions to not run the <filename>.bashrc</filename> 61 <systemitem class="username">root</systemitem>. In addition, 62 some distributions have instructions to not run the <filename>.bashrc</filename> 63 63 instructions in a non-interactive bash invocation. Be sure to add the 64 64 export command before the test for non-interactive use.</para> 65 65 66 66 </note> 67 67 -
chapter02/creatingfilesystem.xml
re680022 r716db1f 12 12 13 13 <para>Now that a blank partition has been set up, the file system can be 14 created. LFS can use any file system recognized by the Linux kernel, but the 15 most common types are ext3 and ext4. The choice of file system can be 16 complex and depends on the characteristics of the files and the size of 14 created. LFS can use any file system recognized by the Linux kernel, but the 15 most common types are ext3 and ext4. The choice of file system can be 16 complex and depends on the characteristics of the files and the size of 17 17 the partition. For example:</para> 18 18 … … 27 27 <term>ext3</term> 28 28 <listitem><para>is an upgrade to ext2 that includes a journal 29 to help recover the partition's status in the case of an unclean 29 to help recover the partition's status in the case of an unclean 30 30 shutdown. It is commonly used as a general purpose file system. 31 31 </para> -
chapter02/creatingpartition.xml
re680022 r716db1f 38 38 or <command>fdisk</command> with a command line option naming the hard 39 39 disk on which the new partition will be created—for example 40 <filename class="devicefile">/dev/sda</filename> for the primary 40 <filename class="devicefile">/dev/sda</filename> for the primary 41 41 disk drive. Create a Linux native partition and a 42 42 <systemitem class="filesystem">swap</systemitem> partition, if needed. Please … … 89 89 90 90 <para>If you want to use the hibernation feature (suspend-to-disk) of Linux, 91 it writes out the contents of RAM to the swap partition before turning off 91 it writes out the contents of RAM to the swap partition before turning off 92 92 the machine. In this case the size of the swap partition should be at 93 93 least as large as the system's installed RAM.</para> … … 115 115 using <command>gdisk</command>.</para> 116 116 117 <note><para>The Grub Bios partition must be on the drive that the BIOS 118 uses to boot the system. This is not necessarily the same drive where the 117 <note><para>The Grub Bios partition must be on the drive that the BIOS 118 uses to boot the system. This is not necessarily the same drive where the 119 119 LFS root partition is located. Disks on a system may use different 120 120 partition table types. The requirement for this partition depends -
chapter02/hostreqs.xml
re680022 r716db1f 151 151 152 152 <!-- Use an empty sect2 element to prevent a pdf warning. --> 153 <bridgehead renderas="sect2" 154 id="version-check" 153 <bridgehead renderas="sect2" 154 id="version-check" 155 155 xreflabel="Host System Requirements"> 156 156 </bridgehead> … … 178 178 echo yacc is `/usr/bin/yacc --version | head -n1` 179 179 else 180 echo "yacc not found" 180 echo "yacc not found" 181 181 fi 182 182 … … 191 191 elif [ -x /usr/bin/awk ]; then 192 192 echo awk is `/usr/bin/awk --version | head -n1` 193 else 194 echo "awk not found" 193 else 194 echo "awk not found" 195 195 fi 196 196 -
chapter02/introduction.xml
re680022 r716db1f 12 12 13 13 <para>In this chapter, the host tools needed for building LFS 14 are checked and, if necessary, installed. Then a partition which will 15 host the LFS system is prepared. We will create the partition 14 are checked and, if necessary, installed. Then a partition which will 15 host the LFS system is prepared. We will create the partition 16 16 itself, create a file system on it, and mount it.</para> 17 17 -
chapter02/mounting.xml
re680022 r716db1f 48 48 <warning><para>The above instructions assume that you will not be restarting 49 49 your computer throughout the LFS process. If you shut down your system, 50 you will either need to remount the LFS partition each time you restart 51 the build process or modify your host system's /etc/fstab file to automatically 50 you will either need to remount the LFS partition each time you restart 51 the build process or modify your host system's /etc/fstab file to automatically 52 52 remount it upon boot. For example: 53 53 -
chapter02/stages.xml
re680022 r716db1f 23 23 <para>These chapters are accomplished on the host system. When 24 24 restarting, be careful of the following:</para> 25 25 26 26 <itemizedlist> 27 27 <listitem> … … 33 33 </itemizedlist> 34 34 </sect2> 35 35 36 36 <sect2> 37 37 <title>Chapter 5–6</title> … … 86 86 before or after entering chroot by changing to a host virtual terminal 87 87 and, as <systemitem class="username">root</systemitem>, running the 88 commands in 89 <xref linkend='ch-tools-bindmount'/> and 88 commands in 89 <xref linkend='ch-tools-bindmount'/> and 90 90 <xref linkend='ch-tools-kernfsmount'/>.</para> 91 91 </listitem> -
chapter03/introduction.xml
re680022 r716db1f 55 55 <itemizedlist> 56 56 <listitem> 57 <para>The files can be downloaded individually as described in the 57 <para>The files can be downloaded individually as described in the 58 58 next two sections.</para> 59 59 </listitem> 60 60 <listitem> 61 <para>For stable versions of the book, a tarball of all the needed files 61 <para>For stable versions of the book, a tarball of all the needed files 62 62 can be downloaded from one of the LFS files mirrors listed at 63 63 <ulink url="https://www.linuxfromscratch.org/mirrors.html#files"/>.</para> … … 75 75 <screen role="nodump"><userinput>wget --input-file=wget-list --continue --directory-prefix=$LFS/sources</userinput></screen> 76 76 77 <note><para> 78 The <filename>wget-list</filename> file mentioned above retrieves all 79 packages for both the sysV and systemd versions of LFS. There are a total 80 of five additional small packages not needed for the currrent book. The 81 <filename>md5sums</filename> file mentioned below is specific to the 82 current book. 83 </para></note> 84 77 85 <para>Additionally, starting with LFS-7.0, there is a separate file, 78 86 <ulink url="../md5sums">md5sums</ulink>, which can be used to verify that all … … 84 92 popd</userinput></screen> 85 93 86 <para>This check can be used after retrieving the needed files with any of the 94 <para>This check can be used after retrieving the needed files with any of the 87 95 methods listed above.</para> 88 96 -
chapter03/packages.xml
re680022 r716db1f 450 450 <para>The Linux kernel is updated relatively often, many times due to 451 451 discoveries of security vulnerabilities. The latest available 452 <!--&linux-major-version;.&linux-minor-version;.x--> stable kernel 452 <!--&linux-major-version;.&linux-minor-version;.x--> stable kernel 453 453 version <!--should--> may be 454 454 used, unless the errata page says otherwise.</para> -
chapter03/patches.xml
re680022 r716db1f 58 58 <para>Download: <ulink url="&patches-root;&coreutils-i18n-patch;"/></para> 59 59 <para>MD5 sum: <literal>&coreutils-i18n-patch-md5;</literal></para> 60 </listitem> 61 </varlistentry> 62 63 <varlistentry> 64 <term>File Upstream Fixes Patch - <token>&file-upstream-fixes-patch-size;</token>:</term> 65 <listitem> 66 <para>Download: <ulink url="&patches-root;&file-upstream-fixes-patch;"/></para> 67 <para>MD5 sum: <literal>&file-upstream-fixes-md5;</literal></para> 60 68 </listitem> 61 69 </varlistentry> -
chapter04/addinguser.xml
re680022 r716db1f 12 12 13 13 <para>When logged in as user <systemitem class="username">root</systemitem>, 14 making a single mistake can damage or destroy a system. Therefore, 14 making a single mistake can damage or destroy a system. Therefore, 15 15 the packages in the next two chapters are built as an unprivileged user. 16 16 You could use your own user name, but to make it easier to set up a clean -
chapter04/settingenviron.xml
re680022 r716db1f 194 194 user, run:</para> 195 195 196 <screen role="nodump"><userinput>[ ! -e /etc/bash.bashrc ] || mv -v /etc/bash.bashrc /etc/bash.bashrc.NOUSE</userinput></screen> 196 <screen role="nodump"><userinput>[ ! -e /etc/bash.bashrc ] || mv -v /etc/bash.bashrc /etc/bash.bashrc.NOUSE</userinput></screen> 197 197 198 198 <para>After use of the <systemitem class="username">lfs</systemitem> -
chapter05/binutils-pass1.xml
re680022 r716db1f 54 54 enable.</para> 55 55 56 <para>The Binutils documentation recommends building Binutils 56 <para>The Binutils documentation recommends building Binutils 57 57 in a dedicated build directory:</para> 58 58 -
chapter05/gcc-pass1.xml
re680022 r716db1f 83 83 </userinput></screen> 84 84 85 <para>The GCC documentation recommends building GCC 85 <para>The GCC documentation recommends building GCC 86 86 in a dedicated build directory:</para> 87 87 … … 91 91 <para>Prepare GCC for compilation:</para> 92 92 93 <screen arch="default"><userinput remap="configure">../configure 94 --target=$LFS_TGT 95 --prefix=$LFS/tools 96 --with-glibc-version=2.11 97 --with-sysroot=$LFS 98 --with-newlib 99 --without-headers 100 --enable-initfini-array 101 --disable-nls 102 --disable-shared 103 --disable-multilib 104 --disable-decimal-float 105 --disable-threads 106 --disable-libatomic 107 --disable-libgomp 108 --disable-libquadmath 109 --disable-libssp 110 --disable-libvtv 111 --disable-libstdcxx 93 <screen arch="default"><userinput remap="configure">../configure \ 94 --target=$LFS_TGT \ 95 --prefix=$LFS/tools \ 96 --with-glibc-version=2.11 \ 97 --with-sysroot=$LFS \ 98 --with-newlib \ 99 --without-headers \ 100 --enable-initfini-array \ 101 --disable-nls \ 102 --disable-shared \ 103 --disable-multilib \ 104 --disable-decimal-float \ 105 --disable-threads \ 106 --disable-libatomic \ 107 --disable-libgomp \ 108 --disable-libquadmath \ 109 --disable-libssp \ 110 --disable-libvtv \ 111 --disable-libstdcxx \ 112 112 --enable-languages=c,c++</userinput></screen> 113 113 <screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure" … … 115 115 arch="ml_x32">mlist=m64,mx32</userinput><userinput remap="configure" 116 116 arch="ml_all">mlist=m64,m32,mx32</userinput> 117 <userinput remap="configure">../configure 117 <userinput remap="configure">../configure \ 118 118 --target=$LFS_TGT \ 119 119 --prefix=$LFS/tools \ … … 143 143 <listitem> 144 144 <para>This option ensures the package will be compatible with the host's 145 version of glibc. It is set to the minimum glibc requirement 145 version of glibc. It is set to the minimum glibc requirement 146 146 specified in the <xref linkend="ch-partitioning-hostreqs"/>.</para> 147 147 </listitem> … … 202 202 <varlistentry> 203 203 <term><parameter>--disable-decimal-float, --disable-threads, 204 --disable-libatomic, --disable-libgomp, 204 --disable-libatomic, --disable-libgomp, 205 205 --disable-libquadmath, --disable-libssp, --disable-libvtv, 206 206 --disable-libstdcxx</parameter></term> -
chapter05/glibc.xml
re680022 r716db1f 66 66 <screen><userinput remap="pre">patch -Np1 -i ../glibc-&glibc-version;-fhs-1.patch</userinput></screen> 67 67 68 <para>The Glibc documentation recommends building Glibc 68 <para>The Glibc documentation recommends building Glibc 69 69 in a dedicated build directory:</para> 70 70 … … 151 151 Gettext package which the host distribution should provide.</para> 152 152 153 <note><para>There have been reports that this package may fail when 153 <note><para>There have been reports that this package may fail when 154 154 building as a "parallel make". If this occurs, rerun the make command 155 155 with a "-j1" option.</para></note> -
chapter05/libstdc++.xml
re680022 r716db1f 25 25 <title/> 26 26 27 <para>Libstdc++ is the standard C++ library. It is needed 27 <para>Libstdc++ is the standard C++ library. It is needed 28 28 to compile C++ code 29 29 (part of GCC is written in C++), but we had to defer its installation -
chapter05/linux-headers.xml
re680022 r716db1f 76 76 <seg>/usr/include/asm/*.h, /usr/include/asm-generic/*.h, 77 77 /usr/include/drm/*.h, /usr/include/linux/*.h, /usr/include/misc/*.h, 78 /usr/include/mtd/*.h, /usr/include/rdma/*.h, /usr/include/scsi/*.h, 79 /usr/include/sound/*.h, /usr/include/video/*.h, 78 /usr/include/mtd/*.h, /usr/include/rdma/*.h, /usr/include/scsi/*.h, 79 /usr/include/sound/*.h, /usr/include/video/*.h, 80 80 and /usr/include/xen/*.h</seg> 81 81 <seg>/usr/include/asm, /usr/include/asm-generic, /usr/include/drm, 82 /usr/include/linux, /usr/include/misc, /usr/include/mtd, 83 /usr/include/rdma, /usr/include/scsi, /usr/include/sound, 82 /usr/include/linux, /usr/include/misc, /usr/include/mtd, 83 /usr/include/rdma, /usr/include/scsi, /usr/include/sound, 84 84 /usr/include/video, and /usr/include/xen</seg> 85 85 </seglistitem> -
chapter06/coreutils.xml
re680022 r716db1f 84 84 programs harcode executable locations:</para> 85 85 86 <screen><userinput remap="install">mv -v $LFS/usr/bin/chroot 86 <screen><userinput remap="install">mv -v $LFS/usr/bin/chroot $LFS/usr/sbin 87 87 mkdir -pv $LFS/usr/share/man/man8 88 mv -v $LFS/usr/share/man/man1/chroot.1 89 sed -i 's/"1"/"8"/' 88 mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8 89 sed -i 's/"1"/"8"/' $LFS/usr/share/man/man8/chroot.8</userinput></screen> 90 90 91 91 </sect2> -
chapter06/file.xml
re680022 r716db1f 45 45 46 46 <para> 47 The <command>file</command> command on the build host needs 48 to be same version as the one we are building in order to 47 The <command>file</command> command on the build host needs 48 to be same version as the one we are building in order to 49 49 create the signature file. Run the following commands to build it: 50 50 </para> -
chapter06/introduction.xml
re680022 r716db1f 19 19 <para>Using the utilities will be possible in next chapter after entering 20 20 the <quote>chroot</quote> environment. But all the packages built in the 21 present chapter need to be built before we do that. Therefore we cannot be 21 present chapter need to be built before we do that. Therefore we cannot be 22 22 independent of the host system yet.</para> 23 23 -
chapter07/chapter07.xml
re680022 r716db1f 25 25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="texinfo.xml"/> 26 26 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="util-linux.xml"/> 27 27 28 28 <!-- 29 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tcl.xml"/> -
chapter07/cleanup.xml
re680022 r716db1f 10 10 11 11 <title>Cleaning up and Saving the Temporary System</title> 12 12 13 13 <sect2> 14 14 <title>Cleaning</title> … … 21 21 <para>Second, the libtool .la files are only useful when linking with static 22 22 libraries. They are unneeded and potentially harmful when using dynamic 23 shared libraries, specially when using non-autotools build systems.23 shared libraries, especially when using non-autotools build systems. 24 24 While still in chroot, remove those files now:</para> 25 25 … … 30 30 31 31 <para> 32 The current system size is now about 3 GB, however 32 The current system size is now about 3 GB, however 33 33 the /tools directory is no longer needed. It uses about 34 34 1 GB of disk space. Delete it now: … … 41 41 <title>Backup</title> 42 42 43 <para> 44 At this point the essential programs and libraries have been created 45 and your current LFS system is in a good state. Your system can now be 46 backed up for later reuse. In case of fatal failures in the subsequent 47 chapters, it often turns out that removing everything and starting over 48 (more carefully) is the best option to recover. Unfortunately, all the 49 temporary files will be removed, too. To avoid spending extra time to 50 redo something which has been built successfully, creating a backup of 51 the current LFS system may prove useful. 52 </para> 53 43 54 <note><para> 44 55 All the remaining steps in this section are optional. Nevertheless, … … 46 57 linkend="chapter-building-system"/>, the temporary files will be 47 58 overwritten. So it may be a good idea to do a backup of the current 48 system as described below. 59 system as described below. 49 60 </para></note> 50 61 51 62 <para> 52 63 The following steps are performed from outside the chroot … … 60 71 </para> 61 72 73 <para> 74 If you have decided to make a backup, leave the chroot environment: 75 </para> 76 77 <screen role="nodump"><userinput>exit</userinput></screen> 78 62 79 <important> 63 <para>All of the following instructions are executed by 64 <systemitem class="username">root</systemitem>. Take extra 65 care about the commands you're going to run as mistakes 80 <para> 81 All of the following instructions are executed by 82 <systemitem class="username">root</systemitem> on your host system. 83 Take extra care about the commands you're going to run as mistakes 66 84 here can modify your host system. Be aware that the 67 environment variable <envar>LFS</envar> 68 is set for user <systemitem class="username">lfs</systemitem> by default 69 but may <emphasis>not</emphasis> be set for 70 <systemitem class="username">root</systemitem>. Whenever 71 commands are to be executed by <systemitem class="username">root</systemitem>, 85 environment variable <envar>LFS</envar> 86 is set for user <systemitem class="username">lfs</systemitem> by default 87 but may <emphasis>not</emphasis> be set for 88 <systemitem class="username">root</systemitem>. 89 </para> 90 <para> 91 Whenever commands are to be executed by <systemitem class="username">root</systemitem>, 72 92 make sure you have set <envar>LFS</envar>. 93 </para> 94 <para> 73 95 This has been discussed in <xref linkend='ch-partitioning-aboutlfs'/>. 74 96 </para> 75 97 </important> 76 98 77 <para> 78 Now, if you are making a backup, leave the chroot environment: 79 </para> 99 <para>Before making a backup, unmount the virtual file systems:</para> 80 100 81 <screen role="nodump"><userinput>exit</userinput></screen> 101 <screen role="nodump"><userinput>umount $LFS/dev/pts 102 umount $LFS/{sys,proc,run,dev}</userinput></screen> 82 103 83 104 <para> 84 At this point the essential programs and libraries have been created 85 and your current system is in a good state. Your system can now be 86 backed up for later reuse. In case of fatal failures in the subsequent 87 chapters, it often turns out that removing everything and starting over 88 (more carefully) is the best option to recover. Unfortunately, all the 89 temporary files will be removed, too. To avoid spending extra time to 90 redo something which has been built successfully, prepare a backup. 105 Make sure you have at least 1 GB free disk space (the source tarballs 106 will be included in the backup archive) on the filesystem containing 107 directory where you create the backup archive. 91 108 </para> 92 109 93 110 <para> 94 Make sure you have at least 1 GB free disk space (the source tarballs95 will be included in the backup archive) in the home directory of user96 <systemitem class="username">root</systemitem>.111 Note that the instructions below specify the home directory of the host 112 system's <systemitem class="username">root</systemitem> user, which is 113 typically found on the root filesystem. 97 114 </para> 98 115 99 <para>Before we make a backup, unmount the virtual file systems:</para> 100 101 <screen role="nodump"><userinput>umount $LFS/dev{/pts,} 102 umount $LFS/{sys,proc,run}</userinput></screen> 116 <para> 117 Replace <envar>$HOME</envar> by a directory of your choice if you 118 do not want to have the backup stored in <systemitem 119 class="username">root</systemitem>'s home directory. 120 </para> 103 121 104 122 <para> … … 111 129 long time (over 10 minutes) even on a resonably fast system. 112 130 </para> 113 114 <para>115 Also, ensure the <envar>LFS</envar> environment variable is set116 for the root user.117 </para>118 131 </note> 119 132 120 <screen role="nodump" revision="sysv"><userinput>cd $LFS 133 <screen role="nodump" revision="sysv"><userinput>cd $LFS 121 134 tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz .</userinput></screen> 122 135 123 <screen role="nodump" revision="systemd"><userinput>cd $LFS 136 <screen role="nodump" revision="systemd"><userinput>cd $LFS 124 137 tar -cJpf $HOME/lfs-temp-tools-&versiond;.tar.xz .</userinput></screen> 125 138 126 <para>127 Replace <envar>$HOME</envar> by a directory of your choice if you128 do not want to have the backup stored in <systemitem129 class="username">root</systemitem>'s home directory.130 </para>131 139 </sect2> 132 140 … … 137 145 In case some mistakes have been made and you need to start over, you can 138 146 use this backup to restore the system and save some recovery time. 139 Since the sources are located under 147 Since the sources are located under 140 148 <filename class="directory">$LFS</filename>, they are included in the 141 149 backup archive as well, so they do not need to be downloaded again. After … … 148 156 149 157 <warning><para>The following commands are extremly dangerous. If 150 you run <command>rm -rf ./*</command> as the root user and you 151 do not change to the $LFS directory or the <envar>LFS</envar> 152 environment variable is not set for the root user, it will destroy 158 you run <command>rm -rf ./*</command> as the root user and you 159 do not change to the $LFS directory or the <envar>LFS</envar> 160 environment variable is not set for the root user, it will destroy 153 161 your entire host system. YOU ARE WARNED.</para></warning> 154 162 155 <screen role="nodump" revision="sysv"><computeroutput>cd $LFS 156 rm -rf ./* 163 <screen role="nodump" revision="sysv"><computeroutput>cd $LFS 164 rm -rf ./* 157 165 tar -xpf $HOME/lfs-temp-tools-&version;.tar.xz</computeroutput></screen> 158 166 159 <screen role="nodump" revision="systemd"><computeroutput>cd $LFS 160 rm -rf ./* 167 <screen role="nodump" revision="systemd"><computeroutput>cd $LFS 168 rm -rf ./* 161 169 tar -xpf $HOME/lfs-temp-tools-&versiond;.tar.xz</computeroutput></screen> 162 170 … … 176 184 </para> 177 185 </important> 178 186 179 187 </sect2> 180 188 -
chapter07/introduction.xml
re680022 r716db1f 12 12 13 13 <para>This chapter shows how to build the last missing bits of the temporary 14 system: the tools needed by the build machinery of various packages. 15 Now that all circular dependencies 16 have been resolved, we can use a <quote>chroot</quote> environment, 17 completely isolated the host operating system used for the build, except 18 for the running kernel.</para> 14 system: the tools needed by the build machinery of various packages. Now 15 that all circular dependencies have been resolved, a <quote>chroot</quote> 16 environment, completely isolated from the host operating system (except for 17 the running kernel), can be used for the build.</para> 19 18 20 19 <para>For proper operation of the isolated environment, some communication -
chapter07/kernfs.xml
re680022 r716db1f 105 105 <para>In some host systems, <filename>/dev/shm</filename> is a 106 106 symbolic link to <filename class="directory">/run/shm</filename>. 107 The /run tmpfs was mounted above so in this case only a 107 The /run tmpfs was mounted above so in this case only a 108 108 directory needs to be created.</para> 109 109 -
chapter07/perl.xml
re680022 r716db1f 61 61 <term><parameter>-des</parameter></term> 62 62 <listitem> 63 <para>This is a combination of three options: -d uses defaults for 63 <para>This is a combination of three options: -d uses defaults for 64 64 all items; -e ensures completion of all tasks; -s silences 65 65 non-essential output.</para> -
chapter08/attr.xml
re680022 r716db1f 54 54 55 55 <para>The tests need to be run on a filesystem that supports extended 56 attributes such as the ext2, ext3, or ext4 filesystems. 56 attributes such as the ext2, ext3, or ext4 filesystems. 57 57 To test the results, issue:</para> 58 58 -
chapter08/automake.xml
re680022 r716db1f 60 60 <screen><userinput remap="test">make -j4 check</userinput></screen> 61 61 <!-- 62 <para>The tests t/subobj.sh, t/deprecated-acinit.sh, and t/init.sh are known to 62 <para>The tests t/subobj.sh, t/deprecated-acinit.sh, and t/init.sh are known to 63 63 fail in the LFS environment.</para> 64 64 --> -
chapter08/bc.xml
re680022 r716db1f 24 24 <title/> 25 25 26 <para>The Bc package contains an arbitrary precision numeric processing 26 <para>The Bc package contains an arbitrary precision numeric processing 27 27 language.</para> 28 28 -
chapter08/binutils.xml
re680022 r716db1f 75 75 <screen><userinput remap="pre">sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in</userinput></screen> 76 76 --> 77 <para>The Binutils documentation recommends building Binutils 77 <para>The Binutils documentation recommends building Binutils 78 78 in a dedicated build directory:</para> 79 79 … … 315 315 <term><command>ld.gold</command></term> 316 316 <listitem> 317 <para>A cut down version of ld that only supports the 317 <para>A cut down version of ld that only supports the 318 318 elf object file format</para> 319 319 <indexterm zone="ch-system-binutils ld.gold"> -
chapter08/chapter08.xml
re680022 r716db1f 68 68 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="meson.xml"/> 69 69 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="coreutils.xml"/> 70 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="check.xml"/> 70 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="check.xml"/> 71 71 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="diffutils.xml"/> 72 72 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gawk.xml"/> -
chapter08/coreutils.xml
re680022 r716db1f 89 89 <term><envar>FORCE_UNSAFE_CONFIGURE=1</envar></term> 90 90 <listitem> 91 <para>This environment variable allows the package to be 91 <para>This environment variable allows the package to be 92 92 built as the <systemitem class="username">root</systemitem> user. 93 93 </para> -
chapter08/dbus.xml
re680022 r716db1f 115 115 <seglistitem> 116 116 <seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor, 117 dbus-run-session, dbus-send, dbus-test-tool, 117 dbus-run-session, dbus-send, dbus-test-tool, 118 118 dbus-update-activation-environment, and dbus-uuidgen</seg> 119 119 <seg>libdbus-1.{a,so}</seg> -
chapter08/eudev.xml
re680022 r716db1f 25 25 26 26 <para>The Eudev package contains programs for dynamic creation of device 27 nodes.</para> 27 nodes.</para> 28 28 29 29 <segmentedlist> … … 77 77 <screen><userinput remap="install">make install</userinput></screen> 78 78 79 <para>Install some custom rules and support files useful in an LFS 79 <para>Install some custom rules and support files useful in an LFS 80 80 environment:</para> 81 81 -
chapter08/expect.xml
re680022 r716db1f 63 63 <term><parameter>--with-tcl=/usr/lib</parameter></term> 64 64 <listitem> 65 <para>This parameter is needed to tell 65 <para>This parameter is needed to tell 66 66 <command>configure</command> where the 67 67 <command>tclConfig.sh</command> script is located.</para> -
chapter08/file.xml
re680022 r716db1f 41 41 <sect2 role="installation"> 42 42 <title>Installation of File</title> 43 44 <para>First, fix a few regressions in File:</para> 45 46 <screen><userinput remap="pre">patch -Np1 -i ../file-&file-version;-upstream_fixes-1.patch</userinput></screen> 43 47 44 48 <para>Prepare File for compilation:</para> -
chapter08/gcc.xml
re680022 r716db1f 134 134 <para>Test the results as a non-privileged user, but do not stop at errors:</para> 135 135 136 <screen><userinput remap="test">chown -Rv tester . 136 <screen><userinput remap="test">chown -Rv tester . 137 137 su tester -c "PATH=$PATH make -k check"</userinput></screen> 138 138 … … 204 204 --> 205 205 <para>Add a compatibility symlink to enable building programs with 206 Link Time Optimization (LTO):</para> 206 Link Time Optimization (LTO):</para> 207 207 208 208 <screen><userinput remap="install">ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \ … … 371 371 and libubsan.{a,so}</seg> 372 372 373 <seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc, and 373 <seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc, and 374 374 /usr/share/gcc-&gcc-version;</seg> 375 375 </seglistitem> -
chapter08/glibc.xml
re680022 r716db1f 47 47 48 48 <screen><userinput remap="pre">sed -e '/NOTIFY_REMOVED)/s/)/ \&\& data.attr != NULL)/' \ 49 -i sysdeps/unix/sysv/linux/mq_notify.c</userinput></screen> 49 -i sysdeps/unix/sysv/linux/mq_notify.c</userinput></screen> 50 50 51 51 <para>Some of the Glibc programs use the non-FHS compliant … … 56 56 <screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen> 57 57 58 <para>The Glibc documentation recommends building Glibc 58 <para>The Glibc documentation recommends building Glibc 59 59 in a dedicated build directory:</para> 60 60 … … 90 90 <term><parameter>--disable-werror</parameter></term> 91 91 <listitem> 92 <para>This option disables the -Werror option passed to 92 <para>This option disables the -Werror option passed to 93 93 GCC. This is necessary for running the test suite.</para> 94 94 </listitem> … … 108 108 <term><parameter>--enable-stack-protector=strong</parameter></term> 109 109 <listitem> 110 <para>This option increases system security by adding 110 <para>This option increases system security by adding 111 111 extra code to check for buffer overflows, such as stack 112 112 smashing attacks.</para> … … 158 158 <para>You may see some test failures. The Glibc test suite is 159 159 somewhat dependent on the host system. A few failures out of 160 over 4200 tests can generally be ignored. This is a list of the 160 over 4200 tests can generally be ignored. This is a list of the 161 161 most common issues seen for recent versions of LFS:</para> 162 162 … … 164 164 165 165 <listitem> 166 <para><emphasis>io/tst-lchmod</emphasis> 166 <para><emphasis>io/tst-lchmod</emphasis> 167 167 is known to fail in the LFS chroot environment.</para> 168 168 </listitem> 169 169 170 170 <listitem> 171 <para><emphasis>misc/tst-ttyname</emphasis> 171 <para><emphasis>misc/tst-ttyname</emphasis> 172 172 is known to fail in the LFS chroot environment.</para> 173 173 </listitem> … … 181 181 <para>The <emphasis>rt/tst-cputimer{1,2,3}</emphasis> tests depend on 182 182 the host system kernel. Kernels 4.14.91–4.14.96, 183 4.19.13–4.19.18, and 4.20.0–4.20.5 are known to 183 4.19.13–4.19.18, and 4.20.0–4.20.5 are known to 184 184 cause these tests to fail. 185 185 </para> … … 221 221 mkdir -pv /var/cache/nscd</userinput></screen> 222 222 223 <para revision="systemd">Install the systemd support files for 223 <para revision="systemd">Install the systemd support files for 224 224 <command>nscd</command>:</para> 225 225 … … 295 295 when you need them. For instance, the following two locales are 296 296 needed for some tests later in this chapter:</para> 297 297 298 298 <screen role="nodump"><userinput remap="locale-full">localedef -i POSIX -f UTF-8 C.UTF-8 2> /dev/null || true 299 299 localedef -i ja_JP -f SHIFT_JIS ja_JP.SIJS 2> /dev/null || true</userinput></screen> 300 300 301 <note><para>Glibc now uses libidn2 when resolving internationalized 301 <note><para>Glibc now uses libidn2 when resolving internationalized 302 302 domain names. This is a run time dependency. If this capability 303 is needed, the instructions for installing libidn2 are in the 303 is needed, the instructions for installing libidn2 are in the 304 304 <ulink url="&blfs-book;general/libidn2.html">BLFS libidn2 page</ulink>. 305 305 </para></note> … … 637 637 <seglistitem> 638 638 <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig, 639 ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd, 639 ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd, 640 640 pcprofiledump, pldd, sln, sotruss, sprof, tzselect, xtrace, 641 641 zdump, and zic</seg> … … 1107 1107 many different Unix utilities. These functions are now in 1108 1108 <filename class="libraryfile">libc</filename></para> 1109 1110 1109 <indexterm zone="ch-system-glibc libutil"> 1111 1110 <primary sortas="c-libutil">libutil</primary> -
chapter08/gmp.xml
re680022 r716db1f 54 54 <para>The default settings of GMP produce libraries optimized for 55 55 the host processor. If libraries suitable for processors less 56 capable than the host's CPU are desired, generic libraries can be 56 capable than the host's CPU are desired, generic libraries can be 57 57 created by running the following: 58 58 … … 101 101 102 102 <screen><userinput remap="test">make check 2>&1 | tee gmp-check-log</userinput></screen> 103 103 104 104 <caution><para>The code in gmp is highly optimized for the processor where 105 105 it is built. Occasionally, the code that detects the processor misidentifies -
chapter08/grub.xml
re680022 r716db1f 107 107 108 108 <seg>grub-bios-setup, grub-editenv, grub-file, grub-fstest, 109 grub-glue-efi, grub-install, grub-kbdcomp, grub-macbless, 109 grub-glue-efi, grub-install, grub-kbdcomp, grub-macbless, 110 110 grub-menulst2cfg, grub-mkconfig, 111 111 grub-mkimage, grub-mklayout, grub-mknetdir, 112 112 grub-mkpasswd-pbkdf2, grub-mkrelpath, grub-mkrescue, grub-mkstandalone, 113 grub-ofpathname, grub-probe, grub-reboot, grub-render-label, 113 grub-ofpathname, grub-probe, grub-reboot, grub-render-label, 114 114 grub-script-check, 115 115 grub-set-default, grub-sparc64-setup, and grub-syslinux2cfg</seg> -
chapter08/gzip.xml
re680022 r716db1f 67 67 68 68 <seglistitem> 69 <seg>gunzip, gzexe, gzip, uncompress (hard link with gunzip), zcat, zcmp, 69 <seg>gunzip, gzexe, gzip, uncompress (hard link with gunzip), zcat, zcmp, 70 70 zdiff, zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg> 71 71 </seglistitem> -
chapter08/inetutils.xml
re680022 r716db1f 129 129 130 130 <seglistitem> 131 <seg>dnsdomainname, ftp, ifconfig, hostname, ping, ping6, 131 <seg>dnsdomainname, ftp, ifconfig, hostname, ping, ping6, 132 132 talk, telnet, tftp, and traceroute</seg> 133 133 </seglistitem> -
chapter08/iproute2.xml
re680022 r716db1f 44 44 <para>The <command>arpd</command> program included in this package will not 45 45 be built since it is dependent on Berkeley DB, which is not installed in 46 LFS. However, a directory for <command>arpd</command> and a man page will still 47 be installed. Prevent this by running the commands below. 46 LFS. However, a directory for <command>arpd</command> and a man page will still 47 be installed. Prevent this by running the commands below. 48 48 If the <command>arpd</command> binary is needed, 49 49 instructions for compiling Berkeley DB can be found in the BLFS Book at … … 54 54 rm -fv man/man8/arpd.8</userinput></screen> 55 55 56 <para>It is also necessary to disable building two modules that 56 <para>It is also necessary to disable building two modules that 57 57 require <ulink url="&blfs-book;postlfs/iptables.html"/>.</para> 58 58 -
chapter08/kbd.xml
re680022 r716db1f 117 117 setfont, setkeycodes, setleds, setmetamode, setvtrgb, 118 118 showconsolefont, showkey, unicode_start, and unicode_stop</seg> 119 <seg>/usr/share/consolefonts, /usr/share/consoletrans, /usr/share/keymaps, 119 <seg>/usr/share/consolefonts, /usr/share/consoletrans, /usr/share/keymaps, 120 120 /usr/share/doc/kbd-&kbd-version;, and /usr/share/unimaps</seg> 121 121 </seglistitem> -
chapter08/kmod.xml
re680022 r716db1f 164 164 165 165 <seglistitem> 166 <seg>depmod (link to kmod), insmod (link to kmod), kmod, 166 <seg>depmod (link to kmod), insmod (link to kmod), kmod, 167 167 lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod), 168 168 and rmmod (link to kmod)</seg> -
chapter08/libelf.xml
re680022 r716db1f 56 56 57 57 <para>To test the results, issue:</para> 58 58 59 59 <screen><userinput remap="test">make check</userinput></screen> 60 60 -
chapter08/libffi.xml
re680022 r716db1f 67 67 is not specified, the system is guessed and the code generated 68 68 may not be correct for some systems. If the generated code 69 will be copied from the native system to a less capable 70 system, use the less capable system as a parameter. For details 71 about alternative system types, see <ulink 69 will be copied from the native system to a less capable 70 system, use the less capable system as a parameter. For details 71 about alternative system types, see <ulink 72 72 url='https://gcc.gnu.org/onlinedocs/gcc-&gcc-version;/gcc/x86-Options.html'> 73 73 the x86 options in the GCC manual</ulink>.</para> -
chapter08/libtool.xml
re680022 r716db1f 62 62 63 63 <para>Five tests are known to fail in the LFS build environment due 64 to a circular dependency, but all tests pass if rechecked after 64 to a circular dependency, but all tests pass if rechecked after 65 65 automake is installed.</para> 66 66 -
chapter08/man-db.xml
re680022 r716db1f 101 101 <term><parameter>--with-systemd...</parameter></term> 102 102 <listitem> 103 <para>These parameters prevent installing unneeded systemd 103 <para>These parameters prevent installing unneeded systemd 104 104 directories and files.</para> 105 105 </listitem> -
chapter08/meson.xml
re680022 r716db1f 70 70 <variablelist> 71 71 <title>The meaning of the install parameters:</title> 72 72 73 73 <varlistentry> 74 74 <term><parameter>--root=dest</parameter></term> -
chapter08/ncurses.xml
re680022 r716db1f 133 133 libraries since no package installed by compiling from sources would link 134 134 against them at runtime. However, the only known binary-only 135 applications that link against non-wide-character Ncurses libraries 135 applications that link against non-wide-character Ncurses libraries 136 136 require version 5. If you must have such libraries because of some binary-only 137 137 application or to be compliant with LSB, build the package again with the … … 144 144 --without-debug \ 145 145 --without-cxx-binding \ 146 --with-abi-version=5 146 --with-abi-version=5 147 147 make sources libs 148 148 cp -av lib/lib*.so.5* /usr/lib</userinput></screen> … … 251 251 <seglistitem> 252 252 <seg> 253 captoinfo (link to tic), 254 clear, 255 infocmp, 253 captoinfo (link to tic), 254 clear, 255 infocmp, 256 256 infotocap (link to tic), 257 ncursesw6-config, 258 reset (link to tset), 259 tabs, 260 tic, 261 toe, 262 tput, and 257 ncursesw6-config, 258 reset (link to tset), 259 tabs, 260 tic, 261 toe, 262 tput, and 263 263 tset 264 264 </seg> 265 265 <seg> 266 266 libcursesw.so (symlink and linker script to libncursesw.so), 267 libformw.so, 268 libmenuw.so, 267 libformw.so, 268 libmenuw.so, 269 269 libncursesw.so, 270 270 libpanelw.so, and their non-wide-character counterparts without "w" 271 271 in the library names.</seg> 272 272 <seg> 273 /usr/share/tabset, 273 /usr/share/tabset, 274 274 /usr/share/terminfo, and 275 275 /usr/share/doc/ncurses-&ncurses-version; -
chapter08/ninja.xml
re680022 r716db1f 51 51 52 52 <para>When run, ninja normally runs a maximum number of processes 53 in parallel. By default this is the number of cores on the system 53 in parallel. By default this is the number of cores on the system 54 54 plus two. In some cases this can overheat a CPU or run a system out 55 55 of memory. If run from the command line, passing a -jN parameter … … 58 58 59 59 <para>Using the <emphasis>optional</emphasis> procedure below allows a user to 60 limit the number of parallel processes via an environment variable, 60 limit the number of parallel processes via an environment variable, 61 61 NINJAJOBS. <emphasis role="bold">For example</emphasis>, setting: 62 62 … … 65 65 will limit ninja to four parallel processes.</para> 66 66 67 <para>If desired, add the capability to use the environment variable 67 <para>If desired, add the capability to use the environment variable 68 68 NINJAJOBS by running:</para> 69 69 -
chapter08/perl.xml
re680022 r716db1f 47 47 <screen><userinput remap="pre">patch -Np1 -i ../&perl-fix-patch;</userinput></screen> 48 48 49 <para>This version of Perl now builds the Compress::Raw::Zlib and 49 <para>This version of Perl now builds the Compress::Raw::Zlib and 50 50 Compress::Raw::BZip2 modules. By 51 51 default Perl will use an internal copy of the sources for the build. … … 90 90 <term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term> 91 91 <listitem> 92 <para>This ensures that <userinput>less</userinput> is used instead 92 <para>This ensures that <userinput>less</userinput> is used instead 93 93 of <userinput>more</userinput>.</para> 94 94 </listitem> -
chapter08/pkgmgt.xml
re680022 r716db1f 112 112 library):</para> 113 113 114 <screen ><userinput role="nodump">grep -l -e '<replaceable>libfoo</replaceable>.*deleted' /proc/*/maps |114 <screen role="nodump"><userinput>grep -l -e '<replaceable>libfoo</replaceable>.*deleted' /proc/*/maps | 115 115 tr -cd 0-9\\n | xargs -r ps u</userinput></screen> 116 116 -
chapter08/procps.xml
re680022 r716db1f 29 29 <note> 30 30 <para>This package extracts to the directory 31 <filename class="directory">procps-3.3.17</filename>, 31 <filename class="directory">procps-3.3.17</filename>, 32 32 not the expected 33 33 <filename class="directory">procps-ng-3.3.17</filename>.</para> … … 94 94 <para>Five tests related to pkill are known to fail due to a problem 95 95 with tests that were not updated.</para> 96 96 97 97 <para>Install the package:</para> 98 98 -
chapter08/python.xml
re680022 r716db1f 104 104 <para>If desired, install the preformatted documentation:</para> 105 105 106 <screen><userinput remap="install">install -v -dm755 /usr/share/doc/python-&python-version;/html 106 <screen><userinput remap="install">install -v -dm755 /usr/share/doc/python-&python-version;/html 107 107 108 108 tar --strip-components=1 \ … … 118 118 <term><option>--no-same-owner</option> and <option>--no-same-permissions</option></term> 119 119 <listitem> 120 <para>Ensure the installed files have the correct ownership and 120 <para>Ensure the installed files have the correct ownership and 121 121 permissions. Without these options, using <application>tar</application> 122 will install the package files with the upstream creator's values. 122 will install the package files with the upstream creator's values. 123 123 </para> 124 124 </listitem> … … 145 145 </seg> 146 146 <seg> 147 /usr/include/python&python-minor;, 147 /usr/include/python&python-minor;, 148 148 /usr/lib/python3, and 149 149 /usr/share/doc/python-&python-version; … … 163 163 is a <application>Python</application> program that reads 164 164 <application>Python 2.x</application> source code and applies a 165 series of fixes to transform it into 165 series of fixes to transform it into 166 166 valid <application>Python 3.x</application> code 167 167 </para> -
chapter08/revisedchroot.xml
re680022 r716db1f 16 16 17 17 <para>Now log out and reenter the chroot environment with an updated 18 chroot command. From now on, use this updated chroot command any time 18 chroot command. From now on, use this updated chroot command any time 19 19 you need to reenter the chroot environment after exiting:</para> 20 20 … … 58 58 <screen><userinput>find /usr -depth -name $(uname -m)-lfs-linux-gnu\* | xargs rm -rf</userinput></screen> 59 59 60 <para>Finally, remove the temporary 'tester' user account created at the 60 <para>Finally, remove the temporary 'tester' user account created at the 61 61 beginning of the previous chapter.</para> 62 62 -
chapter08/stripping.xml
re680022 r716db1f 11 11 <title>Stripping</title> 12 12 13 <para>This section is optional. If the intended user is not a 13 <para>This section is optional. If the intended user is not a 14 14 programmer and does not plan to do 15 15 any debugging on the system software, the system size can be decreased … … 25 25 26 26 <para>The debugging symbols for selected libraries are placed 27 in separate files. This debugging information is needed if running 28 regression tests that use <ulink 29 url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink 27 in separate files. This debugging information is needed if running 28 regression tests that use <ulink 29 url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink 30 30 url='&blfs-book;/general/gdb.html'>gdb</ulink> later in BLFS. 31 31 </para> … … 42 42 43 43 <note><para>The ELF loader's name is ld-linux-x86-64.so.2 on 64-bit systems 44 and ld-linux.so.2 on 32-bit systems. The contruct below selects the 44 and ld-linux.so.2 on 32-bit systems. The contruct below selects the 45 45 correct name for the current architecture.</para></note> 46 46 … … 51 51 libc.so.6 52 52 libthread_db.so.1 53 libquadmath.so.&libquadmath-version; 53 libquadmath.so.&libquadmath-version; 54 54 libstdc++.so.&libstdcpp-version; 55 libitm.so.&libitm-version; 56 libatomic.so.&libatomic-version;" 55 libitm.so.&libitm-version; 56 libatomic.so.&libatomic-version;" 57 57 58 58 cd /usr/lib … … 125 125 $(find /usr/{bin,sbin,libexec} -type f); do 126 126 case "$online_usrbin $online_usrlib $save_usrlib" in 127 *$(basename $i)* ) 127 *$(basename $i)* ) 128 128 ;; 129 * ) strip --strip-unneeded $i 129 * ) strip --strip-unneeded $i 130 130 ;; 131 131 esac -
chapter08/systemd.xml
re680022 r716db1f 206 206 systemd-networkd:</para> 207 207 <!-- Observed halting startup with dhcpcd handling the primary NIC --> 208 208 209 209 <screen><userinput remap="adjust">systemctl disable systemd-time-wait-sync.service</userinput></screen> 210 210 … … 214 214 <para>Prevent systemd from resetting the maximum PID value which causes 215 215 some problems with packages and units in BLFS:</para> 216 216 217 217 <screen><userinput remap="adjust">rm -f /usr/lib/sysctl.d/50-pid-max.conf</userinput></screen> 218 218 --> … … 379 379 /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev, 380 380 /etc/xdg/systemd, /usr/lib/systemd, /usr/lib/udev, /usr/include/systemd, 381 /usr/lib/binfmt.d, /usr/lib/environment.d, /usr/lib/kernel, 382 /usr/lib/modules-load.d, /usr/lib/sysctl.d, /usr/lib/systemd, 381 /usr/lib/binfmt.d, /usr/lib/environment.d, /usr/lib/kernel, 382 /usr/lib/modules-load.d, /usr/lib/sysctl.d, /usr/lib/systemd, 383 383 /usr/lib/tmpfiles.d, 384 384 /usr/share/doc/systemd-&systemd-version;, /usr/share/factory, … … 451 451 <listitem> 452 452 <para>Is the first process to be started when the kernel has initialized 453 the hardware which takes over the boot process and starts all 453 the hardware which takes over the boot process and starts all 454 454 processes according to its configuration files. In this case, it starts 455 455 systemd</para> … … 517 517 <term><command>networkctl</command></term> 518 518 <listitem> 519 <para>Is used to introspect and configure the state of the network 519 <para>Is used to introspect and configure the state of the network 520 520 links configured by systemd-networkd</para> 521 521 <indexterm zone="ch-system-systemd networkctl"> … … 605 605 <term><command>shutdown</command></term> 606 606 <listitem> 607 <para>Brings the system down in a safe and secure manner, signaling 607 <para>Brings the system down in a safe and secure manner, signaling 608 608 all processes and notifying all logged-in users</para> 609 609 <indexterm zone="ch-system-systemd shutdown"> … … 902 902 <term><command>systemd-tty-ask-password-agent</command></term> 903 903 <listitem> 904 <para>Is used to list and/or process pending systemd password 904 <para>Is used to list and/or process pending systemd password 905 905 requests</para> 906 906 <indexterm zone="ch-system-systemd systemd-tty-ask-password-agent"> … … 935 935 <term><command>udevadm</command></term> 936 936 <listitem> 937 <para>Is a generic udev administration tool which controls the udevd 938 daemon, provides info from the Udev hardware database, monitors 939 uevents, waits for uevents to finish, tests udev configuration, and 937 <para>Is a generic udev administration tool which controls the udevd 938 daemon, provides info from the Udev hardware database, monitors 939 uevents, waits for uevents to finish, tests udev configuration, and 940 940 triggers uevents for a given device</para> 941 941 <indexterm zone="ch-system-systemd udevadm"> -
chapter08/sysvinit.xml
re680022 r716db1f 92 92 93 93 <seglistitem> 94 <seg>bootlogd, fstab-decode, halt, init, killall5, 94 <seg>bootlogd, fstab-decode, halt, init, killall5, 95 95 poweroff (link to halt), reboot (link to halt), runlevel, 96 96 shutdown, and telinit (link to init)</seg> -
chapter08/tcl.xml
re680022 r716db1f 52 52 53 53 <!-- <para>Note that the Tcl package used here is a minimal version needed 54 to run the LFS tests. For the full package, see the 54 to run the LFS tests. For the full package, see the 55 55 <ulink url='&blfs-book;general/tcl.html'>BLFS Tcl procedures</ulink>.</para>--> 56 56 … … 141 141 <screen><userinput remap="install">ln -sfv tclsh&tcl-major-version; /usr/bin/tclsh</userinput></screen> 142 142 143 <para> Finally, rename a man page that conflicts with a Perl man page:</para>143 <para>Rename a man page that conflicts with a Perl man page:</para> 144 144 145 145 <screen><userinput remap="install">mv /usr/share/man/man3/{Thread,Tcl_Thread}.3</userinput></screen> 146 147 <para>If you downloaded the optional documentation, install it by issuing 148 the following commands:</para> 149 150 <screen><userinput remap="install">mkdir -v -p /usr/share/doc/tcl-&tcl-version; 151 cp -v -r ../html/* /usr/share/doc/tcl-&tcl-version;</userinput></screen> 146 152 147 153 </sect2> … … 156 162 <seglistitem> 157 163 <seg> 158 tclsh (link to tclsh&tcl-major-version;) and 164 tclsh (link to tclsh&tcl-major-version;) and 159 165 tclsh&tcl-major-version; 160 166 </seg> 161 167 <seg> 162 libtcl&tcl-major-version;.so and 168 libtcl&tcl-major-version;.so and 163 169 libtclstub&tcl-major-version;.a 164 170 </seg> -
chapter08/texinfo.xml
re680022 r716db1f 197 197 <term><command>texi2any</command></term> 198 198 <listitem> 199 <para>Translate Texinfo source documentation to 199 <para>Translate Texinfo source documentation to 200 200 various other formats</para> 201 201 <indexterm zone="ch-system-texinfo texi2any"> -
chapter08/util-linux.xml
re680022 r716db1f 76 76 77 77 <para>The --disable and --without options prevent warnings about 78 building components that require packages not in LFS or are 78 building components that require packages not in LFS or are 79 79 inconsistent with programs installed by other packages.</para> 80 80 … … 257 257 umount, uname26, unshare, utmpdump, uuidd, uuidgen, uuidparse, wall, wdctl, whereis, 258 258 wipefs, x86_64, and zramctl</seg> 259 <seg>libblkid.so, libfdisk.so, libmount.so, 259 <seg>libblkid.so, libfdisk.so, libmount.so, 260 260 libsmartcols.so, and libuuid.so</seg> 261 <seg>/usr/include/blkid, 262 /usr/include/libfdisk, 263 /usr/include/libmount, 264 /usr/include/libsmartcols, 265 /usr/include/uuid, 266 /usr/share/doc/util-linux-&util-linux-version;, 261 <seg>/usr/include/blkid, 262 /usr/include/libfdisk, 263 /usr/include/libmount, 264 /usr/include/libsmartcols, 265 /usr/include/uuid, 266 /usr/share/doc/util-linux-&util-linux-version;, 267 267 and /var/lib/hwclock</seg> 268 268 </seglistitem> … … 711 711 <term><command>last</command></term> 712 712 <listitem> 713 <para>Shows which users last logged in (and out), searching back 714 through the <filename>/var/log/wtmp</filename> file; it also shows 713 <para>Shows which users last logged in (and out), searching back 714 through the <filename>/var/log/wtmp</filename> file; it also shows 715 715 system boots, shutdowns, and run-level changes</para> 716 716 <indexterm zone="ch-system-util-linux last"> … … 723 723 <term><command>lastb</command></term> 724 724 <listitem> 725 <para>Shows the failed login attempts, as logged in 725 <para>Shows the failed login attempts, as logged in 726 726 <filename>/var/log/btmp</filename></para> 727 727 <indexterm zone="ch-system-util-linux lastb"> … … 878 878 <term><command>mesg</command></term> 879 879 <listitem> 880 <para>Controls whether other users can send messages to the current 880 <para>Controls whether other users can send messages to the current 881 881 user's terminal</para> 882 882 <indexterm zone="ch-system-util-linux mesg"> … … 1379 1379 <term><command>zramctl</command></term> 1380 1380 <listitem> 1381 <para>A program to set up and control zram (compressed ram disk) 1381 <para>A program to set up and control zram (compressed ram disk) 1382 1382 devices</para> 1383 1383 <indexterm zone="ch-system-util-linux zramctl"> -
chapter08/vim.xml
re680022 r716db1f 63 63 <screen><userinput remap="make">make</userinput></screen> 64 64 65 <para>To prepare the tests, ensure that user 66 <systemitem class="username">tester</systemitem> can write 65 <para>To prepare the tests, ensure that user 66 <systemitem class="username">tester</systemitem> can write 67 67 to the source tree:</para> 68 68 … … 134 134 " Ensure defaults are set before customizing settings, not after 135 135 source $VIMRUNTIME/defaults.vim 136 let skip_defaults_vim=1 136 let skip_defaults_vim=1 137 137 138 138 set nocompatible -
chapter08/xz.xml
re680022 r716db1f 137 137 <seglistitem> 138 138 <seg> 139 lzcat (link to xz), 140 lzcmp (link to xzdiff), 141 lzdiff (link to xzdiff), 142 lzegrep (link to xzgrep), 139 lzcat (link to xz), 140 lzcmp (link to xzdiff), 141 lzdiff (link to xzdiff), 142 lzegrep (link to xzgrep), 143 143 lzfgrep (link to xzgrep), 144 lzgrep (link to xzgrep), 145 lzless (link to xzless), 144 lzgrep (link to xzgrep), 145 lzless (link to xzless), 146 146 lzma (link to xz), 147 lzmadec, 148 lzmainfo, 147 lzmadec, 148 lzmainfo, 149 149 lzmore (link to xzmore), 150 unlzma (link to xz), 151 unxz (link to xz), 152 xz, 150 unlzma (link to xz), 151 unxz (link to xz), 152 xz, 153 153 xzcat (link to xz), 154 xzcmp (link to xzdiff), 155 xzdec, 156 xzdiff, 154 xzcmp (link to xzdiff), 155 xzdec, 156 xzdiff, 157 157 xzegrep (link to xzgrep), 158 xzfgrep (link to xzgrep), 159 xzgrep, 160 xzless, and 158 xzfgrep (link to xzgrep), 159 xzgrep, 160 xzless, and 161 161 xzmore</seg> 162 162 <seg> … … 164 164 </seg> 165 165 <seg> 166 /usr/include/lzma and 166 /usr/include/lzma and 167 167 /usr/share/doc/xz-&xz-version; 168 168 </seg> -
chapter08/zstd.xml
re680022 r716db1f 122 122 123 123 <seglistitem> 124 <seg>zstd, 125 zstdcat (link to zstd), 126 zstdgrep, 127 zstdless, 124 <seg>zstd, 125 zstdcat (link to zstd), 126 zstdgrep, 127 zstdless, 128 128 zstdmt (link to zstd), and 129 129 unzstd (link to zstd) -
chapter09/bootscripts.xml
re680022 r716db1f 25 25 26 26 <para>The LFS-Bootscripts package contains a set of scripts to start/stop 27 the LFS system at bootup/shutdown. 27 the LFS system at bootup/shutdown. 28 28 The configuration files and procedures needed to 29 29 customize the boot process are described in the following sections.</para> -
chapter09/consoled.xml
re680022 r716db1f 26 26 url="http://www.tldp.org/HOWTO/HOWTO-INDEX/other-lang.html"/>. 27 27 Examine the output of <command>localectl list-keymaps</command> for a list of 28 valid console keymaps. Look in the 28 valid console keymaps. Look in the 29 29 <filename class="directory">/usr/share/consolefonts</filename> 30 30 directory for valid screen fonts.</para> -
chapter09/introduction.xml
re680022 r716db1f 30 30 system.</para> 31 31 32 <para>The <command>init</command> program is controlled by the 32 <para>The <command>init</command> program is controlled by the 33 33 <filename>/etc/inittab</filename> file and is organized into run levels that 34 34 can be run by the user:</para> … … 62 62 <itemizedlist> 63 63 <listitem> 64 <para>May be slower to boot. A medium speed base LFS system 65 takes 8-12 seconds where the boot time is measured from the 66 first kernel message to the login prompt. Network 67 connectivity is typically established about 2 seconds 64 <para>May be slower to boot. A medium speed base LFS system 65 takes 8-12 seconds where the boot time is measured from the 66 first kernel message to the login prompt. Network 67 connectivity is typically established about 2 seconds 68 68 after the login prompt.</para> 69 69 </listitem> -
chapter09/locale.xml
re680022 r716db1f 81 81 before the telephone number in order to get into the country. If any of the 82 82 commands above fail with a message similar to the one shown below, this means 83 that your locale was either not installed in Chapter 8 or is not 83 that your locale was either not installed in Chapter 8 or is not 84 84 supported by the default installation of Glibc.</para> 85 85 … … 143 143 mail with such characters from Mutt or Pine results in non-RFC-conforming 144 144 messages being sent (the charset in the outgoing mail is indicated as <quote>unknown 145 8-bit</quote>). It's suggested that you use the <quote>C</quote> locale only 145 8-bit</quote>). It's suggested that you use the <quote>C</quote> locale only 146 146 if you are certain that you will never need 8-bit characters.</para> 147 147 -
chapter09/network.xml
re680022 r716db1f 32 32 characteristics such as enp2s1. If you are not sure what your interface 33 33 name is, you can always run <command>ip link</command> or <command>ls 34 /sys/class/net</command> after you have booted your system. 34 /sys/class/net</command> after you have booted your system. 35 35 </para></note> 36 36 … … 158 158 <primary sortas="e-/etc/hosts">/etc/hosts</primary> 159 159 </indexterm> 160 160 161 161 <indexterm zone="ch-config-hosts"> 162 162 <primary sortas="d-localnet">localnet</primary> 163 163 <secondary>/etc/hosts</secondary> 164 164 </indexterm> 165 165 166 166 <indexterm zone="ch-config-hosts"> 167 167 <primary sortas="d-network">network</primary> 168 168 <secondary>/etc/hosts</secondary> 169 169 </indexterm> 170 170 171 171 <para>Decide on the IP address, fully-qualified domain name (FQDN), and 172 172 possible aliases for use in the <filename>/etc/hosts</filename> file. The 173 173 syntax is:</para> 174 174 175 175 <screen><literal>IP_address myhost.example.org aliases</literal></screen> 176 176 … … 187 187 <para>x can be any number in the range 16-31. y can be any number in the 188 188 range 0-255.</para> 189 189 190 190 <para>A valid private IP address could be 192.168.1.1. A valid FQDN for 191 191 this IP could be lfs.example.org.</para> 192 192 193 193 <para>Even if not using a network card, a valid FQDN is still required. 194 194 This is necessary for certain programs to operate correctly.</para> 195 195 196 196 <para>Create the <filename>/etc/hosts</filename> file by running:</para> 197 197 … … 210 210 211 211 <para>The <replaceable><192.168.1.1></replaceable>, 212 <replaceable><FQDN></replaceable>, and 212 <replaceable><FQDN></replaceable>, and 213 213 <replaceable><HOSTNAME></replaceable> values need to be 214 214 changed for specific uses or requirements (if assigned an IP address by a -
chapter09/networkd.xml
re680022 r716db1f 39 39 <filename class="extension">.netdev</filename> and 40 40 <filename class="extension">.network</filename> files. For detailed 41 descriptions and example contents of these configuration files, consult 41 descriptions and example contents of these configuration files, consult 42 42 the <filename>systemd-link(5)</filename>, 43 43 <filename>systemd-netdev(5)</filename> and … … 58 58 each type of connection. For example, the classic interface 59 59 name for a wired connection is eth0. A wireless connection 60 will usually have the name wifi0 or wlan0. 60 will usually have the name wifi0 or wlan0. 61 61 </para> 62 62 … … 76 76 <para> 77 77 Create a manual naming scheme, for example by naming the 78 interfaces something like "internet0", "dmz0", or "lan0". 79 To do that, create .link files in /etc/systemd/network/ that 78 interfaces something like "internet0", "dmz0", or "lan0". 79 To do that, create .link files in /etc/systemd/network/ that 80 80 select an explicit name or a better naming scheme for your 81 81 network interfaces. For example: … … 92 92 93 93 <para> 94 See the man page systemd.link(5) for more information. 94 See the man page systemd.link(5) for more information. 95 95 </para> 96 96 </listitem> … … 98 98 <listitem> 99 99 <para> 100 In /boot/grub/grub.cfg, pass the option net.ifnames=0 on the 100 In /boot/grub/grub.cfg, pass the option net.ifnames=0 on the 101 101 kernel command line. 102 102 </para> … … 210 210 There will often be more than one entry (requirements demand secondary 211 211 servers for fallback capability). If you only need or want one DNS server, 212 remove the second <emphasis>nameserver</emphasis> line from the file. 212 remove the second <emphasis>nameserver</emphasis> line from the file. 213 213 The IP address may also be a router on the local network. Another option 214 214 is to use the Google Public DNS service using the IP addresses below as … … 253 253 <primary sortas="e-/etc/hosts">/etc/hosts</primary> 254 254 </indexterm> 255 255 256 256 <indexterm zone="ch-config-hosts"> 257 257 <primary sortas="d-localnet">localnet</primary> 258 258 <secondary>/etc/hosts</secondary> 259 259 </indexterm> 260 260 261 261 <indexterm zone="ch-config-hosts"> 262 262 <primary sortas="d-network">network</primary> -
chapter09/profile.xml
re680022 r716db1f 104 104 before the telephone number in order to get into the country. If any of the 105 105 commands above fail with a message similar to the one shown below, this means 106 that your locale was either not installed in <xref linkend="ch-system-glibc"/> 106 that your locale was either not installed in <xref linkend="ch-system-glibc"/> 107 107 or is not supported by the default installation of Glibc.</para> 108 108 -
chapter09/symlinks.xml
re680022 r716db1f 23 23 and the Realtek card becomes eth1. In some cases, after a reboot the cards 24 24 could get renumbered the other way around.</para> 25 25 26 26 <para>In the new naming scheme, typical network device names would then 27 27 be something like enp5s0 or wlp3s0. If this naming convention is not … … 31 31 <sect3> 32 32 <title>Disabling Persistent Naming on the Kernel Command Line</title> 33 33 34 34 <para>The traditional naming scheme using eth0, eth1, etc can be 35 restored by adding <userinput>net.ifnames=0</userinput> on the 35 restored by adding <userinput>net.ifnames=0</userinput> on the 36 36 kernel command line. This is most appropriate for those systems 37 37 that have only one ethernet device of the same type. Laptops 38 often have multiple ethernet connections that are named eth0 and 39 wlan0 and are also candidates for this method. The command line 40 is passed in the GRUB configuration file. 38 often have multiple ethernet connections that are named eth0 and 39 wlan0 and are also candidates for this method. The command line 40 is passed in the GRUB configuration file. 41 41 See <xref linkend="grub-cfg"/>.</para> 42 42 </sect3> … … 44 44 <sect3> 45 45 <title>Creating Custom Udev Rules</title> 46 46 47 47 <para>The naming scheme can be customized by creating custom udev 48 48 rules. A script has been included that generates the initial rules. … … 62 62 are not consistently assigned. In these cases, this method cannot 63 63 be used.</para></note> 64 64 65 65 <para>The file begins with a comment block followed by two lines for each 66 66 NIC. The first line for each NIC is a commented description showing its … … 70 70 interface; this information is only for reference. The second line is the 71 71 udev rule that matches this NIC and actually assigns it a name.</para> 72 72 73 73 <para>All udev rules are made up of several keys, separated by commas and 74 74 optional whitespace. This rule's keys and an explanation of each of them 75 75 are as follows:</para> 76 76 77 77 <itemizedlist> 78 78 <listitem> … … 107 107 </listitem> 108 108 </itemizedlist> 109 109 110 110 <para>The value of <literal>NAME</literal> is the important part. Make sure 111 111 you know which name has been assigned to each of your network cards before -
chapter09/systemd-custom.xml
re680022 r716db1f 51 51 52 52 <para>By default, <filename class="directory">/tmp</filename> is created as 53 a tmpfs. If this is not desired, it can be overridden by executing the 53 a tmpfs. If this is not desired, it can be overridden by executing the 54 54 following command:</para> 55 55 … … 57 57 58 58 <para>Alternatively, if a separate partition for 59 <filename class="directory">/tmp</filename> is desired, specify that 59 <filename class="directory">/tmp</filename> is desired, specify that 60 60 partition in a <filename>/etc/fstab</filename> entry.</para> 61 61 … … 82 82 <listitem><para>systemd-tmpfiles-setup.service</para></listitem> 83 83 </itemizedlist> 84 84 85 85 <para>The system location for the configuration files is 86 <filename>/usr/lib/tmpfiles.d/*.conf</filename>. The local 86 <filename>/usr/lib/tmpfiles.d/*.conf</filename>. The local 87 87 configuration files are in 88 88 <filename class="directory">/etc/tmpfiles.d</filename>. Files in … … 95 95 <para> 96 96 Note that the syntax for the 97 <filename>/usr/lib/tmpfiles.d/*.conf</filename> files can be 97 <filename>/usr/lib/tmpfiles.d/*.conf</filename> files can be 98 98 confusing. For example, the default deletion of files in the /tmp directory 99 is located in <filename>/usr/lib/tmpfiles.d/tmp.conf</filename> with 99 is located in <filename>/usr/lib/tmpfiles.d/tmp.conf</filename> with 100 100 the line: 101 101 … … 149 149 systems, systemd uses a unified format for different types of startup 150 150 files (or units). The command <command>systemctl</command> is used to 151 enable, disable, control state, and obtain status of unit files. Here 151 enable, disable, control state, and obtain status of unit files. Here 152 152 are some examples of frequently used commands:</para> 153 153 -
chapter09/udev.xml
re680022 r716db1f 120 120 ownership at whatever <systemitem 121 121 class="filesystem">devtmpfs</systemitem> used initially.</para> </sect3> 122 122 123 123 <sect3 id="module-loading"> 124 124 <title>Module Loading</title> … … 224 224 <para>Note that the <quote>softdep</quote> command also allows 225 225 <literal>pre:</literal> dependencies, or a mixture of both 226 <literal>pre:</literal> and <literal>post:</literal> dependencies. See 226 <literal>pre:</literal> and <literal>post:</literal> dependencies. See 227 227 the <filename>modprobe.d(5)</filename> manual page for more information 228 228 on <quote>softdep</quote> syntax and capabilities.</para> 229 229 230 <para revision="sysv">If the module in question is not a wrapper and is 231 useful by itself, configure the <command>modules</command> bootscript to 230 <para revision="sysv">If the module in question is not a wrapper and is 231 useful by itself, configure the <command>modules</command> bootscript to 232 232 load this module on system boot. To do this, add the module name to the 233 233 <filename>/etc/sysconfig/modules</filename> file on a separate line. -
chapter09/usage.xml
re680022 r716db1f 25 25 particular Linux distribution, they should work the same in LFS too. LFS has its 26 26 own way of doing things, but it respects generally accepted standards.</para> 27 27 28 28 <para>SysVinit (which will be referred to as <quote>init</quote> from now on) 29 29 works using a run-levels scheme. There are seven (numbered 0 to 6) run-levels … … 234 234 /sys/class/rtc.</para> 235 235 236 <para>For information on kernel module loading and udev, see 236 <para>For information on kernel module loading and udev, see 237 237 <xref linkend="module-loading"/>.</para> 238 238 </sect2> … … 536 536 <sect2 id="ch-config-createfiles"> 537 537 <title>Creating Files at Boot</title> 538 538 539 539 <indexterm zone="ch-config-createfiles"> 540 540 <primary sortas="d-createfiles">File creation at boot</primary> 541 541 <secondary>configuring</secondary> 542 542 </indexterm> 543 543 544 544 <para>At times, it is desirable to create files at boot time. For instance, 545 545 the <filename class="directory">/tmp/.ICE-unix</filename> directory 546 546 is often needed. This can be done by creating an entry in the 547 547 <filename>/etc/sysconfig/createfiles</filename> configuration script. 548 The format of this file is embedded in the comments of the default 548 The format of this file is embedded in the comments of the default 549 549 configuration file.</para> 550 550 </sect2> … … 552 552 <sect2 id="ch-config-sysklogd"> 553 553 <title>Configuring the sysklogd Script</title> 554 554 555 555 <indexterm zone="ch-config-sysklogd"> 556 556 <primary sortas="d-sysklogd">sysklogd</primary> 557 557 <secondary>configuring</secondary> 558 558 </indexterm> 559 559 560 560 <para>The <filename>sysklogd</filename> script invokes the 561 561 <command>syslogd</command> program as a part of System V initialization. The … … 575 575 <sect2 id="ch-config-site"> 576 576 <title>The rc.site File</title> 577 577 578 578 <indexterm zone="ch-config-site"> 579 579 <primary sortas="a-rc.site">rc.site</primary> 580 580 </indexterm> 581 581 582 582 <para>The optional <filename>/etc/sysconfig/rc.site</filename> file contains 583 583 settings that are automatically set for each SystemV boot script. It can … … 588 588 <filename>rc.site</filename>, the values in the script specific files have 589 589 precedence. </para> 590 590 591 591 <para><filename>rc.site</filename> also contains parameters that can 592 592 customize other aspects of the boot process. Setting the IPROMPT variable 593 593 will enable selective running of bootscripts. Other options are described 594 594 in the file comments. The default version of the file is as follows:</para> 595 595 596 596 <!-- Use role to fix a pdf generation problem --> 597 597 <screen role="auto">&site;</screen> 598 598 599 599 <sect3> 600 600 <title>Customizing the Boot and Shutdown Scripts</title> 601 601 602 602 <para>The LFS boot scripts boot and shut down a system in a fairly 603 603 efficient manner, but there are a few tweaks that you can make in the … … 605 605 to your preferences. To do this, adjust the settings in 606 606 the <filename>/etc/sysconfig/rc.site</filename> file above.</para> 607 607 608 608 <itemizedlist> 609 609 610 610 <listitem><para>During the boot script <filename>udev</filename>, there is 611 611 a call to <command>udev settle</command> that requires some time to … … 614 614 card, the boot process will probably not need to wait for this command. To 615 615 skip it, set the variable OMIT_UDEV_SETTLE=y.</para></listitem> 616 616 617 617 <listitem><para>The boot script <filename>udev_retry</filename> also runs 618 618 <command>udev settle</command> by default. This command is only needed by … … 623 623 needed. Skip the command by setting the variable OMIT_UDEV_RETRY_SETTLE=y. 624 624 </para></listitem> 625 625 626 626 <listitem><para>By default, the file system checks are silent. This can 627 627 appear to be a delay during the bootup process. To turn on the 628 628 <command>fsck</command> output, set the variable VERBOSE_FSCK=y. 629 629 </para></listitem> 630 630 631 631 <listitem><para>When rebooting, you may want to skip the filesystem check, 632 632 <command>fsck</command>, completely. To do this, either create the file … … 637 637 the <parameter>-F</parameter> parameter instead of <parameter>-f</parameter>. 638 638 </para> 639 639 640 640 <para>Setting the variable FASTBOOT=y will disable <command>fsck</command> 641 641 during the boot process until it is removed. This is not recommended 642 642 on a permanent basis.</para></listitem> 643 643 644 644 <listitem><para>Normally, all files in the <filename 645 645 class='directory'>/tmp</filename> directory are deleted at boot time. … … 647 647 noticeable delay in the boot process. To skip removing these files set the 648 648 variable SKIPTMPCLEAN=y.</para></listitem> 649 649 650 650 <listitem><para>During shutdown, the <command>init</command> program sends 651 651 a TERM signal to each program it has started (e.g. agetty), waits for a set … … 659 659 script can be skipped by setting the parameter 660 660 KILLDELAY=0.</para></listitem> 661 661 662 662 </itemizedlist> 663 663 664 664 </sect3> 665 665 </sect2> -
chapter10/grub.xml
re680022 r716db1f 43 43 libisoburn</ulink> package.</para> 44 44 45 <screen role="nodump"><userinput>cd /tmp 46 grub-mkrescue --output=grub-img.iso 45 <screen role="nodump"><userinput>cd /tmp 46 grub-mkrescue --output=grub-img.iso 47 47 xorriso -as cdrecord -v dev=/dev/cdrw blank=as_needed grub-img.iso</userinput></screen> 48 48 -
chapter10/kernel.xml
re680022 r716db1f 98 98 99 99 <note> 100 101 100 <para>A good starting place for setting up the kernel configuration is to 102 101 run <command>make defconfig</command>. This will set the base … … 116 115 [*] Control Group support [CONFIG_CGROUPS] 117 116 [ ] Enable deprecated sysfs features to support old userspace tools [CONFIG_SYSFS_DEPRECATED] 118 [*] Configure standard kernel features (expert users) [CONFIG_EXPERT] ---> 117 [*] Configure standard kernel features (expert users) [CONFIG_EXPERT] ---> 119 118 [*] open by fhandle syscalls [CONFIG_FHANDLE] 120 119 Processor type and features ---> … … 298 297 299 298 <note> 300 <para>In many cases, the configuration of the kernel will need to be 299 <para>In many cases, the configuration of the kernel will need to be 301 300 updated for packages that will be installed later in BLFS. Unlike 302 301 other packages, it is not necessary to remove the kernel source tree 303 after the newly built kernel is installed.</para> 304 302 after the newly built kernel is installed.</para> 303 305 304 <para>If the kernel source tree is going to be retained, run 306 305 <command>chown -R 0:0</command> on the <filename -
chapter11/reboot.xml
re680022 r716db1f 57 57 within a comfortable GUI environment, install <ulink revision="sysv" 58 58 url='&blfs-book;postlfs/openssh.html'>openssh</ulink><ulink revision="systemd" 59 url='&blfs-systemd-book;postlfs/openssh.html'>openssh</ulink>. 59 url='&blfs-systemd-book;postlfs/openssh.html'>openssh</ulink>. 60 60 </para></listitem> 61 61 -
general.ent
re680022 r716db1f 14 14 <!-- jhalfs needs a literal dash, not – --> 15 15 16 <!ENTITY short-version "svn"> <!-- Used below in &blfs-book; 16 <!ENTITY short-version "svn"> <!-- Used below in &blfs-book; 17 17 Change to x.y for release but not -rc releases --> 18 18 <!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" --> 19 19 20 20 <!ENTITY short-versiond "systemd"> <!--Change to stable-systemd for release --> 21 <!ENTITY generic-versiond "systemd"> 21 <!ENTITY generic-versiond "systemd"> 22 22 23 23 <!ENTITY lfs-root "https://www.linuxfromscratch.org/"> … … 52 52 <!ENTITY before "Must be installed before"> 53 53 <!ENTITY external "Optional dependencies"> 54 54 55 55 <!ENTITY gnu "https://ftp.gnu.org/gnu/"> 56 56 <!ENTITY gnu-software "https://www.gnu.org/software/"> -
lfs-latest-git.php
re680022 r716db1f 31 31 foreach ( $lines as $line ) 32 32 { 33 if ( ! preg_match( $regex_match, $line ) ) continue; 33 if ( ! preg_match( $regex_match, $line ) ) continue; 34 34 35 35 // Isolate the version and put in an array 36 36 $slice = preg_replace( $regex_replace, "$1", $line ); 37 if ( $slice == $line ) continue; 38 39 array_push( $a, $slice ); 37 if ( $slice == $line ) continue; 38 39 array_push( $a, $slice ); 40 40 } 41 41 … … 99 99 $max = find_max( $lines, $regex_match, $regex_replace ); 100 100 101 return "$dirpath/$max"; 101 return "$dirpath/$max"; 102 102 } 103 103 … … 113 113 if ( $package == "e2fsprogs" ) $dirpath = "https://sourceforge.net/projects/e2fsprogs/files/e2fsprogs/"; 114 114 if ( $package == "expat" ) $dirpath = "http://sourceforge.net/projects/expat/files"; 115 if ( $package == "elfutils" ) $dirpath = "https://sourceware.org/ftp/elfutils"; 116 if ( $package == "expect" ) $dirpath = "http://sourceforge.net/projects/expect/files"; 115 if ( $package == "elfutils" ) $dirpath = "https://sourceware.org/ftp/elfutils"; 116 if ( $package == "expect" ) $dirpath = "http://sourceforge.net/projects/expect/files"; 117 117 if ( $package == "file" ) $dirpath = "https://github.com/file/file/releases"; 118 118 if ( $package == "flex" ) $dirpath = "https://github.com/westes/flex/releases"; … … 139 139 140 140 // Check for ftp 141 if ( preg_match( "/^ftp/", $dirpath ) ) 142 { 141 if ( preg_match( "/^ftp/", $dirpath ) ) 142 { 143 143 $dirpath = substr( $dirpath, 6 ); // Remove ftp:// 144 144 $dirpath = rtrim ( $dirpath, "/" ); // Trim any trailing slash … … 148 148 149 149 $conn = ftp_connect( $server ); 150 ftp_login( $conn, "anonymous", "" ); 150 ftp_login( $conn, "anonymous", "" ); 151 151 152 152 // See if we need special handling … … 167 167 168 168 // Get dir listing 169 $lines = ftp_rawlist ($conn, $path); 169 $lines = ftp_rawlist ($conn, $path); 170 170 $max = find_max( $lines, $regexp, $regexp ); 171 171 break; … … 234 234 } 235 235 236 if ( $package == "attr" || 236 if ( $package == "attr" || 237 237 $package == "acl" ) 238 238 { … … 362 362 } 363 363 364 else if ( preg_match( "/systemd-man-pages/", $file ) ) continue; 365 else if ( preg_match( "/python/" , $file ) ) continue; 364 else if ( preg_match( "/systemd-man-pages/", $file ) ) continue; 365 else if ( preg_match( "/python/" , $file ) ) continue; 366 366 367 367 $version = preg_replace( $pattern, "$1", $file ); // Isolate version -
lfs-latest.php
re680022 r716db1f 31 31 foreach ( $lines as $line ) 32 32 { 33 if ( ! preg_match( $regex_match, $line ) ) continue; 33 if ( ! preg_match( $regex_match, $line ) ) continue; 34 34 35 35 // Isolate the version and put in an array 36 36 $slice = preg_replace( $regex_replace, "$1", $line ); 37 if ( $slice == $line ) continue; 38 39 array_push( $a, $slice ); 37 if ( $slice == $line ) continue; 38 39 array_push( $a, $slice ); 40 40 } 41 41 … … 99 99 $max = find_max( $lines, $regex_match, $regex_replace ); 100 100 101 return "$dirpath/$max"; 101 return "$dirpath/$max"; 102 102 } 103 103 … … 113 113 if ( $package == "e2fsprogs" ) $dirpath = "http://sourceforge.net/projects/e2fsprogs/files/e2fsprogs"; 114 114 if ( $package == "expat" ) $dirpath = "http://sourceforge.net/projects/expat/files"; 115 if ( $package == "elfutils" ) $dirpath = "https://sourceware.org/ftp/elfutils"; 116 if ( $package == "expect" ) $dirpath = "http://sourceforge.net/projects/expect/files"; 115 if ( $package == "elfutils" ) $dirpath = "https://sourceware.org/ftp/elfutils"; 116 if ( $package == "expect" ) $dirpath = "http://sourceforge.net/projects/expect/files"; 117 117 if ( $package == "file" ) $dirpath = "https://github.com/file/file/releases"; 118 118 if ( $package == "flex" ) $dirpath = "https://github.com/westes/flex/releases"; … … 136 136 137 137 // Check for ftp 138 if ( preg_match( "/^ftp/", $dirpath ) ) 139 { 138 if ( preg_match( "/^ftp/", $dirpath ) ) 139 { 140 140 $dirpath = substr( $dirpath, 6 ); // Remove ftp:// 141 141 $dirpath = rtrim ( $dirpath, "/" ); // Trim any trailing slash … … 145 145 146 146 $conn = ftp_connect( $server ); 147 ftp_login( $conn, "anonymous", "" ); 147 ftp_login( $conn, "anonymous", "" ); 148 148 149 149 // See if we need special handling … … 164 164 165 165 // Get dir listing 166 $lines = ftp_rawlist ($conn, $path); 166 $lines = ftp_rawlist ($conn, $path); 167 167 $max = find_max( $lines, $regexp, $regexp ); 168 168 break; … … 197 197 } 198 198 199 //if ( $package == "bzip2" ) 199 //if ( $package == "bzip2" ) 200 200 //{ 201 201 // // Remove one directory … … 239 239 } 240 240 241 if ( $package == "attr" || 241 if ( $package == "attr" || 242 242 $package == "acl" ) 243 243 { … … 357 357 } 358 358 359 else if ( preg_match( "/systemd-man-pages/", $file ) ) continue; 360 else if ( preg_match( "/python/" , $file ) ) continue; 359 else if ( preg_match( "/systemd-man-pages/", $file ) ) continue; 360 else if ( preg_match( "/python/" , $file ) ) continue; 361 361 362 362 $version = preg_replace( $pattern, "$1", $file ); // Isolate version -
make-aux-files.sh
re680022 r716db1f 9 9 # Create the tarball and clean up 10 10 tar -cJf lfs-bootscripts-$version.tar.xz --exclude .svn lfs-bootscripts-$version 11 mv lfs-bootscripts-$version bootscripts 11 mv lfs-bootscripts-$version bootscripts 12 12 13 13 #rm -f udev-config*.bz2 -
packages.ent
re680022 r716db1f 6 6 Allowed deviation in SBUs : 10% 7 7 Allowed deviation in disk usage : 2% 8 8 9 9 Suffixes: 10 10 *-tmp-* Package info for Temporary Tools … … 59 59 <!ENTITY bash-fin-sbu "1.6 SBU"> 60 60 61 <!ENTITY bc-version "5.0. 0">61 <!ENTITY bc-version "5.0.2"> 62 62 <!ENTITY bc-size "420 KB"> 63 63 <!ENTITY bc-url "https://github.com/gavinhoward/bc/releases/download/&bc-version;/bc-&bc-version;.tar.xz"> 64 <!ENTITY bc-md5 " 8345bb81c576ddfc8c27e0842370603c">64 <!ENTITY bc-md5 "3b521d29aa4af4c4d5e96f7c3db3c607"> 65 65 <!ENTITY bc-home "https://git.yzena.com/gavin/bc"> 66 66 <!ENTITY bc-fin-du "6.7 MB"> … … 79 79 <!ENTITY binutils-fin-sbu "6.3 SBU"> 80 80 81 <!ENTITY bison-version "3. 7.6">82 <!ENTITY bison-size "2, 566KB">81 <!ENTITY bison-version "3.8.1"> 82 <!ENTITY bison-size "2,735 KB"> 83 83 <!ENTITY bison-url "&gnu;bison/bison-&bison-version;.tar.xz"> 84 <!ENTITY bison-md5 " d61aa92e3562cb7292b004ce96173cf7">84 <!ENTITY bison-md5 "0ea56629a7136cc097668dba808afe3a"> 85 85 <!ENTITY bison-home "&gnu-software;bison/"> 86 86 <!ENTITY bison-tmp-du "50 MB"> … … 241 241 <!ENTITY libstdcpp-tmpp2-sbu "0.8 SBU"> 242 242 243 <!ENTITY gdbm-version "1.2 0">244 <!ENTITY gdbm-size "9 65KB">243 <!ENTITY gdbm-version "1.21"> 244 <!ENTITY gdbm-size "983 KB"> 245 245 <!ENTITY gdbm-url "&gnu;gdbm/gdbm-&gdbm-version;.tar.gz"> 246 <!ENTITY gdbm-md5 " 006c19b8b60828fd6916a16f3496bd3c">246 <!ENTITY gdbm-md5 "a285c6e2dfed78668664c0555a7d202b"> 247 247 <!ENTITY gdbm-home "&gnu-software;gdbm/"> 248 248 <!ENTITY gdbm-fin-du "11 MB"> … … 312 312 <!ENTITY grub-fin-sbu "0.8 SBU"> 313 313 314 <!ENTITY gzip-version "1.1 0">315 <!ENTITY gzip-size "7 57KB">314 <!ENTITY gzip-version "1.11"> 315 <!ENTITY gzip-size "786 KB"> 316 316 <!ENTITY gzip-url "&gnu;gzip/gzip-&gzip-version;.tar.xz"> 317 <!ENTITY gzip-md5 " 691b1221694c3394f1c537df4eee39d3">317 <!ENTITY gzip-md5 "d1e93996dba00cab0caa7903cd01d454"> 318 318 <!ENTITY gzip-home "&gnu-software;gzip/"> 319 319 <!ENTITY gzip-tmp-du "10 MB"> … … 330 330 <!ENTITY iana-etc-fin-sbu "less than 0.1 SBU"> 331 331 332 <!ENTITY inetutils-version "2. 1">333 <!ENTITY inetutils-size "1,49 6KB">332 <!ENTITY inetutils-version "2.2"> 333 <!ENTITY inetutils-size "1,494 KB"> 334 334 <!ENTITY inetutils-url "&gnu;inetutils/inetutils-&inetutils-version;.tar.xz"> 335 <!ENTITY inetutils-md5 " 4e7676d1980e57c7df665e5c5c3c1047">335 <!ENTITY inetutils-md5 "de8c1b49cbde2b30e481c61c65357ad4"> 336 336 <!ENTITY inetutils-sha256 "01b9a4bc73a47e63f6e8a07b76122d9ad2a2e46ebf14870e9c91d660b5647a22"> 337 337 <!ENTITY inetutils-home "&gnu-software;inetutils/"> … … 347 347 <!ENTITY intltool-fin-sbu "less than 0.1 SBU"> 348 348 349 <!ENTITY iproute2-version "5.1 3.0">350 <!ENTITY iproute2-size "8 28KB">349 <!ENTITY iproute2-version "5.14.0"> 350 <!ENTITY iproute2-size "834 KB"> 351 351 <!ENTITY iproute2-url "&kernel;linux/utils/net/iproute2/iproute2-&iproute2-version;.tar.xz"> 352 <!ENTITY iproute2-md5 " 15fc3786303a173a14e180afe4cd2ecd">352 <!ENTITY iproute2-md5 "da53966eb3b08ac264f3e9df02e06bfa"> 353 353 <!ENTITY iproute2-home "&kernel;linux/utils/net/iproute2/"> 354 354 <!ENTITY iproute2-fin-du "15 MB"> … … 396 396 397 397 <!ENTITY lfs-bootscripts-version "20210608"> <!-- Scripts depend on this format --> 398 <!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB"> 398 <!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB"> 399 399 <!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.xz"> 400 <!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM"> 400 <!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM"> 401 401 <!ENTITY lfs-bootscripts-home " "> 402 <!ENTITY lfs-bootscripts-cfg-du "BOOTSCRIPTS-INSTALL-KB KB"> 402 <!ENTITY lfs-bootscripts-cfg-du "BOOTSCRIPTS-INSTALL-KB KB"> 403 403 <!ENTITY lfs-bootscripts-cfg-sbu "less than 0.1 SBU"> 404 404 405 <!ENTITY libcap-version "2.5 3">406 <!ENTITY libcap-size "1 53KB">405 <!ENTITY libcap-version "2.57"> 406 <!ENTITY libcap-size "164 KB"> 407 407 <!ENTITY libcap-url "&kernel;linux/libs/security/linux-privs/libcap2/libcap-&libcap-version;.tar.xz"> 408 <!ENTITY libcap-md5 " 094994d4554c6689cf98ae4f717b8e19">408 <!ENTITY libcap-md5 "e84ce311ec412cbe8340ea8ea31525d9"> 409 409 <!ENTITY libcap-home "https://sites.google.com/site/fullycapable/"> 410 410 <!ENTITY libcap-fin-du "3.2 MB"> … … 436 436 437 437 <!ENTITY linux-major-version "5"> 438 <!ENTITY linux-minor-version "1 3">439 <!ENTITY linux-patch-version " 12">438 <!ENTITY linux-minor-version "14"> 439 <!ENTITY linux-patch-version "3"> 440 440 <!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">--> 441 441 <!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;"> 442 <!ENTITY linux-size "11 6,545KB">442 <!ENTITY linux-size "117,839 KB"> 443 443 <!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz"> 444 <!ENTITY linux-md5 " 6e1728b2021ca19cc9273f080e6c44c7">444 <!ENTITY linux-md5 "b45b18effd1af9077de47f4bc496d2ab"> 445 445 <!ENTITY linux-home "https://www.kernel.org/"> 446 446 <!-- measured for 5.13.4 / gcc-11.1.0 on x86_64 : minimum is … … 598 598 <!ENTITY psmisc-fin-sbu "less than 0.1 SBU"> 599 599 600 <!-- If python minor version changes, updates in python and 600 <!-- If python minor version changes, updates in python and 601 601 meson pages will be needed: python3.6 and python3.6m --> 602 602 603 <!ENTITY python-version "3.9. 6">603 <!ENTITY python-version "3.9.7"> 604 604 <!ENTITY python-minor "3.9"> 605 <!ENTITY python-size "18,6 08KB">605 <!ENTITY python-size "18,676 KB"> 606 606 <!ENTITY python-url "https://www.python.org/ftp/python/&python-version;/Python-&python-version;.tar.xz"> 607 <!ENTITY python-md5 " ecc29a7688f86e550d29dba2ee66cf80">607 <!ENTITY python-md5 "fddb060b483bc01850a3f412eea1d954"> 608 608 <!ENTITY python-home "https://www.python.org/"> 609 609 <!ENTITY python-tmp-du "347 MB"> … … 612 612 <!ENTITY python-fin-sbu "4.4 SBU"> 613 613 <!ENTITY python-docs-url "https://www.python.org/ftp/python/doc/&python-version;/python-&python-version;-docs-html.tar.bz2"> 614 <!ENTITY python-docs-md5 " 0dae29e4c38af1b6b1a86b35c9e48923">615 <!ENTITY python-docs-size "6, 692KB">614 <!ENTITY python-docs-md5 "ef3ea6141ed362e4d12467b136ee70fe"> 615 <!ENTITY python-docs-size "6,791 KB"> 616 616 617 617 <!ENTITY readline-version "8.1"> … … 637 637 <!ENTITY shadow-url "&github;/shadow-maint/shadow/releases/download/v&shadow-version;/shadow-&shadow-version;.tar.xz"> 638 638 <!ENTITY shadow-md5 "126924090caf72f3de7e9261fd4e10ac"> 639 <!ENTITY shadow-home "https://shadow-maint.github.io/shadow/"> 639 <!ENTITY shadow-home "https://shadow-maint.github.io/shadow/"> 640 640 <!ENTITY shadow-fin-du "45 MB"> 641 641 <!ENTITY shadow-fin-sbu "0.2 SBU"> -
part3intro/generalinstructions.xml
re680022 r716db1f 96 96 <para>Using the <command>tar</command> program, extract the package 97 97 to be built. In <xref linkend="chapter-cross-tools"/> and 98 <xref linkend="chapter-temporary-tools"/>, ensure you are 98 <xref linkend="chapter-temporary-tools"/>, ensure you are 99 99 the <emphasis>lfs</emphasis> user when extracting the package.</para> 100 100 </listitem> -
part3intro/toolchaintechnotes.xml
re680022 r716db1f 39 39 40 40 <para>Cross-compilation involves some concepts that deserve a section on 41 their own. Although this section may be omitted in a first reading, it42 is strongly suggested to come back to it later in order to get a full43 grasp of the buildprocess.</para>41 their own. Although this section may be omitted in a first reading, 42 coming back to it later will be beneficial to your full understanding of 43 the process.</para> 44 44 45 45 <para>Let us first define some terms used in this context:</para> … … 68 68 <para>As an example, let us imagine the following scenario (sometimes 69 69 referred to as <quote>Canadian Cross</quote>): we may have a 70 compiler on a slow machine only, let's call themachine A, and the compiler70 compiler on a slow machine only, let's call it machine A, and the compiler 71 71 ccA. We may have also a fast machine (B), but with no compiler, and we may 72 72 want to produce code for another slow machine (C). To build a … … 142 142 reader may wonder why a <quote>triplet</quote> refers to a four component 143 143 name. The reason is history: initially, three component names were enough 144 to designate unambiguously a machine, but with new machines and systems144 to designate a machine unambiguously, but with new machines and systems 145 145 appearing, that proved insufficient. The word <quote>triplet</quote> 146 146 remained. A simple way to determine your machine triplet is to run … … 157 157 provided by Glibc finds and loads the shared libraries needed by a 158 158 program, prepares the program to run, and then runs it. The name of the 159 dynamic linker for a 32-bit Intel machine will be<filename160 class="libraryfile">ld-linux.so.2</filename> (<filename161 class="libraryfile">ld-linux-x86-64.so.2</filename> for 64-bit systems ). A159 dynamic linker for a 32-bit Intel machine is <filename 160 class="libraryfile">ld-linux.so.2</filename> and is<filename 161 class="libraryfile">ld-linux-x86-64.so.2</filename> for 64-bit systems. A 162 162 sure-fire way to determine the name of the dynamic linker is to inspect a 163 163 random binary from the host system by running: <userinput>readelf -l … … 168 168 </note> 169 169 170 <para>In order to fake a cross compilation , the name of the host triplet170 <para>In order to fake a cross compilation in LFS, the name of the host triplet 171 171 is slightly adjusted by changing the "vendor" field in the 172 172 <envar>LFS_TGT</envar> variable. We also use the … … 212 212 just a compiler, but also defines a standard library. In this book, the 213 213 GNU C library, named glibc, is used. This library must 214 be compiled for the lfs machine, that is, using the cross compiler cc1. 214 be compiled for the lfs machine, that is, using the cross compiler cc1. 215 215 But the compiler itself uses an internal library implementing complex 216 216 instructions not available in the assembler instruction set. This … … 296 296 parameter passed to its configure script; e.g. in our case, the compiler 297 297 will be <command>$LFS_TGT-gcc</command>. The binary tools and kernel 298 headers can be a bit more complicated. Therefore, take no risks and use298 headers can be a bit more complicated. Therefore, we take no risks and use 299 299 the available configure switches to enforce the correct selections. After 300 300 the run of <command>configure</command>, check the contents of the … … 330 330 libstdc++. Then temporary installations of programs needed for the proper 331 331 operation of the toolchain are performed. From this point onwards, the 332 core toolchain is self-contained and self-hosted. In332 core toolchain is self-contained and self-hosted. In 333 333 <xref linkend="chapter-building-system"/>, final versions of all the 334 334 packages needed for a fully functional system are built, tested and -
patches.ent
re680022 r716db1f 30 30 <!ENTITY flex-fixes-patch-size "3.4 KB"> 31 31 --> 32 33 <!ENTITY file-upstream-fixes-patch "file-&file-version;-upstream_fixes-1.patch"> 34 <!ENTITY file-upstream-fixes-md5 "d99090db596b9db2bed869662199a56a"> 35 <!ENTITY file-upstream-fixes-patch-size "4.0 KB"> 32 36 33 37 <!ENTITY gcc-upstream-fixes-patch "gcc-&gcc-version;-upstream_fixes-1.patch"> -
pdf-fixups.sh
re680022 r716db1f 1 1 #!/bin/bash 2 2 3 if [ $# -lt 1 ] ; then 3 if [ $# -lt 1 ] ; then 4 4 echo "This script needs the location of the fo file to update" 5 5 exit 1 -
process-scripts.sh
re680022 r716db1f 9 9 do 10 10 script=$(basename $s) 11 11 12 12 # Skip directories 13 13 [ $script == 'network-devices' ] && continue … … 15 15 16 16 # Disambiguate duplicate file names 17 [ $s == 'bootscripts/lfs/sysconfig/rc' ] && script='rc-sysinit'; 18 [ $s == 'bootscripts/lfs/sysconfig/modules' ] && script='modules-sysinit'; 19 [ $s == 'bootscripts/lfs/sysconfig/udev_retry' ] && script='config-udev-retry'; 20 17 [ $s == 'bootscripts/lfs/sysconfig/rc' ] && script='rc-sysinit'; 18 [ $s == 'bootscripts/lfs/sysconfig/modules' ] && script='modules-sysinit'; 19 [ $s == 'bootscripts/lfs/sysconfig/udev_retry' ] && script='config-udev-retry'; 20 21 21 sed -e 's/\&/\&\;/g' -e 's/</\<\;/g' -e 's/>/\>\;/g' \ 22 22 -e "s/'/\&apos\;/g" -e 's/"/\"\;/g' -e 's/\t/ /g' \ 23 $s > appendices/${script}.script 23 $s > appendices/${script}.script 24 24 done -
prologue/foreword.xml
re680022 r716db1f 11 11 <title>Foreword</title> 12 12 13 <para>My journey to learn and better understand Linux began 13 <para>My journey to learn and better understand Linux began 14 14 back in 1998. I had just installed my first Linux distribution and had 15 15 quickly become intrigued with the whole concept and philosophy behind -
prologue/organization.xml
re680022 r716db1f 52 52 53 53 <para>Part V provides information about the book itself including 54 acronyms and terms, acknowledgments, package dependencies, 55 a listing of LFS boot scripts, licenses for the distribution of the 56 book, and a comprehensive index of packages, programs, libraries, 54 acronyms and terms, acknowledgments, package dependencies, 55 a listing of LFS boot scripts, licenses for the distribution of the 56 book, and a comprehensive index of packages, programs, libraries, 57 57 and scripts.</para> 58 58 </sect2> -
prologue/standards.xml
re680022 r716db1f 23 23 </listitem> 24 24 <listitem> 25 <para><ulink 25 <para><ulink 26 26 url="http://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html"> 27 27 Filesystem Hierarchy Standard (FHS) Version 3.0</ulink></para> -
prologue/why.xml
re680022 r716db1f 24 24 <para>Acl</para> 25 25 26 <para>This package contains utilities to administer Access 27 Control Lists, which are used to define more fine-grained 28 discretionary access rights for files and directories. 26 <para>This package contains utilities to administer Access 27 Control Lists, which are used to define more fine-grained 28 discretionary access rights for files and directories. 29 29 </para> 30 30 </listitem> … … 33 33 <para>Attr</para> 34 34 35 <para>This package contains programs for administering 36 extended attributes on filesystem objects. 35 <para>This package contains programs for administering 36 extended attributes on filesystem objects. 37 37 </para> 38 38 </listitem> … … 67 67 <para>Bc</para> 68 68 69 <para>This package provides an arbitrary precision numeric processing language. 69 <para>This package provides an arbitrary precision numeric processing language. 70 70 It satisfies a requirement needed when building the Linux kernel.</para> 71 71 </listitem> … … 111 111 <para>D-Bus</para> 112 112 113 <para>This package contains programs to implement a message bus system, 113 <para>This package contains programs to implement a message bus system, 114 114 which a simple way for applications to talk to one another. 115 115 </para> … … 142 142 143 143 <para>This package is a device manager. It dynamically controls the ownership, 144 permissions, names, and symbolic links of devices in the /dev directory as 144 permissions, names, and symbolic links of devices in the /dev directory as 145 145 devices are added or removed from the system. 146 146 </para> … … 283 283 <para>Intltool</para> 284 284 285 <para>This package contains tools for extracting translatable 285 <para>This package contains tools for extracting translatable 286 286 strings from source files.</para> 287 287 </listitem> … … 327 327 <para>Libcap</para> 328 328 329 <para>This package implements the user-space interfaces to 330 the POSIX 1003.1e capabilities available in Linux kernels. 329 <para>This package implements the user-space interfaces to 330 the POSIX 1003.1e capabilities available in Linux kernels. 331 331 </para> 332 332 </listitem> … … 627 627 628 628 <para>This package contains compression and decompression routines 629 used by some programs. It provide high compression ratios and a very629 used by some programs. It provides high compression ratios and a very 630 630 wide range of compression / speed trade-offs.</para> 631 631 </listitem> -
stylesheets/lfs-xsl/pdf/lfs-mixed.xsl
re680022 r716db1f 104 104 <xsl:choose> 105 105 <xsl:when test="ancestor::appendix">auto</xsl:when> 106 <!-- Modified by Bruce Dubbs. Allow user to specify 106 <!-- Modified by Bruce Dubbs. Allow user to specify 107 107 automatic screen formatting to split across pages. --> 108 108 <xsl:when test="@role='auto'">auto</xsl:when> … … 115 115 </xsl:attribute> 116 116 117 <!-- The following lines were inserted by Martin Miehe. Scripts and rules 118 in the appendices should have a smaller font-size so that at least 117 <!-- The following lines were inserted by Martin Miehe. Scripts and rules 118 in the appendices should have a smaller font-size so that at least 119 119 80 characters fit to one line. --> 120 120 -
stylesheets/md5sum.xsl
re680022 r716db1f 16 16 name, the next test must be fixed to match it also. Skip possible 17 17 duplicated URLs that may be split for PDF output --> 18 <xsl:if test="(contains( @url, '.tar.' ) or 19 contains( @url, '.tgz' ) or 18 <xsl:if test="(contains( @url, '.tar.' ) or 19 contains( @url, '.tgz' ) or 20 20 contains( @url, '.patch') ) and 21 21 not( ancestor-or-self::*/@condition = 'pdf' )" > … … 33 33 <!-- Add a newline --> 34 34 <xsl:text>
</xsl:text> 35 35 36 36 </xsl:if> 37 37 </xsl:template> … … 39 39 <xsl:template name="basename"> 40 40 <xsl:param name="pathname"/> 41 41 42 42 <xsl:choose> 43 43 -
stylesheets/wget-list.xsl
re680022 r716db1f 17 17 name, the next test must be fixed to match it also. Skip possible 18 18 duplicated URLs due that may be splitted for PDF output --> 19 <xsl:if test="(contains(@url, '.tar.') or 20 contains(@url, '.tgz') or 19 <xsl:if test="(contains(@url, '.tar.') or 20 contains(@url, '.tgz') or 21 21 contains(@url, '.patch')) and 22 22 not(ancestor-or-self::*/@condition = 'pdf')"> -
udev-lfs/ChangeLog
re680022 r716db1f 62 62 * 55-lfs.rules: Override default perms on floppy disk devices provided 63 63 by 50-udev-default.rules. Thanks to Bruce Dubbs for the fix. Closes 64 LFS ticket #2076. 64 LFS ticket #2076. 65 65 66 66 2008-05-21 Bryan Kadzban <bryan@linuxfromscratch.org> … … 146 146 upstream sample rules files (from udev-102), except for one rule 147 147 which is more specific in our tarball and should probably be changed 148 upstream. 148 upstream. 149 149 * doc/60-persistent-storage.txt: Modify to match the changes. Also 150 150 fix a couple typos. -
udev-lfs/Makefile.lfs
re680022 r716db1f 16 16 @echo "Use the install target" 17 17 18 install: 18 install: 19 19 @mkdir -pv $(DESTDIR)/lib/udev/rules.d \ 20 20 $(DESTDIR)/etc/udev/rules.d \ -
udev-lfs/init-net-rules.sh
re680022 r716db1f 5 5 # Updated fof udev-197 (DEVICES=en*) 6 6 7 RULES=/etc/udev/rules.d/70-persistent-net.rules 7 RULES=/etc/udev/rules.d/70-persistent-net.rules 8 8 DEVICES=$(eval echo /sys/class/net/{en*,eth*,ath*,wlan*[0-9],msh*,ra*,sta*,ctc*,lcs*,hsi*}) 9 9 … … 69 69 70 70 # S/390 uses id matches only, do not use MAC address match 71 # SUBSYSTEMS=="ccwgroup", 72 # export COMMENT="S/390 $driver device at $id", 73 # export MATCHID="$id" 71 # SUBSYSTEMS=="ccwgroup", 72 # export COMMENT="S/390 $driver device at $id", 73 # export MATCHID="$id" 74 74 # export MATCHDRV="$driver" 75 75 # export MATCHADDR="" … … 99 99 msg="The rules file should not be created in the Xen environment" 100 100 usage 101 fi 101 fi 102 102 103 103 # Variables used to communicate with write_net_rules: 104 # INTERFACE simple interface name 104 # INTERFACE simple interface name 105 105 # MATCHADDR MAC address used for the match 106 106 # MATCHID bus_id used for the match … … 125 125 comment 126 126 127 /lib/udev/write_net_rules 127 /lib/udev/write_net_rules 128 128 done 129 129
Note:
See TracChangeset
for help on using the changeset viewer.