3084 Commits
Author SHA1 Message Date
Xi Ruoyao a5e18ad3e1 ch06/coreutils: remove --enable-no-install-program
The kill and uptime programs are already disabled by default since 9.11
release, having this switch causes configure to warn about its
redundancy.

This switch is already removed from ch08 earlier.
2026-08-09 03:39:37 +08:00
Xi Ruoyao 47f35a8df3 gcc-pass2: add CXX_FOR_TARGET="$LFS_TGT-gcc -nostdinc++"
In gcc-pass2 the C++ std module fails to build, similar to the issue
we've fixed for gcc-pass1 at commit 2be87ced88.  Here it's even more
complicated than gcc-pass1: the problem is the libstdc++ fenv.h
has #include_next <fenv.h> and expects the directive to find glibc
fenv.h, but with CXX_FOR_TARGET=$LFS_TGT-g++ (the default) the compiler
finds it's own (installed at ch.05 libstdc++) fenv.h, then
this #include_next directive finds fenv.h in the gcc-pass2 build, and
because of the _GLIBCXX_FENV_H include guard gcc-pass2 fenv.h won't pull
the glibc header anymore.  Then the build will report errors like
"cannot find fenv_t" etc.

To resolve the issue, pass CXX_FOR_TARGET="$LFS_TGT-gcc -nostdinc++"
like what the top-level build system does for a native build.
2026-08-01 04:14:04 +08:00
Bruce Dubbs f1476cdc33 Package updates.
Update to shadow-4.20.0.
Update to vim-9.2.0858 (Security Update).
Update to systemd-261.2.
Update to sqlite-3.53.4.
Update to pkgconf-3.0.4.
Update to perl-5.44.0.
Update to linux-7.1.5.
Update to libtool-2.6.2.
Update to iana-etc-20260723.
Update to glibc-2.44 (Security Update).
Update to binutils-2.47.
2026-07-31 11:22:04 -05:00
Xi Ruoyao 3520acb415 gcc: disable fixincludes for pass 1 and pass 2 too
Doing so is not strictly needed but it improves the consistency and
saves some CPU cycles building LFS.  It may also potentially avoid a
build failure in case GCC pass 2 fixincludes breaks a pattern in a
header from some release of glibc or kernel.
2026-06-14 16:29:14 +08:00
Joe Locash c41dfeaed3 bash: Use docdir in chapter 6 like chapter 8, otherwise an unversioned /usr/share/doc/bash is left around. 2026-06-02 16:30:01 -04:00
Xi Ruoyao de4fbf0adf gcc-pass2: use the build system machinery to enable thread instead of hacking it
Also reorder the explanations to match the order of switches in the
instruction.
2026-06-02 19:24:05 +08:00
Bruce Dubbs 2c1f428b94 Package updates.
Update to XML-Parser-2.54 (Security update).  (again)
Update to vim-9.1.0272.
Update to systemd-260.1.
Update to perl-5.42.2.
Update to mpc-1.4.0.
Update to meson-1.10.2.
Update to linux-6.19.10.
Update to iana-etc-20260327.
Update to groff-1.24.1.
Update to autoconf-2.73.
2026-03-31 11:45:33 -05:00
Pierre Labastie df7910ddf7 cross diffutils: fix the strcasecmp check
Setting gl_cv_func_strcasecmp_works to "y" (or anything not ending
with "yes") allows configure to complete, but with settings that
prevent using the system strcasecmp function. The correct setting
of the variable is "yes" (or anything ending with "yes"), which
allows configure to complete, and the systemstrcasecmp function
to be used

Thanks to Manuel Jacob for the report.
2026-03-23 19:10:54 +01:00
Bruce Dubbs 48bb888554 Package updates.
Update to vim-9.1.2144.
Update to setuptools-82.0.0 (Python module).
Update to man-pages-6.17.
Update to m4-1.4.21.
Update to linux-6.18.10.
Update to less-692.
Update to iana-etc-20260202.
Update to binutils-2.46.0.

Also the Makefle of LFS was chagned to make the default build to be
for systemd.
2026-02-13 19:43:05 -06:00
Xi Ruoyao 1348902d2b coreutils, gettext: drop the sed unneeded after recent updates
The m4 one can be dropped too when we update it.
2026-02-11 17:49:00 +08:00
Bruce Dubbs 54cfa41a9b Package updates.
Update to wheel-0.46.3.
Update to shadow-4.19.2.
Update to setuptools-80.10.2.
Update to packaging-26.0.
Update to openssl-3.6.1 (Security update).
Update to meson-1.10.1.
Update to linux-6.18.7.
Update to less-691.
Update to iana-etc-20260123.
Update to grub-2.14.
Update to glibc-2.43 (Security update).
2026-01-28 16:48:25 -06:00
Bruce Dubbs 75f072c377 Remove commented out instructions no longer needed. 2025-09-02 14:38:24 -05:00
Douglas R. Reno 5bb4d63abf GCC Pass 2: Minor rewords 2025-08-10 13:12:46 -05:00
Xi Ruoyao f8e7537a1f gcc-pass2: Drop glibc-2.42 fix
We have --disable-libsanitizer here, so the fix against libsanitizer is
not needed.
2025-08-01 10:33:24 +08:00
Bruce Dubbs 8641ff56b0 Package updates.
Update to meson-1.8.3.
Update to gdbm-1.26.
Update to binutils-2.45.
Update to gettext-0.26.
Update to glibc-2.42.
Update to man-pages-6.15.
2025-07-31 15:17:22 -05:00
Xi Ruoyao 153d3ccbca ch6: ncurses: Use <command> for program name 2025-07-01 10:57:35 +08:00
Pierre Labastie 5e4ff8cb2e Fix "Too many levels of symbolic links" in chapter 8 ncurses
The problem is that TIC_PATH is nor honored anymore in chapter
6, so that tic from the host is used to create the terminfo
database in chapter 6. The problem is that old versions of
tic create symlinks in the database, while newer versions
create hardlinks. Since we use a DESTDIR install in chapter 8
(with a recent version of ncurses, so with hardlinks), and copy
it in place with cp -a, then it seems that copying hardlinks to
symlinks. If an old version of tic has been used in chapter 6,
this copies hardlinks to symlinks, which creates symlinks
pointing to themselves (cp bug?).

Anyway, the solution is to copy the auxilliary tic built
in chapter 6 to $LFS/tools/bin (suggestion by Xi Ruoyao).
Now, there is no need to set TIC_PATH or whatever because this
tic is in the PATH.

Bug first reported by Marcin Dulak. Analysis with the help of
Bruce Dubbs and Thomas Trepl.

Fixes https://wiki.linuxfromscratch.org/lfs/ticket/5744
2025-06-13 15:52:08 +02:00
Bruce Dubbs e481799cdf Package updates.
Update to ncurses-6.5-20250531.
Update to readline-8.3-rc2.
Update to bash-5.3-rc2.
Update to Python-3.13.4.
2025-06-04 13:56:37 -05:00
Xi Ruoyao 30ec5ae0ea gcc-pass2: Remove empty line 2025-05-31 19:27:05 +08:00
Bruce Dubbs 37c303637d Adjust spacing for gcc-pass2. 2025-05-22 13:09:21 -05:00
Bruce Dubbs 68528292e6 Changes for gcc15. 2025-05-21 16:46:52 -05:00
Bruce Dubbs f6dbeeb1d3 White space reduction in instruction blocks. 2025-04-30 12:51:03 -05:00
Xi Ruoyao abd4750c89 diffutils: Use an easier work around for the strcasecmp check and improve the explanation 2025-04-15 18:17:33 +08:00
Zeckmathederg 9103be9005 chapter06/Diffutils: Elaborate what the sed does. 2025-04-14 18:02:27 -06:00
Bruce Dubbs d470cdb21c Package updates.
Update to libcap-2.76.
Update to perl-5.40.2 (Security update).
Add packaging-24.2 (Python module). Needed for wheel.
Update to xz-5.8.1.
Update to wheel-0.46.1 (Python Module).
Update to sysklogd-2.7.2.
Update to Python3-3.13.3.
Update to openssl-3.5.0.
Update to meson-1.7.2.
Update to linux-6.14.2.
Update to libffi-3.4.8.
Update to iproute2-6.14.0.
Update to gzip-1.14.
Update to grep-3.12.
Update to gperf-3.2.1.
Update to gawk-5.3.2.
Update to diffutils-3.12.
Update to coreutils-9.7.
2025-04-14 13:10:11 -05:00
Xi Ruoyao f3e6b8964f make: Remove --without-guile from chapter 6
This seems just a remnant from the pre-cross-chap5 era.  Now with the cross-
toolchain the build system cannot find guile headers and libraries, thus
guile should be disabled by default.

I've also tried this on a host distro with guile installed.
2025-04-13 12:45:23 +08:00
Bruce Dubbs 4f401fb372 Package updates.
Update to vim-9.1.1071.
Update to iana-etc-20250123.
Update to binutils-2.44.0.
Update to coreutils-9.6.
Update to e2fsprogs-1.47.2.
Update to glibc-2.41.
Update to iproute2-6.13.0.
Update to libxcrypt-4.4.38.
Update to linux-6.13.1.
Update to man-pages-6.10.
Update to meson-1.7.0.
Update to perl-5.40.1.
Update to tcl8.6.16.
Update to tzdata2025a.
Update to xz-5.6.4.
2025-02-02 20:02:39 -06:00
Xi Ruoyao 39c800d18c bash: Remove bash_cv_strtold_broken=no workaround
It's no longer needed for bash-5.2.37, the upstream has fixed the bug at
https://ftp.gnu.org/gnu/bash/bash-5.2-patches/bash52-033.
2024-11-08 21:04:37 +08:00
Bruce Dubbs c5fbd9da12 Minor grammar fix. 2024-09-04 09:59:12 -05:00
Xi Ruoyao e4b4449d11 ncurses: Simplify evading from mawk
Since it's overridable with the command line, just override it instead
of using a sed.
2024-09-04 20:21:58 +08:00
Xi Ruoyao 217802b9c0 gcc-pass2: Fix description of LDFLAGS_FOR_TARGET=
Pass 2 libstdc++ still links to libgcc.a even with LDFLAGS_FOR_TARGET=,
despite this libgcc.a is from pass 2 instead of pass 1.

The difference between pass 2 libgcc and pass 1 libgcc is Glibc wasn't
installed when the pass 1 libgcc was built.  This difference causes both
consequences (1) pass 1 libgcc lacks shared library and (2) pass 1
libgcc cannot support C++ EH, but it's not (1) causing (2).
2024-08-19 13:56:08 +08:00
Xi Ruoyao 6e6641f9b7 binutils: Add --enable-new-dtags
This option makes ld use DT_RUNPATH instead of DT_RPATH.  DT_RPATH is
generally considered bad because it takes precedence over
LD_LIBRARY_PATH.  For example, eog is linked with -rpath /usr/lib/eog,
and with DT_RPATH if an old eog is already installed we are basically
impossible to debug a new eog build w/o overwriting the system
installation first or explicitly using "ld.so --inhibit-rpath" to
invoke it.

This "new" actually means "new in 2000," it's 24 years ago and all other
distros has enabled it.  Thus I guess some unexplainable "test suite
uses installed library instead of the just built one" issues in BLFS are
actually caused by this difference: the package author just assumes
everyone is using DT_RUNPATH thus they just set LD_LIBRARY_PATH and
consider it enough to test with the just built libraries, but DT_RPATH
breaks this expectation.

Let's eliminate the difference as it seems not doing anything good and
doing so just takes one switch.
2024-07-18 11:13:20 +08:00
Xi Ruoyao 201aa93863 Move punctuation/comma into quotes for <xref>s
We are using American rule for punctuation/comma vs. quotes.  We've
fixed most cases but not <xref>s.
2024-06-22 11:43:31 +08:00
Xi Ruoyao 32c050cb58 gcc-pass2: Don't ambigiously use "previously" 2024-05-22 16:22:14 +08:00
Xi Ruoyao 87e5e08d34 gcc pass2: --disable-libsanitizer is no longer strictly needed
GCC 14 libsanitizer no longer depends on crypt.h.  But let's keep this
option for reducing build time, just update the explanation.

Also remove libxcrypt from GCC depedency list.
2024-05-15 19:48:50 +08:00
Bruce Dubbs 340e17adc6 Package updates.
Update to vim-9.1.0405.
Update to util-linux-2.40.1.
Update to linux-6.8.9.
Update to jinja2-3.1.4 (Python mpdule).
Update to iana-etc-20240502.
Update to gcc-14.1.0.
2024-05-11 15:17:56 -05:00
Xi Ruoyao 3abde5946b ncurses: Remove explicit --enable-widec in chapter 6 like chapter 8 2024-05-01 15:49:51 +08:00
Thomas Trepl 5a661c39b0 Fix changing entity name 2024-05-01 08:16:22 +02:00
Xi Ruoyao 7db37658c2 chapter06/ncurses: Use ncurses-release instead of ncurses-version for library file names
Reported-by: Stefano Moretti <stemoretti@gmx.com>
Closes: https://lists.linuxfromscratch.org/sympa/arc/lfs-dev/2024-04/msg00051.html
2024-04-26 20:02:16 +08:00
Pierre Labastie 360fdfca9c Fix punctuation in quotes, and quote signs
- period and comma inside quotes
- " to <quote>
- some " to <literal> when it is a var value
2024-01-26 18:28:53 +01:00
Xi Ruoyao 943f22504e ncurses: Use symlinks instead of linker scripts
The effect will not change, but with symlinks ld can save some time
invoking open(), read(), etc. syscalls and parsing the linker scripts.

Note that I've also removed "libcursesw" symlink because this library
has never existed.  Instead libcurses.so is created as a symlink
direct to libncursesw.so.
2024-01-22 00:27:45 +08:00
Xi Ruoyao d282f88dea ncurses: Modify the header to always use the ABI of ncursesw
instead of the 8-bit ncurses.

We don't provide the 8-bit ncurses library and we are "faking" it using
ncursesw.  Thus innocent package may be compiled with the 8-bit ABI
(because it does not know what we are doing and so it does not use
the "expected" preprocessor definitions to enable the wide ABI) but
linked against ncursesw, causing a potential ABI mismatch.
2024-01-22 00:27:45 +08:00
Pierre Labastie 7152faa5fa Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
Xi Ruoyao 6fec3f51e7 binutils: Add --enable-default-hash-style=gnu for configure (#5401) 2023-12-31 02:37:07 +08:00
Xi Ruoyao 642f779f64 gcc-pass2: Fix the indent of the sed command in case 2023-12-03 12:42:28 +08:00
Bruce Dubbs a851a78ded Formatting 2023-12-02 14:41:09 -06:00
Douglas R. Reno 5e8bab73a1 Chapter 6 Ncurses: minor text tweaks 2023-11-22 19:18:51 -06:00
Thomas Trepl 96f7f5ed58 Remove textual description of an arg no loger in instructions 2023-09-25 14:46:25 +02:00
Xi Ruoyao cb6fcea9bf binutils-pass2: Minor reword 2023-09-10 15:25:04 +08:00
Xi Ruoyao 9f9a9b4950 binutils-pass2: Reword the paragraph about libtool workaround
Well, I was blaming libtool too much.  If the entire Binutils tree uses
libtool this won't happen.  The problem is Binutils building system is
using libtool-style idiom on non-libtool components.

And this issue is not related to cross compiling, at all.  A native
build can exploit the issue as well (see the updated comment).

Maybe I'll submit a patch to GCC (yes, not a typo, GCC is the upstream
of Binutils building system) to fix the issue when I have the mood...
2023-09-08 21:49:06 +08:00