Commit Graph

8159 Commits

Author SHA1 Message Date
Ken Moffat
b3d5df2a4a Note that linux-5.17.1 and zlib-1.2.12 are security updates. 2022-04-04 21:28:35 +01:00
Xi Ruoyao
d70fd55a87
procps-ng: remove an outdated note
It now just untars into procps-ng-4.0.0 directory, as we expect.
2022-04-05 01:30:19 +08:00
Bruce Dubbs
f30c2e8029 Add in the patch needed for systemd with the 5.17 kernel 2022-03-31 12:39:23 -05:00
Bruce Dubbs
676f0fdcec Package updates.
Update to sysvinit-3.02.
Update to zlib-1.2.12.
Update to expat-2.4.8.
Update to Jinja2-3.1.1.
Update to Python-3.10.4.
Update to procps-ng-4.0.0.
Update to iproute2-5.17.0.
Update to meson-0.62.0.
Update to linux-5.17.1.
Update to util-linux-2.38.
2022-03-30 16:13:26 -05:00
Bruce Dubbs
cf30814bdb Merge branch 'trunk' of git.linuxfromscratch.org:lfs into trunk 2022-03-27 11:46:12 -05:00
Bruce Dubbs
f23beb1acf Remove refereces to Russia 2022-03-27 11:46:00 -05:00
Pierre Labastie
d608267a48 Fix a stupid typo in bootscripts/Makefile
copy/paste error rc0.d -> rc6.d. Brown paperbag commit...
2022-03-27 14:30:05 +02:00
Xi Ruoyao
ab7af9e6f0
libffi: reword the note about "building for another system"
Telling the user to override CFLAGS and CXXFLAGS may cause two problems:

1. We've added --with-gcc-arch=native, so the configure script will add
   "-march=native" into CFLAGS.  Then we've not really verified which
   -march= value is the last one in the GCC command line and being really
   used.
2. User may just export CFLAGS="-march=x86_64", without "-O2".  This
   will produce unoptimized binaries.
2022-03-26 23:25:36 +08:00
Pierre Labastie
827cc05c37 Upstate bootscripts to 20220324 2022-03-25 18:32:05 +01:00
Pierre Labastie
2103b64b5d Bump bootscripts version 2022-03-25 10:52:35 +01:00
Pierre Labastie
aaad260318 Update bootscripts/ChangeLog for recent changes 2022-03-25 10:52:35 +01:00
Pierre Labastie
497d43515f Remove the 0/6 exception explanation in usage.xml
It's not true anymore with the new semantics of K/S files.
2022-03-25 10:52:35 +01:00
Pierre Labastie
ed6ffcb2e2 network bootscript: Don't run ifup if route already set
Otherwise, warnings are issued when changing runlevel. "ip route"
is a good test of whether network is already up. If users want to
change some config, they should use ifup/down, not the network
bootscript.
2022-03-25 10:52:34 +01:00
Pierre Labastie
2539253399 New semantics for S/K files in boot scripts
Now start and reboot should be called as "script start", and they
should be the last in their runlevel. Note that install_initd
needs to be patched for this to work; see
https://github.com/lfs-book/LSB-Tools/pull/12
2022-03-25 10:52:17 +01:00
Pierre Labastie
3b20f597b2 Fix Makefile for new semantics of S/K symlinks
In runlevel 0/6, services which must be stopped should be
with Kxx symlinks
2022-03-25 10:24:45 +01:00
Pierre Labastie
887af775a5 Adapt template to new semantics of S/K symlinks 2022-03-25 10:24:45 +01:00
Pierre Labastie
27d23b1d41 Change semantics of S and K files
Presently, there are a lot of special cases:
- runlevel 0 and 6 unconditionally run "script stop" if they
  find a Kxxscript symlink. This may lead to trying to stop an
  already stopped device if for example switching to runlevel 0/6
  from runlevel 1. This can be fixed by stating the convention
  that it is the responsability of scripts to check that the service
  is running before killing it (or not running before starting it).
  Still, we shouldn't try to stop a service if it was marked K in
  the previous runlevel. And same for S files: we shouldn't try to
  start a service that was marked S in the previous runlevel. Note
  that changing runlevel is not a "reset": if a user has manually
  changed the state of a daemon, this state will remain the same
  upon changing runlevel if the S/K status of that dameon is
  the same in both runlevels.

- Sxxscript symlinks in runlevel 0/6 are run as "script stop"
  instead of the more intuitive "script start". This does not interact
  well with LSB-tools (some scripts would need "Default-Start: S 0 6"
  but then it is impossible to get correct "Required-Start" or
  "Should-Start" fields). Furthermore, having a counter-intuitive
  behavior is error prone. So now runlevel 0/6 will run "script
  sart" for a Sxxscript.
2022-03-25 10:19:53 +01:00
Pierre Labastie
17c6532e0f Do not redefine is_true in the console script
There is a better version in init-functions
2022-03-25 10:19:53 +01:00
Pierre Labastie
db7c8be8ae Make runlevel 2 equivalent to 3 by default: Makefile 2022-03-25 10:19:52 +01:00
Pierre Labastie
96a636b000 Make runlevel 2 equivalent to 3 by default: network 2022-03-25 10:19:52 +01:00
Pierre Labastie
9d83019355 Make runlevel 2 equivalent to 3 by default: sysklogd 2022-03-25 10:19:52 +01:00
Pierre Labastie
a18e40dbc8 Typo in init-functions 2022-03-25 10:19:52 +01:00
Bruce Dubbs
9b463a2154 Merge branch 'trunk' of git.linuxfromscratch.org:lfs into trunk 2022-03-24 12:12:12 -05:00
Bruce Dubbs
bcb20b4701 Speling 2022-03-24 12:11:57 -05:00
Xi Ruoyao
b8a2b7e201
inputrc: "8bit" -> "8-bit"
The info page of readline says "eight-bit", so I guess a dash is proper.

Suggested-by: rhubarbpieguy <rhubarbpieguy@vivaldi.net>
2022-03-25 01:10:23 +08:00
Xi Ruoyao
63107f4bc5
fix typos
Suggested-by: rhubarbpieguy <rhubarbpieguy@vivaldi.net>
2022-03-25 01:03:13 +08:00
Pierre Labastie
6ad4730862 Fix kernel config to mount the devtmpfs before boot
Also make the order and the layout the same as in menu.
2022-03-22 22:03:33 +01:00
Pierre Labastie
dda039ba19 Update comments in the mountvirtfs booscript
Since the kernel can mount /dev if given the proper config
parameter, and we tell users to set this parameter when building
the kernel, this should be mentioned in the script
2022-03-22 21:20:46 +01:00
Bruce Dubbs
53b26d62bf Update references to active display managers 2022-03-21 18:16:20 -05:00
Bruce Dubbs
7ebcd28ac3 Clarify SysV run levels.
Update the meaning of run level 2.

Add some clarifying remarks about run levels 0 and 6 (halt and reboot).
2022-03-21 15:04:04 -05:00
Xi Ruoyao
d54813bc0c
zstd: add prefix=/usr for make
libzstd.pc is created during "make", so without prefix=/usr here
"-L/usr/local/lib" will show up in libzstd.pc.

Thanks Ryan Marsaw for the report.
2022-03-21 21:59:45 +08:00
Xi Ruoyao
0a993870cf
libffi: update the desc for --disable-exec-static-tramp
Now BLFS has gobject-introspection-1.72, which is already fixed.  GJS
fix will be released in GNOME 43 (not 42).
2022-03-21 14:39:47 +08:00
Xi Ruoyao
0a28db3cd7
package updates
* Update to Python-3.10.3 (#5028)
* Update to libtool-2.4.7 (#5029)
* Update to linux-5.16.16 (#5030)
* Update to tzdata-2022a  (#5031)
* Update to man-db-2.10.2 (#5032)
2022-03-20 21:26:58 +08:00
Pierre Labastie
bb9cb3c0d8 [Sysv]: /etc/inittab: respawn sulogin in runlevel 1
If run once (as it is now), the only possibility after hitting
control-D is to reboot. Note that init treats the S runlevel
differently:
when the last daemon to be run n runlevel S exits, init switches
to the default runlevel. This is not the case for other runlevels.
2022-03-18 16:06:36 +01:00
Pierre Labastie
fb651b9116 Fix email addresses for bug report in bootscripts 2022-03-17 08:12:51 +01:00
Xi Ruoyao
43149b904b
markupsafe: mention the suffix "-linux-<arch>" in installed directories 2022-03-16 19:47:09 +08:00
Xi Ruoyao
ae84037e94
update to MarkupSafe-2.1.1 (#5025) 2022-03-16 19:39:06 +08:00
Xi Ruoyao
ccb08fafc8
pkgmgmt: for systemd revision, add how to restart systemd without reboot 2022-03-16 15:49:35 +08:00
Bruce Dubbs
16a517ac7e Update to openssl-3.0.2. 2022-03-15 14:49:33 -05:00
Bruce Dubbs
f868154256 Merge branch 'trunk' of git.linuxfromscratch.org:lfs into trunk 2022-03-15 11:17:53 -05:00
Bruce Dubbs
4ce4f65526 Ignore fop.log 2022-03-15 11:17:36 -05:00
Xi Ruoyao
ce6088a1c1
changelog: dbus is systemd revision only 2022-03-16 00:14:14 +08:00
Xi Ruoyao
9c7e6ff853
systemd: remove --strip-compoents=1 from man page installation command
systemd-man-pages-250.tar.xz has no additional leading components.

An errata is required.
2022-03-16 00:13:35 +08:00
Bruce Dubbs
c6ed3d0126 Update to meson-0.61.3. 2022-03-15 10:55:25 -05:00
Xi Ruoyao
f7ac150c84
package update
* update to expat-2.4.7 (#5019)
* update to bc-5.2.3 (#5020)
* update to linux-5.16.14 (#5021)
* update to perl-5.34.1 (#5022)
* update to vim-8.2.4567 (#4500)
2022-03-15 16:18:24 +08:00
Bruce Dubbs
51a5442f16 Fix pdf presentation issues and some misc issues
Change pdf generation to use 9 point fonts for monospace
sections of the book.  Otherwise texy overflows, especially
in Chapter 8, Stripping.

Fix a minor spacing issue in the stripping issue.

MAke a minor grammar fix in creatingfiles.xml.
2022-03-14 13:08:40 -05:00
Xi Ruoyao
582da16ec4
glibc: fix the desc of nss/tst-nss-files-hosts-multi failure, and ...
mention nss/tst-nss-files-hosts-long failure

It seems I was confused by the two failures with similar name, when I
added the description.
2022-03-15 00:26:26 +08:00
Xi Ruoyao
408f4ae838
systemd: dbus: add --runstatedir=/run
This prevents a reference to /var/run in /usr/lib/tmpfiles.d/dbus.conf,
which would cause a warning from systemd-tmpfiles.

--with-system-pid-file=/run/dbus/pid is not needed with this, but
--with-console-auth-dir and --with-system-socket are still needed.
2022-03-13 16:12:55 +08:00
Xi Ruoyao
ac47b252fe
kernfs: "Udev" -> "the kernel and Udev"
devtmpfs already contains many device nodes created by the kernel once
it's mounted, and Udev creates or renames nodes based on kernel work.
2022-03-08 15:10:04 +08:00
Xi Ruoyao
940c8495ae
kernfs: remove static node creation, and update the text
This is to match the "new" way of device handling with devtmpfs (already
widely used in recent ten years).

In a normal booting process, the kernel mounts devtmpfs at very early
stage.  So the static nodes won't be used at all.  The only situation
where the kernel can't mount devtmpfs is "/dev is missing", but it means
those two static nodes can't exist anyway, and a normal LFS system
(without initramfs) won't boot in such a bad situation.

Removing static /dev/console and /dev/null may cause trouble for those
people or scripts chroot into LFS tree without mounting devtmpfs.  But
entering a chroot with only console and null in /dev is already
problematic.  For a reference, If a systemd service is started with
PrivateDevices=true, systemd will create 18 nodes and symlinks to form a
"minimal" /dev.
2022-03-08 01:25:06 +08:00