Commit Graph

8764 Commits

Author SHA1 Message Date
Xi Ruoyao
c018a6d335
Merge remote-tracking branch 'origin/trunk' into xry111/loongarch 2023-06-20 16:55:01 +08:00
Xi Ruoyao
89375e276b
prologue/why: Tell why pkgconf is used instead of pkg-config 2023-06-19 19:48:17 +08:00
Xi Ruoyao
8b0e004346
dependencies: list GDC along with GNAT as a GCC external dependency
It does not make too much sense to list GNAT but not GDC.  They are for
same purpose (building optional languages with bootstrap from binary
requirement).
2023-06-19 19:08:51 +08:00
Xi Ruoyao
1a823d576a
dependencies: Add dependencies to pkgconf or systemd
There are many packages using pkg-config (pkgconf actually) or systemd
(systemd revision only) in the configure stage but we've not documented
them yet.

- D-Bus uses pkgconf to detect systemd.
- E2fsprogs uses pkgconf to detect libblkid (in util-linux).
  eudev (in sysv revision) and systemd (in systemd revision).
- IProute2 uses pkgconf to detect libcap and libelf.
- Man-DB uses pkgconf to detect libpipeline and systemd.
- Procps-ng uses pkgconf to detect ncurses and systemd (or elogind,
  but it's an external dependency).
- Python uses pkgconf to detect libuuid (in util-linux from Ch 07),
  zlib, bzip2, xz, and openssl (and some external dependencies).
- Systemd uses pkgconf to detect Zlib, Xz, etc.
- Util-linux uses ncurses and systemd (and some external dependencies)

Add all of them.

There are also several packages finding for pkg-config but only uses it
for external dependencies, for eg grep and vim.  I've not added them here.
2023-06-19 19:04:23 +08:00
Xi Ruoyao
138b87f8d8
changelog: Add ticket number for pkgconf change 2023-06-17 18:19:10 +08:00
Xi Ruoyao
7cb24f473c
Package updates
Update to linux-6.3.8 (#5272)
Update to kbd-2.6.0 (#5273)
2023-06-17 15:38:43 +08:00
Xi Ruoyao
654a2f9ede
whatsnew: Update for pkgconf change 2023-06-17 15:14:12 +08:00
Rahul Chandra
36c4569b9f
Replace pkg-config with pkgconf 2023-06-17 15:14:12 +08:00
Xi Ruoyao
76ef88ee13
loongarch: systemd: Add -Wno-format-overflow workaround
Without this, the package FTBFS.  It wasn't detected in my manual build
because of my custom CFLAGS.

Need to investigate it later: it may be a systemd bug or GCC bug on
LoongArch.
2023-06-14 14:46:59 +08:00
Xi Ruoyao
f536e01d96
loongarch: patches: Remove stale GRUB patch 2023-06-14 09:15:16 +08:00
Xi Ruoyao
22166ba683
loongarch: Various text change for references to architecture 2023-06-12 04:52:35 +08:00
Xi Ruoyao
8e79fc49c4
loongarch: util-linux: Remove i386 and x86_64 from contents 2023-06-12 04:52:35 +08:00
Xi Ruoyao
133b5cc18b
loongarch: grub: reword the note about UEFI
No instruction change is needed.

Cherry picked from ARM64 branch.

(cherry picked from commit 5a458e897a)
2023-06-12 04:52:35 +08:00
Xi Ruoyao
f81c799388
loongarch: Update to grub-2.11-pre-gc016a969d for LoongArch support
Patching GRUB-2.06 to support LoongArch is extremely difficult because
the "bootstrap" script in grub.git performs many complicated jobs.  So
just provide our own dist tarball here.
2023-06-12 04:52:35 +08:00
Xi Ruoyao
d89cc55827
loongarch: grub configuration: Adapt for loongarch64-efi
Again it's a slightly adjusted copy of arm64 version.  Thanks Ard
Biesheuvel for the excellent "generic zboot" work!
2023-06-12 04:52:35 +08:00
Xi Ruoyao
58962f760b
loongarch: kernel: Adapt for LoongArch
It was done by checkout chapter10/kernel.xml from arm64 branch and
perform some tiny adjustment :).
2023-06-12 04:52:35 +08:00
Xi Ruoyao
789161669f
loongarch: util-linux: Disable a faulty test and document two failures
These should be fixed in the next util-linux release.
2023-06-12 04:52:35 +08:00
Xi Ruoyao
d9247b9329
loongarch: groff: Update config.{guess,sub} 2023-06-12 04:52:35 +08:00
Xi Ruoyao
95efac6ab6
loongarch: check: Update config.{guess,sub} 2023-06-12 04:52:34 +08:00
Xi Ruoyao
bcf7116d89
loongarch: libelf: Document test failures 2023-06-12 04:52:34 +08:00
Xi Ruoyao
03372aee06
loongarch: openssl: Add linux-generic64
The guess is "linux-generic32", which is too conservative for 64-bit
LoongArch CPUs.  We may need to revise it when we add LA32 support.

There is also "linux64-loongarch64" but it depends on Binutils LSX
support which is not submitted for review yet.
2023-06-12 04:52:34 +08:00
Xi Ruoyao
f7cdb10929
loongarch: gdbm: Update config.{guess,sub} 2023-06-12 04:52:31 +08:00
Xi Ruoyao
85eca6fd7e
loongarch: pkgconfig: Update config.{guess,sub} 2023-06-12 04:40:45 +08:00
Xi Ruoyao
ed43475070
loongarch: gcc: Update sanity check output 2023-06-12 04:40:45 +08:00
Xi Ruoyao
87db6ebbc2
loongarch: gcc: Update known test failures 2023-06-12 04:40:44 +08:00
Xi Ruoyao
2750180e72
loongarch: acl: Update config.{guess,sub} 2023-06-12 04:40:44 +08:00
Xi Ruoyao
a9b1abaa11
loongarch: attr: Update config.{guess,sub} 2023-06-12 04:40:44 +08:00
Xi Ruoyao
dd34ffcce0
loongarch: gmp: Update config.{guess,sub}
Comment out the note about "HW specific optimization" for now because
the current GMP release do not understand LoongArch-specific things.
2023-06-12 04:40:44 +08:00
Xi Ruoyao
3ba50cf694
loongarch: binutils: Don't enable gold
gold has no LoongArch support, so --enable-gold will cause a build
failure.
2023-06-12 04:40:44 +08:00
Xi Ruoyao
f272b23795
loongarch: expect: Update config.{guess,sub} 2023-06-12 04:40:44 +08:00
Xi Ruoyao
870a716a9b
loongarch: flex: Update config.{guess,sub} 2023-06-12 04:40:44 +08:00
Xi Ruoyao
a0b441d1eb
loongarch: patch: Update config.{guess,sub} 2023-06-12 04:40:43 +08:00
Xi Ruoyao
c99204bcbc
loongarch: file: Update config.{guess,sub} 2023-06-12 04:40:43 +08:00
Xi Ruoyao
a0aece6e16
loongarch: Add entities for config.{guess,sub} update
LoongArch is a relatively new architecture so an update to
config.{guess,sub} may be needed frequently.  Create two entities to
avoid duplicate.
2023-06-12 04:40:43 +08:00
Xi Ruoyao
b4cc703705
loongarch: m4: Override stack direction for cross-compiling 2023-06-12 04:40:43 +08:00
Xi Ruoyao
1c09ae8838
loongarch: Adapt ld.so symlink creation 2023-06-12 04:40:43 +08:00
Xi Ruoyao
8ec5b5370d
loongarch: Update ELF loader paths
See https://sourceware.org/glibc/wiki/ABIList#loongarch.

Currently we don't consider soft-float because there is no soft-float
hardwares or distros available.
2023-06-12 04:40:43 +08:00
Xi Ruoyao
a84c732af9
loongarch: chapter04: Always create lib64
We may revise it again we we add ilp32 support.
2023-06-12 04:40:43 +08:00
Xi Ruoyao
7481894acd
loongarch: gcc: Adapt GCC lib64 -> lib quirk, and ...
Update config.guess for GMP in pass 1 and pass 2.
2023-06-12 04:40:43 +08:00
Xi Ruoyao
cc44a47b5a
loongarch: hostreq: Bump Binutils and GCC requirement
Binutils 2.38 is the first release supporting LoongArch.  Maybe we
should make it 2.40 (when the stupid "stack-based relocs" are gone) but
with our cross-compile method it should not make a significant
difference.

GCC 12.1 is the first release supporting LoongArch but it suffers a
severe bug [1] and it may miscompile GCC pass 1, so require 12.2 here.

[1]:https://gcc.gnu.org/PR106096
2023-06-12 04:40:43 +08:00
Xi Ruoyao
1cab1bf5b2
loongarch: hostreqs: Reword the rationale for host kernel requirement
Highlight the "old-world" vs. "new-world" issue.
2023-06-12 04:40:42 +08:00
Xi Ruoyao
dae9e98af1
loongarch: Set min-kernel to 5.19
It's the first official kernel release with LoongArch support, so Glibc
requires it as the minimum.
2023-06-12 04:40:42 +08:00
Xi Ruoyao
ac6e9a31f5
loongarch: start branch 2023-06-12 04:40:42 +08:00
Xi Ruoyao
a3bd468940
glibc: Reword the reason to skip test-installation.pl
It won't work even on a "complete LFS system".
2023-06-11 21:20:02 +08:00
Bruce Dubbs
7e7600de9e Merge branch 'trunk' of git.linuxfromscratch.org:lfs into trunk 2023-06-09 12:42:36 -05:00
Bruce Dubbs
2ebf4143a8 Package updates.
Update to dbus-1.14.8.
Update to linux-6.3.6.
Update to Python-3.11.4.
2023-06-09 12:39:24 -05:00
Pierre Labastie
6256b16baf Kernel: IPV6 only appears if TCP/IP selected
Report by wen zhang.
Also fix formatting.
2023-06-07 08:25:45 +02: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
Xi Ruoyao
5e7593e6f0
pkgmgmt: Revert some of reword for "dependency hell" from Bruce
Use "library name" (instead of "library version") for SONAME (for now).
And "conflicting locations" may not be a problem if the symbol is at two
locations but they are exactly same (or ABI compatible).

For the details see lfs-dev discussion.

The current word is still not perfect (we've not defined "the name of a
shared library" at all), so I guess we'll need to make a major revision
for the entire "upgrading issue with shared libraries" thing in the
future.
2023-06-04 19:31:59 +08:00
Xi Ruoyao
d4a32f958f
changelog: Fix the entry for MarkupSafe 2023-06-04 19:23:22 +08:00