262 Commits

Author SHA1 Message Date
Zeckmathederg
3ea5d3b1db Replaced SysVinit with OpenRC.
This is a rough draft of LFS w/ OpenRC without SysVinit. This is nowhere
close for a merge as I need to confirm this works with LFS. Beyond that,
BLFS also must get support, and BLFS will be a battlefield. Until we get
to that point, please do not have this merged.

This branch has been created because the LSB is getting changed, where
SysVinit will not be part of it. However, OpenRC will be. OpenRC also
provides technology projects like GNOME use. SysVinit simply will not
get those technologies. I believe OpenRC will be the way to go, going
forward for an educational alternative to the Systemd version of LFS.

SysVinit can act as an init system under OpenRC, which would introduce
unneeded complexity. That's why this removes SysVinit.

This shall get rendered at
https://linuxfromscratch.org/~zeckma/. MLFS support is not planned until
merge into trunk.

Feedback is appreciated.
2025-12-08 21:51:31 -07:00
Xi Ruoyao
3ce9115c4f hostreqs: Bump the GCC version in the check script too
I forgot this :(.
2025-08-23 19:14:02 +08:00
Xi Ruoyao
8f6ef36f74 hostreqs: Bump minimum GCC version to 5.4
GCC-15 has bumped the C++ standard to C++14, and the required GCC
version to 5.4 because 5.3 and earlier may generate some wrong code with
C++14 and constexpr (that GCC-15 code base uses).
2025-08-23 17:57:47 +08:00
Xi Ruoyao
ce20367007 stages: "Changing Ownership" shouldn't be executed resuming an interrupted build
Before we added "--from lfs", it'll break a half-baken LFS system.

After we added "--from lfs", it has no effect.
2025-02-01 20:12:49 +08:00
Xi Ruoyao
ff4a32ec01 aboutlfs: Fix umask expect output
On a latest LFS system the output is 0022.  It seems depending on host
shell version.
2025-01-25 22:15:31 +08:00
Xi Ruoyao
7622257836 Move fixup for $LFS owner/permssion to mounting the new partition 2025-01-13 11:25:01 +08:00
Douglas R. Reno
bb5bf3b9d8 Minor typo fixes 2025-01-12 12:13:06 -06:00
Xi Ruoyao
39679232f7 Move the explanation of umask 022 from settingenviron to aboutlfs
Explain it once we use it.  Also fix an error in the text (we don't make
files executable, we only make directories searchable).
2025-01-12 11:56:30 +08:00
Xi Ruoyao
625969c2de aboutlfs: Also mention umask in addition to export LFS= for bash profiles 2025-01-12 11:53:48 +08:00
Xi Ruoyao
cacb470c97 aboutlfs: Set umask to 022
I know some distros are using a different default and we are having
reports of some mysterious permission issue via lfs-support those I
highly suspect as some umask issue.  Let's just explicitly set it (like
setting $LFS) to protect us from such distros without changing every
"mkdir -pv" to "install -vdm755".
2025-01-11 23:34:14 +08:00
Xi Ruoyao
6d36d72175 hostreq: Bump min-kernel to 5.4
4.19 LTS is EOL now.
2024-12-12 14:37:56 +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
5ff2f2e472 creatingfilesystem: Remove reference to ReiserFS
It's deprecated by the kernel developers and we've archived the tools
for it in BLFS as well.
2024-05-13 20:17:46 +08:00
Xi Ruoyao
1e180412f9 hostreq: Raise min-kernel to 4.19
4.14 is no longer supported by the upstream since Jan 2024.
2024-02-02 09:03:51 +08:00
Xi Ruoyao
ee950a5e0d More <quote> clean up
Use <quote> instead of '"' if possible.  Use <literal>,
<computeroutput>, etc. instead of <quote> if possible.  Replace
<quote>alpha</quote> with a UTF-8 Greek alpha character.

BTW decorate ".link" with <filename class='extension'>.
2024-01-28 20:53:47 +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
ea93c117f2 treewide: Use <ulink> instead of <filename> for man pages
"gcc(1)" is really not a file name.

Use <ulink> and link to the online man page on
https://man.archlinux.org/ so the user can refer to the man pages more
easily.

The change is done via a sed command and long lines are wrapped
manually.
2024-01-26 01:59:06 +08:00
Pierre Labastie
7152faa5fa Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
Xi Ruoyao
e70bf8f4f4 hostreqs: Bump Coreutils minimal version to 8.1 and check for nproc
We'll use nproc for setting MAKEFLAGS and TESTSUITEFLAGS.  And if nproc
is not available, we'll end up with "MAKEFLAGS=-j" which is very
dangerous because it allows make to spawn infinite number of jobs.
Check it early.

The nproc program is added in Coreutils 8.1 so we need to bump the
minimal version.
2023-11-13 21:00:03 +08:00
Xi Ruoyao
808bc9406b hostreqs: Raise GCC minimal version to 5.2
Pass 1 GCC FTBFS with system GCC 5.1.

Link: https://gcc.gnu.org/PR65801
Link: https://lists.linuxfromscratch.org/sympa/arc/lfs-support/2023-09/msg00005.html
2023-09-17 19:54:22 +08:00
Xi Ruoyao
1ebfa8e664 pdf: Allow breaking pages in version-check and kernel configuration
They are very long <screen> or <note>.  By default they are attributed
"keep-together.within-column = always", override it to allow line break.

Fixes #5336.

Link: http://www.sagehill.net/docbookxsl/PageBreaking.html
2023-09-02 14:17:17 +08:00
Xi Ruoyao
4b1b79442c hostreqs: Raise texinfo minimal version to 5.0
Binutils-2.41 FTBFS with texinfo-4.x.  I've tested 5.0 and it works.

Link: https://sourceware.org/bugzilla/show_bug.cgi?id=30703
2023-08-30 00:32:30 +08:00
Xi Ruoyao
0f18f2b121 housekeeping after min-kernel bump
Update the rationale for min-kernel in hostreqs.  Add a note in
general.ent about the EOL of current min-kernel.  Realign the
backslashes in glibc instructions.
2023-06-05 23:20:48 +08:00
Douglas R. Reno
12a86f36b1 Typo fix for convenience partitions
Thanks goes to Rainer Fiebig on lfs-dev.
2023-03-21 14:20:13 -05:00
Bruce Dubbs
25cd02b9db Merge branch 'trunk' of git.linuxfromscratch.org:lfs into trunk 2023-03-09 19:51:42 -06:00
Bruce Dubbs
6e4dfa7528 Tweak kernel version in host requirements 2023-03-09 19:51:31 -06:00
Xi Ruoyao
835e40ce16 Adjustments for /dev/pts
1. Declare UNIX98 PTY requirement in host system requirements and check
   it in the script.  All desktop or server distros should have it now,
   but let's stop anyone from building on a embedded distro w/o UNIX98
   PTY early...
2. Use Expect test suite as a guard against mishandled $LFS/dev/pts.
3. No need to test the basic function of Expect in Binutils anymore
   because if ($LFS)/dev/pts is not good, the Expect test suite would
   have failed.
2023-03-08 11:25:48 +08:00
Xi Ruoyao
271c856538 hostreqs: Use &min-kernel; for kernel version 2023-03-05 15:26:44 +08:00
Xi Ruoyao
e39d2aa9df hostreqs: Remove commented out line 2023-03-05 15:22:24 +08:00
Xi Ruoyao
b789d88195 hostreq: Minor script adjustment
- Remove an extra whitespace breaking shebang (though our instruction
  does not use the shebang).
- Adjust the regex to allow several letters after the version number,
  and match grep version to the text.
- Raise Coreutils to 7.0 (for the host requirement script itself).  It
  was released in 2008 so I don't think it's a problem.
- Add a colon after the text "Compiler check" to match "Aliases:".
- Use grep -o instead of sed to make kernel version check simpler.
2023-03-05 10:01:40 +08:00
Bruce Dubbs
140e9a445d q 2023-03-04 16:26:31 -06:00
Xi Ruoyao
9547b2e7f8 hostreqs: Remove "required by udev" for kernel
We don't run the newly built udev daemon before rebooting to LFS kernel.
2023-02-28 14:59:19 +08:00
Bruce Dubbs
0ba2ee5a1f Bump minimum gcc requirement to 5.1 2023-02-27 09:46:44 -06:00
Bruce Dubbs
7c92d6dd82 Update build times an sizes.
This update changes the default number of cores used to build
packages to 4.  A section is also added to host requirements
to recommend a minumum number of cores and memory size.
2023-02-12 13:43:45 -06:00
David Bryant
294ea05cd1 Clarified verbiage here and there. Used the present perfect tense instead
of the simple present to make the order of events clearer.
2022-10-17 16:12:16 -05:00
David Bryant
86f386863e Websters spells it up-to-date. Added one word for clarity. 2022-10-17 15:46:25 -05:00
David Bryant
2646c571d7 Clarify "mounting a partition" (chapter 2.7). 2022-09-27 12:21:38 -05:00
Xi Ruoyao
ad9fbd14ae mounting: create &fstab; conventional entity and use it 2022-09-24 18:56:45 +08:00
Xi Ruoyao
f001ece905 creatingfilesystem: Refine the condition where a FS is needed
For example, a swap partition does not contain any FS.  And, if you want
to clone a partition, you can use

    dd if=/dev/<old-partition> of=/dev/<new-partition>

then it's unnecessary to create a FS on new-partition before operation.
This is sometimes faster than creating a new FS, mounting both
partition, then "cp -av" if the old-partition contains many small files.
2022-09-24 18:48:50 +08:00
David Bryant
50e70dbc1f Clarify verbiage in chapter 2.6 (Setting the $LFS Variable). 2022-09-23 14:08:34 -05:00
David Bryant
9011f2d242 Clean up grammar / idiom in chapter 2.7 (Mounting the New Partition) 2022-09-22 16:17:48 -05:00
David Bryant
4ca7966259 Corrected grammar / idiom / punctuation.
Also added an introduction explaining what a file system does.
2022-09-22 15:24:38 -05:00
David Bryant
58f92b0647 Correcting idiom / syntax again, based on feedback from Bruce & Doug. 2022-09-22 14:31:32 -05:00
Xi Ruoyao
b00063f2a5 partition: update the description for /tmp with tmpfs 2022-09-23 02:03:38 +08:00
Xi Ruoyao
fc472c83d9 partition: update examples for /opt
We don't use /opt for GNOME, so use Texlive as another example.
2022-09-23 01:40:51 +08:00
Xi Ruoyao
67756f3ec2 fix a typo 2022-09-23 01:31:26 +08:00
David Bryant
6612f5441b Corrected English idiom and punctuation in chapter 2.4 (new partition). 2022-09-21 16:16:00 -05:00
David Bryant
925414842a Corrected English idiom, fixed some typos in chapter 2.3 (Stages) 2022-09-21 15:53:38 -05:00
David Bryant
17a807a99f Fix minor typo in chapter 2 "Host System Requirements". 2022-09-21 15:41:34 -05:00
Xi Ruoyao
fb66c4c583 some http -> https changes 2022-09-05 09:52:05 +08:00