修订版 | cbdbaa528f5ab97fa372e3cf7708cd7e441fc33f (tree) |
---|---|
时间 | 2024-06-09 21:47:10 |
作者 | matsuand <30614168+matsuand@user...> |
Commiter | matsuand |
5gcc.sh
@@ -2,7 +2,7 @@ | ||
2 | 2 | |
3 | 3 | CHAP=5 |
4 | 4 | APPNAME=libstdc++ |
5 | -VER=13.2.0 | |
5 | +VER=14.1.0 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | 7 | TARGETBALL=gcc-$VER.tar.xz |
8 | 8 | TARGETDIR=gcc-$VER |
@@ -27,6 +27,7 @@ echo \ \ Configuring... | ||
27 | 27 | --build=$(sh support/config.guess) \ |
28 | 28 | --host=$LFS_TGT \ |
29 | 29 | --without-bash-malloc \ |
30 | + bash_cv_strtold_broken=no \ | |
30 | 31 | 1> $LOG/$CHAP.$TARGET.1_conf.log 2>&1 || exit 1 |
31 | 32 | |
32 | 33 | echo \ \ Making... |
@@ -3,7 +3,7 @@ | ||
3 | 3 | CHAP=6 |
4 | 4 | APPNAME=gcc |
5 | 5 | APPVER=.2 |
6 | -VER=13.2.0 | |
6 | +VER=14.1.0 | |
7 | 7 | TARGET=$APPNAME-$VER |
8 | 8 | TARGETBALL=$TARGET.tar.xz |
9 | 9 | TARGETDIR=$TARGET |
@@ -2,10 +2,10 @@ | ||
2 | 2 | |
3 | 3 | CHAP=6 |
4 | 4 | APPNAME=ncurses |
5 | -VER=6.4 | |
5 | +VER=6.5 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | -TARGETBALL=$APPNAME-$VER-20230520.tar.xz | |
8 | -TARGETDIR=$APPNAME-$VER-20230520 | |
7 | +TARGETBALL=$TARGET.tar.gz | |
8 | +TARGETDIR=$TARGET | |
9 | 9 | |
10 | 10 | . ./_lfsset.sh |
11 | 11 |
@@ -48,7 +48,6 @@ echo \ \ Configuring... | ||
48 | 48 | --without-debug \ |
49 | 49 | --without-ada \ |
50 | 50 | --disable-stripping \ |
51 | - --enable-widec \ | |
52 | 51 | 1> $LOG/$CHAP.$TARGET.1_conf.log 2>&1 || exit 1 |
53 | 52 | |
54 | 53 | echo \ \ Making... |
@@ -58,7 +57,8 @@ make \ | ||
58 | 57 | echo \ \ Installing... |
59 | 58 | make DESTDIR=$LFS TIC_PATH=$(pwd)/build/progs/tic install \ |
60 | 59 | 1> $LOG/$CHAP.$TARGET.3_install.log 2>&1 || exit 1 |
61 | -ln -sv libncursesw.so $LFS/usr/lib/libncurses.so | |
60 | +ln -sfv libncursesw.so $LFS/usr/lib/libncurses.so \ | |
61 | + 1>> $LOG/$CHAP.$TARGET.3_install.log 2>&1 || exit 1 | |
62 | 62 | sed -e 's/^#if.*XOPEN.*$/#if 1/' \ |
63 | 63 | -i $LFS/usr/include/curses.h |
64 | 64 |
@@ -5,8 +5,7 @@ TARGET=changingowner | ||
5 | 5 | |
6 | 6 | LFS=/mnt/lfs |
7 | 7 | |
8 | -chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} | |
8 | +chown --from lfs -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} | |
9 | 9 | case $(uname -m) in |
10 | - x86_64) chown -R root:root $LFS/lib64 ;; | |
10 | + x86_64) chown --from lfs -R root:root $LFS/lib64 ;; | |
11 | 11 | esac |
12 | - |
@@ -11,7 +11,7 @@ mkdir -pv $LFS/{dev,proc,sys,run} | ||
11 | 11 | |
12 | 12 | mount -v --bind /dev $LFS/dev |
13 | 13 | |
14 | -mount -v --bind /dev/pts $LFS/dev/pts | |
14 | +mount -vt devpts devpts -o gid=5,mode=0620 $LFS/dev/pts | |
15 | 15 | mount -vt proc proc $LFS/proc |
16 | 16 | mount -vt sysfs sysfs $LFS/sys |
17 | 17 | mount -vt tmpfs tmpfs $LFS/run |
@@ -2,7 +2,7 @@ | ||
2 | 2 | |
3 | 3 | CHAP=7 |
4 | 4 | APPNAME=libstdc++ |
5 | -VER=13.1.0 | |
5 | +VER=14.1.0 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | 7 | TARGETBALL=gcc-$VER.tar.xz |
8 | 8 | TARGETDIR=gcc-$VER |
@@ -2,7 +2,7 @@ | ||
2 | 2 | |
3 | 3 | CHAP=7 |
4 | 4 | APPNAME=python |
5 | -VER=3.12.2 | |
5 | +VER=3.12.3 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | 7 | TARGETBALL=Python-$VER.tar.xz |
8 | 8 | TARGETDIR=Python-$VER |
@@ -2,7 +2,7 @@ | ||
2 | 2 | |
3 | 3 | CHAP=7 |
4 | 4 | APPNAME=util-linux |
5 | -VER=2.40 | |
5 | +VER=2.40.1 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | 7 | TARGETBALL=$TARGET.tar.xz |
8 | 8 | TARGETDIR=$TARGET |
@@ -27,9 +27,10 @@ patch -Np1 -i $DLD/bash-$VER-upstream_fixes-1.patch \ | ||
27 | 27 | 1> $LOG/$CHAP.$TARGET.0_patch.log 2>&1 || exit 1 |
28 | 28 | |
29 | 29 | echo \ \ Configuring... |
30 | -./configure --prefix=/usr \ | |
31 | - --without-bash-malloc \ | |
32 | - --with-installed-readline \ | |
30 | +./configure --prefix=/usr \ | |
31 | + --without-bash-malloc \ | |
32 | + --with-installed-readline \ | |
33 | + bash_cv_strtold_broken=no \ | |
33 | 34 | --docdir=/usr/share/doc/bash-$VER \ |
34 | 35 | 1> $LOG/$CHAP.$TARGET.1_conf.log 2>&1 || exit 1 |
35 | 36 |
@@ -22,10 +22,15 @@ TimeStart | ||
22 | 22 | |
23 | 23 | cd $TARGETDIR |
24 | 24 | |
25 | +echo \ \ Patching... | |
26 | +patch -Np1 -i $DLD/expect-$VER-gcc14-1.patch \ | |
27 | + 1> $LOG/$CHAP.$TARGET.0_patch.log 2>&1 || exit 1 | |
28 | + | |
25 | 29 | echo \ \ Configuring... |
26 | 30 | ./configure --prefix=/usr \ |
27 | 31 | --with-tcl=/usr/lib \ |
28 | 32 | --enable-shared \ |
33 | + --disable-rpath \ | |
29 | 34 | --mandir=/usr/share/man \ |
30 | 35 | --with-tclinclude=/usr/include \ |
31 | 36 | 1> $LOG/$CHAP.$TARGET.1_conf.log 2>&1 || exit 1 |
@@ -2,7 +2,7 @@ | ||
2 | 2 | |
3 | 3 | CHAP=8 |
4 | 4 | APPNAME=gcc |
5 | -VER=13.2.0 | |
5 | +VER=14.1.0 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | 7 | TARGETBALL=$TARGET.tar.xz |
8 | 8 | TARGETDIR=$TARGET |
@@ -38,6 +38,7 @@ echo \ \ Configuring... | ||
38 | 38 | --enable-languages=c,c++ \ |
39 | 39 | --enable-default-pie \ |
40 | 40 | --enable-default-ssp \ |
41 | + --enable-host-pie \ | |
41 | 42 | --disable-multilib \ |
42 | 43 | --disable-bootstrap \ |
43 | 44 | --disable-fixincludes \ |
@@ -27,8 +27,8 @@ cd $TARGETDIR | ||
27 | 27 | echo \ \ Patching... |
28 | 28 | patch -Np1 -i $DLD/glibc-$VER-fhs-1.patch \ |
29 | 29 | 1> $LOG/$CHAP.$TARGET.0_patch.log 2>&1 || exit 1 |
30 | -#patch -Np1 -i $DLD/glibc-$VER-upstream_fixes-4.patch \ | |
31 | -# 1>> $LOG/$CHAP.$TARGET.0_patch.log 2>&1 || exit 1 | |
30 | +patch -Np1 -i $DLD/glibc-$VER-upstream_fix-2.patch \ | |
31 | + 1>> $LOG/$CHAP.$TARGET.0_patch.log 2>&1 || exit 1 | |
32 | 32 | |
33 | 33 | mkdir build |
34 | 34 | cd build |
@@ -2,7 +2,7 @@ | ||
2 | 2 | |
3 | 3 | CHAP=8 |
4 | 4 | APPNAME=iana-etc |
5 | -VER=20240318 | |
5 | +VER=20240502 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | 7 | TARGETBALL=$TARGET.tar.gz |
8 | 8 | TARGETDIR=$TARGET |
@@ -22,6 +22,8 @@ TimeStart | ||
22 | 22 | |
23 | 23 | cd $TARGETDIR |
24 | 24 | |
25 | +sed -i 's/def HAVE_TERMCAP_TGETENT/ 1/' telnet/telnet.c | |
26 | + | |
25 | 27 | echo \ \ Configuring... |
26 | 28 | ./configure --prefix=/usr \ |
27 | 29 | --bindir=/usr/bin \ |
@@ -1,8 +1,8 @@ | ||
1 | 1 | #!/bin/sh |
2 | 2 | |
3 | 3 | CHAP=8 |
4 | -APPNAME=Jinja2 | |
5 | -VER=3.1.3 | |
4 | +APPNAME=jinja2 | |
5 | +VER=3.1.4 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | 7 | TARGETBALL=$TARGET.tar.gz |
8 | 8 | TARGETDIR=$TARGET |
@@ -2,7 +2,7 @@ | ||
2 | 2 | |
3 | 3 | CHAP=8 |
4 | 4 | APPNAME=man-db |
5 | -VER=2.12.0 | |
5 | +VER=2.12.1 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | 7 | TARGETBALL=$TARGET.tar.xz |
8 | 8 | TARGETDIR=$TARGET |
@@ -2,10 +2,10 @@ | ||
2 | 2 | |
3 | 3 | CHAP=8 |
4 | 4 | APPNAME=ncurses |
5 | -VER=6.4 | |
5 | +VER=6.5 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | -TARGETBALL=$APPNAME-$VER-20230520.tar.xz | |
8 | -TARGETDIR=$APPNAME-$VER-20230520 | |
7 | +TARGETBALL=$TARGET.tar.gz | |
8 | +TARGETDIR=$TARGET | |
9 | 9 | |
10 | 10 | echo $TARGET |
11 | 11 |
@@ -30,7 +30,6 @@ echo \ \ Configuring... | ||
30 | 30 | --without-normal \ |
31 | 31 | --with-cxx-shared \ |
32 | 32 | --enable-pc-files \ |
33 | - --enable-widec \ | |
34 | 33 | --with-pkg-config-libdir=/usr/lib/pkgconfig \ |
35 | 34 | 1> $LOG/$CHAP.$TARGET.1_conf.log 2>&1 || exit 1 |
36 | 35 |
@@ -41,13 +40,13 @@ make \ | ||
41 | 40 | echo \ \ Installing... |
42 | 41 | make DESTDIR=$PWD/dest install \ |
43 | 42 | 1> $LOG/$CHAP.$TARGET.3_install.log 2>&1 || exit 1 |
44 | -porg -lp+ $TARGET -E`pwd` "\ | |
45 | -install -vm755 dest/usr/lib/libncursesw.so.6.4 /usr/lib" \ | |
43 | +porg -lp+ $TARGET -E$PWD "\ | |
44 | +install -vm755 dest/usr/lib/libncursesw.so.6.5 /usr/lib" \ | |
46 | 45 | 1>> $LOG/$CHAP.$TARGET.3_install.log 2>&1 || exit 1 |
47 | -rm -v dest/usr/lib/libncursesw.so.6.4 | |
46 | +rm -v dest/usr/lib/libncursesw.so.6.5 | |
48 | 47 | sed -e 's/^#if.*XOPEN.*$/#if 1/' \ |
49 | 48 | -i dest/usr/include/curses.h |
50 | -porg -lp+ $TARGET -E`pwd` "\ | |
49 | +porg -lp+ $TARGET -E$PWD "\ | |
51 | 50 | cp -av dest/* /" \ |
52 | 51 | 1>> $LOG/$CHAP.$TARGET.3_install.log 2>&1 || exit 1 |
53 | 52 |
@@ -2,7 +2,7 @@ | ||
2 | 2 | |
3 | 3 | CHAP=8 |
4 | 4 | APPNAME=ninja |
5 | -VER=1.11.1 | |
5 | +VER=1.12.0 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | 7 | TARGETBALL=$TARGET.tar.gz |
8 | 8 | TARGETDIR=$TARGET |
@@ -2,7 +2,7 @@ | ||
2 | 2 | |
3 | 3 | CHAP=8 |
4 | 4 | APPNAME=openssl |
5 | -VER=3.2.1 | |
5 | +VER=3.3.0 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | 7 | TARGETBALL=$APPNAME-$VER.tar.gz |
8 | 8 | TARGETDIR=$APPNAME-$VER |
@@ -2,7 +2,7 @@ | ||
2 | 2 | |
3 | 3 | CHAP=8 |
4 | 4 | APPNAME=python |
5 | -VER=3.12.2 | |
5 | +VER=3.12.3 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | 7 | TARGETBALL=Python-$VER.tar.xz |
8 | 8 | TARGETDIR=Python-$VER |
@@ -25,6 +25,8 @@ cd $TARGETDIR | ||
25 | 25 | sed -i '/MV.*old/d' Makefile.in |
26 | 26 | sed -i '/{OLDSUFF}/c:' support/shlib-install |
27 | 27 | |
28 | +sed -i 's/-Wl,-rpath,[^ ]*//' support/shobj-conf | |
29 | + | |
28 | 30 | echo \ \ Patching... |
29 | 31 | patch -Np1 -i $DLD/readline-$VER-upstream_fixes-3.patch \ |
30 | 32 | 1> $LOG/$CHAP.$TARGET.0_patch.log 2>&1 || exit 1 |
@@ -2,7 +2,7 @@ | ||
2 | 2 | |
3 | 3 | CHAP=8 |
4 | 4 | APPNAME=setuptools |
5 | -VER=69.2.0 | |
5 | +VER=69.5.1 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | 7 | TARGETBALL=$TARGET.tar.gz |
8 | 8 | TARGETDIR=$TARGET |
@@ -27,7 +27,7 @@ online_usrbin="bash find strip" | ||
27 | 27 | online_usrlib="libbfd-2.42.so |
28 | 28 | libsframe.so.1.0.0 |
29 | 29 | libhistory.so.8.2 |
30 | - libncursesw.so.6.4-20230520 | |
30 | + libncursesw.so.6.5 | |
31 | 31 | libm.so.6 |
32 | 32 | libreadline.so.8.2 |
33 | 33 | libz.so.1.3.1 |
@@ -26,6 +26,16 @@ cd $TARGETDIR | ||
26 | 26 | sed -i -e 's/GROUP="render"/GROUP="video"/' \ |
27 | 27 | -e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in |
28 | 28 | |
29 | +sed -i '/DEVMEM_MAGIC 0/{n;n;a \ | |
30 | +/* cb12fd8e0dabb9a1c8aef55a6a41e2c255fcdf4b (6.8) */ \ | |
31 | +#ifndef PID_FS_MAGIC \ | |
32 | +#define PID_FS_MAGIC 0x50494446 \ | |
33 | +#endif | |
34 | +}' src/basic/missing_magic.h | |
35 | + | |
36 | +sed -i '/OVERLAYFS_SUPER_MAGIC/a \ | |
37 | +pidfs, {PID_FS_MAGIC}' src/basic/filesystems-gperf.gperf | |
38 | + | |
29 | 39 | mkdir -p build |
30 | 40 | cd build |
31 | 41 |
@@ -30,6 +30,7 @@ SRCDIR=$(pwd) | ||
30 | 30 | cd unix |
31 | 31 | ./configure --prefix=/usr \ |
32 | 32 | --mandir=/usr/share/man \ |
33 | + --disable-rpath \ | |
33 | 34 | 1> $LOG/$CHAP.$TARGET.1_conf.log 2>&1 || exit 1 |
34 | 35 | |
35 | 36 | echo \ \ Making... |
@@ -2,7 +2,7 @@ | ||
2 | 2 | |
3 | 3 | CHAP=8 |
4 | 4 | APPNAME=util-linux |
5 | -VER=2.40 | |
5 | +VER=2.40.1 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | 7 | TARGETBALL=$TARGET.tar.xz |
8 | 8 | TARGETDIR=$TARGET |
@@ -23,7 +23,8 @@ TimeStart | ||
23 | 23 | cd $TARGETDIR |
24 | 24 | |
25 | 25 | echo \ \ Configuring... |
26 | -./configure --libdir=/usr/lib \ | |
26 | +./configure --bindir=/usr/bin \ | |
27 | + --libdir=/usr/lib \ | |
27 | 28 | --runstatedir=/run \ |
28 | 29 | --disable-chfn-chsh \ |
29 | 30 | --disable-login \ |
@@ -32,8 +33,8 @@ echo \ \ Configuring... | ||
32 | 33 | --disable-setpriv \ |
33 | 34 | --disable-runuser \ |
34 | 35 | --disable-pylibmount \ |
35 | - --disable-static \ | |
36 | 36 | --disable-liblastlog2 \ |
37 | + --disable-static \ | |
37 | 38 | --without-python \ |
38 | 39 | ADJTIME_PATH=/var/lib/hwclock/adjtime \ |
39 | 40 | --docdir=/usr/share/doc/util-linux-$VER \ |
@@ -2,7 +2,7 @@ | ||
2 | 2 | |
3 | 3 | CHAP=8 |
4 | 4 | APPNAME=vim |
5 | -VER=9.1.0161 | |
5 | +VER=9.1.0405 | |
6 | 6 | TARGET=$APPNAME-$VER |
7 | 7 | TARGETBALL=$TARGET.tar.gz |
8 | 8 | TARGETDIR=$TARGET |