Big script

This commit is contained in:
2026-03-20 15:09:30 +01:00
parent dc2ac2f768
commit a2ca02a856
92 changed files with 5842 additions and 0 deletions

View File

@@ -0,0 +1,202 @@
================================================================================
DarkForge Linux — Chapter 8 Batch 3 (128-154) — Quick Reference
================================================================================
Location: /sessions/awesome-gallant-bell/mnt/lfs_auto_install/toolchain/scripts/
QUICK COMMAND TO RUN ALL SCRIPTS:
cd /sessions/awesome-gallant-bell/mnt/lfs_auto_install/toolchain/scripts
for i in {128..154}; do bash ${i}-*.sh || { echo "Failed at $i"; exit 1; }; done
QUICK COMMAND TO RUN A SINGLE SCRIPT (example 149-python.sh):
bash /sessions/awesome-gallant-bell/mnt/lfs_auto_install/toolchain/scripts/149-python.sh
================================================================================
SCRIPT LIST (27 total)
================================================================================
128 ncurses Terminal library with wide-char support 1.4K
129 sed Stream editor 998B
130 psmimic Process utilities (killall, pstree, fuser) 967B
131 gettext Internationalization infrastructure 1.1K
132 bison Parser generator 941B
133 grep Text search utility 947B
134 bash Final shell + /bin/sh symlink 1.4K
135 libtool Library support script 970B
136 gdbm GNU database manager 1.1K
137 gperf Perfect hash function generator 937B
138 expat XML parsing library 968B
139 inetutils Network utilities (no systemd) 1.3K
140 less Text pager 974B
141 perl Final Perl + modules 1.4K
142 xml-parser Perl's XML::Parser module 1018B
143 intltool Internationalization tool suite 1.1K
144 autoconf Source configuration automation 941B
145 automake Makefile generator 956B
146 openssl Crypto/TLS (shared libs + PIC) 1.4K
147 libelf ELF binary library 1.2K
148 libffi Foreign function interface 1.1K
149 python Python 3 + SQLite 1.5K
150 flit-core Python PEP 517 backend 1007B
151 wheel Python wheel format 1009B
152 setuptools Python package builder 1.1K
153 ninja Fast build system 993B
154 meson Modern build system 1.1K
Total Size: ~32KB of build scripts
================================================================================
EXECUTION ORDER & DEPENDENCIES
================================================================================
PHASE 1 — Core Utilities (run scripts 128-140):
└─ Builds: ncurses, sed, psmimic, gettext, bison, grep, bash, libtool,
gdbm, gperf, expat, inetutils, less
PHASE 2 — Language Runtimes (run scripts 141-149):
├─ 141: perl (required by 142, 143)
├─ 142: XML-Parser (requires 141)
├─ 143: intltool (requires 141, 142, 144, 145)
└─ 149: Python + SQLite (independent, required by 150-154)
PHASE 3 — Build System Generators (run scripts 144-145):
├─ 144: autoconf (required by 143)
└─ 145: automake (required by 143)
PHASE 4 — Python Ecosystem (run scripts 150-152):
├─ 150: flit-core (required by 151)
├─ 151: wheel (requires 150, required by 152)
└─ 152: setuptools (requires 150, 151)
PHASE 5 — Modern Build Systems (run scripts 153-154):
├─ 153: ninja (required by 154)
└─ 154: meson (requires 153)
CRITICAL DEPENDENCIES:
• perl (141) must run before intltool (143) and XML-Parser (142)
• Python (149) must run before flit-core (150)
• flit-core (150) must run before wheel (151)
• wheel (151) must run before setuptools (152)
• ninja (153) must run before meson (154)
SAFE TO PARALLELIZE (no dependencies between):
• 128-140 can run in parallel (but not recommended — use sequential)
• 132, 135, 136, 137, 138 are independent of each other
• 144, 145 are independent until 143 needs them
================================================================================
ENVIRONMENT SETUP (required before running scripts)
================================================================================
Inside chroot, ensure these are set:
export CFLAGS="-march=znver5 -O2 -pipe -fomit-frame-pointer"
export CXXFLAGS="${CFLAGS}"
export MAKEFLAGS="-j32"
export LDFLAGS="-Wl,-O1,--as-needed"
All scripts source /sources/toolchain-scripts/100-chroot-env.sh which sets
the above automatically. If that file doesn't exist, copy it from:
cp /sessions/awesome-gallant-bell/mnt/lfs_auto_install/toolchain/scripts/100-chroot-env.sh
/sources/toolchain-scripts/100-chroot-env.sh
================================================================================
TROUBLESHOOTING QUICK REFERENCE
================================================================================
Script fails immediately:
→ Check /sources/toolchain-scripts/100-chroot-env.sh exists
→ Check SRCDIR variable is set (should be /sources)
→ Check tarballs exist in /sources/
"configure: command not found":
→ Check 144-autoconf.sh ran successfully
→ Verify /usr/bin/autoconf exists
"make: command not found":
→ Check toolchain is properly set up
→ Verify /usr/bin/make is in PATH
Library not found errors:
→ Check previous script ran successfully
→ Verify library is in /usr/lib/
→ Check LD_LIBRARY_PATH is set correctly
Perl-related errors (142, 143):
→ Ensure 141-perl.sh completed successfully
→ Verify /usr/bin/perl exists
→ Check Perl modules are in /usr/lib/perl5/
Python-related errors (150-154):
→ Ensure 149-python.sh completed successfully
→ Verify /usr/bin/python3 exists
→ Check 150-flit-core.sh if pip install fails
================================================================================
QUICK TEST AFTER RUNNING ALL SCRIPTS
================================================================================
# Verify binaries exist and work:
bash --version
sed --version
grep --version
perl --version
python3 --version
# Verify libraries:
pkg-config --modversion openssl
pkg-config --modversion expat
# Verify build tools:
gcc --version
make --version
meson --version
ninja --version
# Verify Python ecosystem:
python3 -c "import sys; print(sys.version)"
python3 -c "import sqlite3"
# Check Perl modules:
perl -e "use XML::Parser; print 'OK\n'"
================================================================================
NEXT STEPS AFTER BATCH 3 COMPLETES
================================================================================
1. Verify all 27 scripts completed without errors
2. Run test commands above to verify functionality
3. Check disk space usage (scripts should total ~2-3GB when installed)
4. Proceed to Phase 4: Kernel Configuration (6.19.8)
- Create kernel config file
- Configure specific hardware flags for Zen 5, RTX 5090, X870E, etc.
5. Build and install kernel
6. Proceed to Phase 5: Init System (SysVinit, rc.conf, etc.)
================================================================================
DOCUMENTATION FILES
================================================================================
Related Documents in /toolchain/:
CHAPTER8-BATCH3-SUMMARY.md
- Complete overview of batch
- Design decisions and rationale
- Integration with other phases
- Testing notes
CHAPTER8-BATCH3-MANIFEST.txt
- Detailed specifications for each script
- Dependency chain analysis
- Testing checklist
- Error recovery procedures
BATCH3-QUICKREF.txt (this file)
- Quick reference for running scripts
- Troubleshooting tips
- Dependency visualization
../../docs/CHANGELOG.md
- Entry V5 documents this batch
- All changes and versions listed
================================================================================