Commit Graph

3013 Commits

Author SHA1 Message Date
Bruce Dubbs
c9629e0347 Typo 2022-03-06 15:37:02 -06:00
Xi Ruoyao
3bb463d33d
gcc-pass2: document *_FOR_TARGET parameters 2022-03-02 18:02:07 +08:00
Xi Ruoyao
8e0f8a9a52
gcc pass2: use --target=$LFS_TGT instead of many {C,CXX}_FOR_TARGET
There is also a "GCC_FOR_TARGET" which was not set correctly.  The
--target=$LFS_TGT parameter can set up all of these variables as we
expected.
2022-03-02 18:00:10 +08:00
Xi Ruoyao
459d4936ae
fix GCC PR100017 and enable libstdc++ for pass 2
This is the issue preventing us from cross-compiling libstdc++ in
Chapter 6.  By fixing this issue we can remove a seperate pass 2 for
libstdc++ and simplify the instruction.

The upstream fix will be released in 11.3 and 12.0, so we can remove the
first sed upgrading gcc next time.
2022-02-27 23:36:55 +08:00
Xi Ruoyao
426913ea08
binutils-pass2: workaround "binaries link to host libraries" issue
A very old libtool copy (2009-11-29) is shipped in binutils tarball.  It
does not support sysroot, so the cross-built binutils binaries may link
to libraries from the host distro, if certain libraries are available.

The ideal solution should be updating libtool, as libtool-2.4.6 (in LFS)
has sysroot support.  However, updating libtool for binutils is not
trivial: it would require to rerun autoconf and binutils building system
sticks to autoconf-2.69.  Another issue is the sysroot support for
libtool has introduced a configure option "--with-sysroot", which
conflicts with an already existing option with the same name in
GCC and binutils building system (we are using the GCC/binutils version
of --with-sysroot in chapter 5).

GCC building system has --with-build-sysroot (we are using this for GCC
pass 2) for this issue.  Binutils copied GCC building system, but it
does not respect --with-build-sysroot.

So for now we just edit libtool code to prevent "-L/usr/lib" in
$LFS_TGT_gcc command line.  It should fix the issue about host libiberty
(reported in #lfs-support) as well, but it still need to be confirmed by
someone having such a host.

Tested with a jhalfs run on LFS.
2022-02-10 21:05:33 +08:00
Bruce Dubbs
9c4ff70edf Package updates.
Update to bc-5.2.2.
Update to linux-5.16.8.
Update to binutils-2.38. Requires adding zlib to Chapter 6.
2022-02-09 20:54:15 -06:00
Xi Ruoyao
bca4876ac5
Revert "binutils: use -j1 for make install"
This reverts commit 03a41fd0cd.

It's no longer needed after binutils-gdb commit "install dependencies for
ld -> bfd and libctf -> bfd" (755ba58e).
2022-02-04 17:55:05 +08:00
Xi Ruoyao
e0f124e741
chapter 6 ncurses: disable stripping (invoking host strip) 2021-12-18 01:32:45 +08:00
Pierre Labastie
747287d8ad gawk, chap 6: now config.guess is in build-aux 2021-11-02 14:22:30 +01:00
Pierre Labastie
2967da3223 Remove spaces at end o lines - chapter06 2021-09-07 22:41:43 +02:00
Bruce Dubbs
6851fc8b2f Spacing 2021-09-04 10:48:46 -05:00
Xi Ruoyao
8416b1f926
Revert coreutils library location change
libstdbuf.so is a LD_PRELOAD hook, instead of a library which would be
used at link time.  So let's keep the upstream default.
2021-07-28 18:48:09 +08:00
Bruce Dubbs
11d5dee3a4 Minor instruction changes and text updates.
Move coreutils library from /usr/libexec to /usr/lib in both
Chapter 6 and Chapter 8.

Text updates in chapter08/pkgmgt.xml and chapter09/locale.xml.

Restore deletion of hanging test in chapter08/util-linux.xml.

Text changes in stripping and make instruction compatible with jhalfs.
2021-07-27 14:11:38 -05:00
Bruce Dubbs
f3997370c5 Remove modifications to m4 that are no longer needed. 2021-07-15 12:30:07 -05:00
Xi Ruoyao
7ffe1b8169
add --localstatedir= for temp findutils
It's to prevent the creation of an empty /usr/var.
2021-05-18 12:55:25 +08:00
Douglas R. Reno
d7a942197e Merge Xi's changes into trunk
Update to meson-0.58.0
Update to systemd-248
Update to gcc-11.1.0
Update to linux-5.12.1
Update to iproute2-5.12.0
Update to Python-3.9.5
Make /bin, /sbin, and /lib symlinks to their counterparts in /usr.
Thanks again for a significant portion of this work goes to Xi, I only
really merged it and made a couple of modifications for my updates. To
LFS 11.x we go!
2021-05-11 23:24:11 -05:00
Xi Ruoyao
8d557ad89d file: secure the URL, add libseccomp as external dep, and move libmagic.so to /lib
/bin/more links to libmagic.so (found on gimli and rivendell with a script)



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12174 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-28 15:11:25 +00:00
Xi Ruoyao
03a41fd0cd binutils: use -j1 for make install
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12166 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-17 16:30:50 +00:00
Douglas R. Reno
a649b07603 chapter06/file: Remove extra space from the end of one of the configure lines, which causes configure to fail to run.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12127 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-02-04 21:32:58 +00:00
Bruce Dubbs
114a300eef Tweak some wording
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12126 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-02-04 17:32:53 +00:00
Xi Ruoyao
5d2fe08386 ch06/file: disable host libraries to prevent FTBFS
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12125 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-02-04 15:34:31 +00:00
Bruce Dubbs
468045948c Wording and format changes
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12117 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-02-03 04:43:41 +00:00
Xi Ruoyao
c0d2bd0919 ch06/binutils: remove duplicated command
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12113 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-02-03 01:34:19 +00:00
Pierre Labastie
df2e99e94d Really apply various fixes for building with glibc-2.33,
and change the order in chapter 8 so that everything is built against
chapter 8 glibc.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12112 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-02-02 21:35:59 +00:00
Pierre Labastie
428695cb4a Various fixes for building with glibc-2.33, and change the order in chapter 8
so that everything is built against chapter 8 glibc.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12111 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-02-02 21:15:23 +00:00
Bruce Dubbs
305ab2a4fa Update to bc-3.2.6.
Update to glibc-2.33. 
Minor change to mountfs boot script. 



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12109 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-02-02 16:15:16 +00:00
Xi Ruoyao
5ddb2ead5e remove ch6 zlib, and workaround binutils issue
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12108 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-02-02 07:42:17 +00:00
Bruce Dubbs
0f8a1b64f8 Update to vim-8.2.2433.
Update to iana-etc-20210115. 
Update to bc-3.2.5. 
Update to e2fsprogs-1.46.0. 
Update to autoconf-2.71. 
Update to tzdata-2021a. 
Update to perl-5.32.1. 
Update to libcap-2.47. 
Update to bison-3.7.5. 
Update to binutils-2.36. Requires building zlig in Chapter 6.
Update to linux-5.10.12. 



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12105 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-01-31 21:48:14 +00:00
Xi Ruoyao
34fe7e07cd decorate usernames with <systemitem>
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12071 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-12-26 15:51:54 +00:00
Xi Ruoyao
c0c616a439 fix some typos
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12029 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-08-19 15:31:33 +00:00
Bruce Dubbs
ba82c18266 Update to gettext-0.21.
Update to binutils-2.35. 
Update to gcc-10.2.0. 
Update to check-0.15.1. 
Update to bison-3.7.1. 
Update to util-linux 2.36.0. 
Update to libcap-2.42. 
Update to linux-5.7.12. 



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12007 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-08-04 20:14:32 +00:00
Pierre Labastie
fe039b5f78 Match ncurses chapter 6 to what is done in chapter 8, and add explanations
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11994 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-07-06 20:47:01 +00:00
Xi Ruoyao
9d06e694be add xreflabel gcc-pass2, to be consistent with gcc-pass1
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11967 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-20 12:39:28 +00:00
Xi Ruoyao
ee00c3b4b5 chapter06: file contents xref is missing
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11963 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-19 17:04:09 +00:00
Pierre Labastie
d394cf7f19 Add explanations for new configure switches in binutils pass 2
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11944 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-15 19:56:23 +00:00
Pierre Labastie
bf20baeb35 add --enable-64-bit-bfd to binutils pass 2 to prevent an abi mismatch when
reintalling binutils in chpater 8

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11943 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-15 19:32:24 +00:00
Bruce Dubbs
3d92d63bde Minor updates.
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11939 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-14 15:24:09 +00:00
Pierre Labastie
a0d9193fa6 Do not install .pc files for ncurses in chapter 6: they are not needed,
and it may generate errors if pkg-config is not installed on the host

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11937 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-14 12:58:30 +00:00
Pierre Labastie
77d2cd8d43 - fix some gcc->GCC
- remove commented text in glibc (chap 5), and fix a directory location

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11934 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-13 08:55:55 +00:00
Pierre Labastie
94ec149429 Add a switch to chapter 6 ncurses' configure so that it does not install
compressed manpages if the host distro has compressed manpages

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11932 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-13 06:13:02 +00:00
Thomas Trepl
fb386e05f1 Rename package entities to be independent of chapter numbering
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11921 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-11 12:55:28 +00:00
Bruce Dubbs
bc8cca581f Text updates to cross2 branch Chapter 6
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11917 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-10 20:44:16 +00:00
Thomas Trepl
67d1e797c3 Move stripping to chap-7
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11916 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-10 19:31:02 +00:00
Thomas Trepl
ccff95b561 Add a section about backup temptools
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11915 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-10 14:43:51 +00:00
Pierre Labastie
ce335792fe Add an introduction to chapter 6 and 7
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11910 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-09 13:35:39 +00:00
Bruce Dubbs
5061bc643a Move changingowner from Chapter 6 to Chapter 7
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11905 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-08 19:44:56 +00:00
Pierre Labastie
22422a8a13 Remove unneeded files in chapter 6, and fix href' in chapter 7
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11901 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-08 08:12:16 +00:00
Bruce Dubbs
fcc027677d Initial commit of alternative cross LFS
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11897 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-07 20:16:00 +00:00
Pierre Labastie
d53fefab5a Update to upstream r11895
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11896 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-04 06:51:00 +00:00
Pierre Labastie
aa990c980f Update to upstream r11887
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11889 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-01 14:38:33 +00:00