Commit Graph

167 Commits

Author SHA1 Message Date
Poltern
f7e58b2233 gcc: Don't decrease the stack limit
I've had doubts on this "ulimit -s 32768" command for years.  After
reading GCC code (libiberty/stack-limit.c) I'm pretty sure this command
is not doing what we expected.

In a typical Linux distro, the default "soft" stack limit is 8 MiB and
the default "hard" stack limit is infinite.  And GCC will automatically
increase the soft limit to 64 MiB if the original soft limit is smaller
than 64 MiB, and the hard limit is at least 64 MiB.  So with a typical
default configuration, the real stack limit of GCC is 64 MiB.

But our "ulimit -s 32768" command sets both the soft limit and the hard
limit to 32 MiB.  Thus we are actually *decreasing* the real stack
limit.  Fortunately this has not caused any test failures, but it's just
wrong (contradicting with the explanation of the command).

Thus just raise the hard limit to infinite in case the host distro uses
a not so typical configuration where the hard limit is tight, and let
GCC to set up the soft limit to the expected value on its own.  It's
more future-proof than "ulimit -s 65536" in case GCC changes the
expected stack limit in the future.

It should be safe to make the change in freeze because in jhalfs it only
affects the test suite, and even in a manual build the user can skip
this command if not running the GCC test suite.
2024-08-28 10:31:52 +05:00
Poltern
8cd1e8e64d bootscripts: console: Fix fb console detection
If CONFIG_FB is not set but CONFIG_DRM_FBDEV_EMULATION is set to y, on a
DRM-drived graphic card (anything from AMD/ATI, Intel, or NVIDIA in
recent 20 years) we'd be using a fb console but without
/sys/class/graphics/fb0.  Then the script won't run setfont for VT 2-6.

Typos on comments.
These changes are all in comments that do not affect the books in any way.

sysklogd
Turn off network logging by default

Update to lfs-bootscripts-20240825

Fix typos
2024-08-25 22:14:05 +05:00
Poltern
adcb9bb89b Small fix and reword 2024-08-22 10:01:27 +05:00
Poltern
5f77fde3e0 Again stupid typo fix 2024-08-18 23:46:02 +05:00
Poltern
4a276076dc Fix typo 2024-08-18 23:42:41 +05:00
Poltern
8a62a210d9 Package updates.
Update to iana-etc-20240806.
Update to pkgconf-2.3.0.
Update to python3-3.12.5.
Update to setuptools-72.2.0.
Update to kmod-33.
Update to binutils-2.43.1.
Update to linux-6.10.5

Update stats
2024-08-18 22:40:33 +05:00
Poltern
8437aa068c Package updates
Update to bash-5.2.32.
Update to iana-etc-20240801.
Update to vim-9.1.0660.
Update to binutils-2.43.
Update to linux-6.10.3.
Update to readline-8.2.13.
Update to wheel-0.44.0.
Update to setuptools-71.1.0.
Update to gcc-14.2.0.
Update to glibc-2.40.
Update to iproute2-6.10.0.
Update to lz4-1.10.0.
Update to meson-1.5.1.
Update to sysklogd-2.6.1.
Update to systemd-256.4.
Update to sysvinit-3.10.
2024-08-16 12:55:32 +05:00
Poltern
521778877f Make capitalization os SysVinit consistent 2024-08-16 12:51:31 +05:00
Poltern
d509512e0f Fix a minor issue with liblz4.pc. 2024-08-16 12:49:51 +05:00
Poltern
01d2ff0508 cleanup: Remove hidden files in /tmp
Some test suite may create files of which the name starts with a dot.
These files are "hidden" and they won't be matched with the /tmp/*
wildcard.
2024-08-06 21:09:29 +05:00
Poltern
73d11ada77 Systemd: Update known failures
I can only reproduce test-namespace failure now with 256.1.
2024-08-06 21:09:01 +05:00
Poltern
77512d60a7 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-08-06 21:07:39 +05:00
Poltern
14c38953d5 Package and format updates.
Update to iana-etc-20240612.
Update to bc-6.7.6.
Update to man-pages-6.9.1.
Update to linux-6.9.7.
Update to sysklogd-2.5.2.
Update to shadow-4.16.0.
Update to systemd-256.1.
Update to setuptools-70.1.1.

Also change the formatting of options '-Dsomething' to '-D something'
2024-07-12 13:06:06 +05:00
Poltern
89e608294c Package updates.
Update to vim-9.1.0478.
Update to iana-etc-20240607.
Update to systemd-256.
Update to python3-3.12.4.
Update to perl-5.40.0.
Update to openssl-3.3.1 (Security fix).
Update to linux-6.9.4.
Update to findutils-4.10.0.

systemd: Reword test failure notice
2024-06-21 14:03:25 +05:00
Poltern
99e321ffcf tcl, expect, readline: Get rid of rpath 2024-06-21 13:14:52 +05:00
Poltern
8f045428d7 Package Updates and add linux-6.9.x compatibility instructions to systemd and udev
Update to meson-1.4.1.
Update to xz-5.6.2.
Update to setuptools-70.0.0 (python module).
Update to ninja-1.12.1.
Update to man-pages-6.8.
Update to linux-6.9.3.
Update to libcap-2.70.
Update to iproute2-6.9.0.
Update to e2fsprogs-1.47.1
2024-06-21 12:55:16 +05:00
Poltern
4728e167dd Revert ncurses to 6.5 and glibc patch 2024-05-13 11:54:36 +05:00
Poltern
5012468b6c 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-12 23:18:03 +05:00
Poltern
b9b783416e systemd: Enable test suite (again)
With systemd-255, I get only 1 failure out of 1206.  Thus it seems a
good idea to run the test suite.

Revert "python: Document test failures with recent expat"

In Python >= 3.12.3, these tests are disabled with expat >= 2.6.0.
Link: https://github.com/python/cpython/commit/c4fa79b924a1

glibc: Revise glibc-2.39 upstream fix patch

The glibc-2.39-upstream_fix-1.patch file contains a broken
tst-iconv-iso-2022-cn-ext.c file.  It causes:
    FAIL: iconvdata/tst-iconv-iso-2022-cn-ext
2024-05-03 18:31:54 +05:00
Poltern
2b1488e78f ncurses: Remove explicit --enable-widec in chapter 6 like chapter 8 2024-05-01 22:20:39 +05:00
Poltern
41b6194218 Package updates and a security fix.
Add security fix to glibc.
Update to linux-6.8.8.
Update to ncurses-6.5.
2024-04-30 23:43:36 +05:00
Poltern
4cffce68d0 Package updates
Update to setuptools-69.5.1
Update to python3-3.12.3
Update to openssl-3.3.0
Update to ninja-1.12.0
Update to man-db-2.12.1
Update to linux-6.8.6
Update to iana-etc-20240412
Update to vim-9.1.0330
2024-04-15 22:37:33 +05:00
Poltern
79ea911429 Small typo and fix 2024-04-12 11:38:42 +05:00
Poltern
2434ce3f60 util-linux: Create a dummy /etc/fstab to satisfy two tests
python: Document test failures with recent expat
kernel: Regenerate kernel config with 6.8.2
2024-04-09 17:27:49 +05:00
Poltern
8af5fbda75 Book generation fixed 2024-04-09 09:46:13 +05:00
Poltern
43705a305a Typos fix
python: Run test suite with a time limit
generalinstructions: Remove a false statement about "cp -R destroys symlink"
2024-04-06 21:07:47 +05:00
Poltern
12d6d8d955 coreutils: Test names are filenames 2024-04-03 12:53:56 +05:00
Poltern
bd40ed8bb8 Package updates
Update to iana-etc-20240318
Update to zstd-1.5.6
Update to util-linux-2.40
Update to shadow-4.15.1
Update to pkgconf-2.2.0
Update to linux-6.8.2
Update to coreutils-9.5
2024-04-01 16:14:35 +05:00
Poltern
0ee929eb99 Small fix 2024-04-01 16:09:20 +05:00
Poltern
40579d72fa Small typo :: 2024-03-29 16:58:17 +05:00
Poltern
d6fb17270a Package updates and a new addition:
- Update to Linux-6.8.1
- Update to iproute2-6.8.0
- Update to man-pages-6.7
- Add LZ4 to the book

Fix Python currency
2024-03-20 13:26:22 +05:00
Poltern
69b23d7343 Small reword 2024-03-19 16:22:16 +05:00
Poltern
c09846225b shadow: Add an <important> for using BLFS instruction if PAM installed
kmod: Remove an unnecessary command and adjust the description
/usr/bin/lsmod is already created by the building system.
2024-03-16 00:41:22 +05:00
Poltern
8c423354ad Package updates.
Update to iana-etc-20240222.
Update to vim-9.1.0145.
Update to xz-5.6.0.
Update to tcl-8.6.14.
Update to shadow-4.14.6.
Update to setuptools-69.1.1.
Update to linux-6.7.7.
Update to libffi-3.4.6.
Update to gettext-0.22.5.
Update to expat-2.6.1.
2024-03-05 23:17:39 +05:00
Poltern
bdbd8e34e2 glibc: Make the command enumerating timed out tests remap="test"
procps: Run chown -R tester . before running the test as tester
coreutils: Redirect stdin for test suite to prevent two failures
2024-03-05 23:15:39 +05:00
Poltern
2f1a3a46a1 Minor text changes
Fix some external URLs
procps: Add "-k" for make check and document two additional failures
2024-02-28 13:21:02 +05:00
Poltern
32378c23c4 vim: Minor decoration
coreutils: Comment out test-getlogin failure
procps: Be more specific about the known ps test failure
2024-02-27 01:56:18 +05:00
Poltern
565460aa73 vim: Set TERM=xterm-256color for test
glibc: Correctly mark revision='systemd' for a paragraph in update note and  don't "overwrite" libcrypt.so.1* when updating
2024-02-24 17:27:10 +05:00
Poltern
98f0f56a97 Decorate test failures, remove outdated comments, move comments for upstream PR links to correct location. 2024-02-18 23:33:17 +05:00
Poltern
2b37f5ee2f Glibc: Re-organize test failures and mention how to rule out timed out tests
Glibc tests occansionally fail due to a timeout because:

1. The hardware is slower than the developers expected.
2. Some tests use multiple or even all CPU cores internally, for e.g.
   with 8 active CPU cores we may end up running 8 tests (due to -j8)
   each of them uses 8 cores in the worst case, resulting a severe
   congestion.
2024-02-18 23:31:06 +05:00
Poltern
99877719e0 Update descriptions for some test failures and small syntax fix 2024-02-18 00:20:58 +05:00
Poltern
6ef11543f0 Packages update and small fix chapter10/kernel.xml chown command reported by @ylegan 2024-02-15 00:13:18 +05:00
Poltern
6507d710a8 systemd: Fix a bug breaking systemd-verify an instantiated unit 2024-02-12 01:13:44 +05:00
Poltern
f8ddca6c50 bash: Really pass through the return code 2024-02-06 15:49:41 +05:00
Poltern
855635a4eb expect: Add (back) a simple test for PTY
We used to run "expect -c 'spawn ls'" for this in Binutils, but then we
thought expect test suite was enough as such a simple PTY test.  However
expect test can fail due to some different reason, so add back a simple
test using Python pty module before building expect.  Now we no longer
need to consider expect test critical (IIRC there was a report saying
one expect test failed for unknown reason but all other things OK).
2024-02-06 15:47:09 +05:00
Poltern
30db4f49a4 Remove -v from "chown -R tester" commands
It does no good: normally we have -v for chown so once it no longer has
an effect we can know, but in this case these chown commands will never
have no effect.  And a huge amount of output with -v wastes the server
storage and bandwidth (for both the server and the people reading the
build logs).
2024-02-06 14:47:50 +05:00
Poltern
1558778edf Add info about how to upgrade Glibc on a running system
Let's change our policy to match other "rolling release" distros and
ease the procedure to fix Glibc security vulnerabilities.

Squashed the commits in xry111/update-glibc branch to keep the history
clean.
2024-02-06 14:42:52 +05:00
Poltern
2aa8f4c78a Package updates
pkgmgt: Upgrading Linux API headers cannot be dangerous
2024-02-03 23:49:11 +05:00
Poltern
dd711b63c2 Drop --with-headers=/usr/include
Add more rationale about --enable-stack-protector, and remove the stale explanation of --with-headers
Update upstream fixes patch

To include fixes for CVE-2023-6246, CVE-2023-6779, and CVE-2023-6780.
2024-02-03 23:31:55 +05:00
Poltern
0142283bf5 Fix punctuation in quotes, and quote signs 2024-02-02 23:20:31 +05:00