mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-02-02 23:07:18 +08:00
utilities through bash
This commit is contained in:
parent
ea8ece5b64
commit
8014c82368
42
CH05.05-libstdc++.sh
Normal file
42
CH05.05-libstdc++.sh
Normal file
@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="${LFS}/sources"
|
||||
|
||||
if [ "`whoami`" != "lfs" ]; then
|
||||
myfail "Must run this script as lfs user"
|
||||
fi
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d gcc-${gcc_version} ] && rm -rf gcc-${gcc_version}
|
||||
|
||||
tar -Jxf ${gcc_tarball}
|
||||
|
||||
cd gcc-${gcc_version}
|
||||
|
||||
mkdir build && cd build
|
||||
|
||||
../libstdc++-v3/configure \
|
||||
--host=${LFS_TGT} \
|
||||
--build=$(../config.guess) \
|
||||
--prefix=/usr \
|
||||
--disable-multilib \
|
||||
--disable-nls \
|
||||
--disable-libstdcxx-pch \
|
||||
--with-gxx-include-dir=/tools/${LFS_TGT}/include/c++/${gcc_version}
|
||||
|
||||
make
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building libstdc++"
|
||||
fi
|
||||
|
||||
make DESTDIR=${LFS} install
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing libstdc++"
|
||||
fi
|
||||
|
||||
|
33
CH06.01-m4.sh
Normal file
33
CH06.01-m4.sh
Normal file
@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="${LFS}/sources"
|
||||
|
||||
if [ "`whoami`" != "lfs" ]; then
|
||||
myfail "Must run this script as lfs user"
|
||||
fi
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
tar -Jxf ${m4_tarball}
|
||||
|
||||
cd m4-${m4_version}
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--host=${LFS_TGT} \
|
||||
--build=$(build-aux/config.guess)
|
||||
|
||||
make
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building libstdc++"
|
||||
fi
|
||||
|
||||
make DESTDIR=${LFS} install
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing libstdc++"
|
||||
fi
|
||||
|
||||
|
55
CH06.02-ncurses.sh
Normal file
55
CH06.02-ncurses.sh
Normal file
@ -0,0 +1,55 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="${LFS}/sources"
|
||||
|
||||
if [ "`whoami`" != "lfs" ]; then
|
||||
myfail "Must run this script as lfs user"
|
||||
fi
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
tar -zxf ${ncurses_tarball}
|
||||
|
||||
cd ncurses-${ncurses_version}
|
||||
|
||||
sed -i s/mawk// configure
|
||||
|
||||
mkdir build
|
||||
pushd build
|
||||
../configure
|
||||
make -C include
|
||||
make -C progs tic
|
||||
popd
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--host=${LFS_TGT} \
|
||||
--build=$(./config.guess) \
|
||||
--mandir=/usr/share/man \
|
||||
--with-manpage-format=normal \
|
||||
--with-shared \
|
||||
--without-normal \
|
||||
--with-cxx-shared \
|
||||
--without-debug \
|
||||
--without-ada \
|
||||
--disable-stripping
|
||||
|
||||
|
||||
make
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building ncurses"
|
||||
fi
|
||||
|
||||
make DESTDIR=${LFS} TIC_PATH=$(pwd)/build/progs/tic install
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing ncurses"
|
||||
fi
|
||||
|
||||
ln -sv libncursesw.so ${LFS}/usr/lib/libncurses.so
|
||||
sed -e 's/^#if.*XOPEN.*$/#if 1/' \
|
||||
-i ${LFS}/usr/include/curses.h
|
||||
|
||||
|
37
CH06.03-bash.sh
Normal file
37
CH06.03-bash.sh
Normal file
@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="${LFS}/sources"
|
||||
|
||||
if [ "`whoami`" != "lfs" ]; then
|
||||
myfail "Must run this script as lfs user"
|
||||
fi
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
tar -zxf ${bash_tarball}
|
||||
|
||||
cd bash-${bash_version}
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--build=$(sh support/config.guess) \
|
||||
--host=${LFS_TGT} \
|
||||
--without-bash-malloc \
|
||||
bash_cv_strtold_broken=no
|
||||
|
||||
make
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building bash"
|
||||
fi
|
||||
|
||||
make DESTDIR=${LFS} install
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing bash"
|
||||
fi
|
||||
|
||||
ln -s bash ${LFS}/bin/sh
|
||||
|
||||
|
10
versions.sh
10
versions.sh
@ -21,9 +21,10 @@ automake_dnl="https://ftp.gnu.org/gnu/automake/automake-1.17.tar.xz"
|
||||
automake_sha256="8920c1fc411e13b90bf704ef9db6f29d540e76d232cb3b2c9f4dc4cc599bd990"
|
||||
automake_tarball="automake-1.17.tar.xz"
|
||||
|
||||
bash_dnl="https://ftp.gnu.org/gnu/bash/bash-5.2.32.tar.gz"
|
||||
bash_version="5.2.32"
|
||||
bash_dnl="https://ftp.gnu.org/gnu/bash/bash-${bash_version}.tar.gz"
|
||||
bash_sha256="d3ef80d2b67d8cbbe4d3265c63a72c46f9b278ead6e0e06d61801b58f23f50b5"
|
||||
bash_tarball="bash-5.2.32.tar.gz"
|
||||
bash_tarball="bash-${bash_version}.tar.gz"
|
||||
|
||||
bc_dnl="https://github.com/gavinhoward/bc/releases/download/6.7.6/bc-6.7.6.tar.xz"
|
||||
bc_sha256="828f390c2a552cadbc8c8ad5fde6eeaee398dc8d59d706559158330f3629ce35"
|
||||
@ -222,9 +223,10 @@ lz4_dnl="https://github.com/lz4/lz4/releases/download/v1.10.0/lz4-1.10.0.tar.gz"
|
||||
lz4_sha256="537512904744b35e232912055ccf8ec66d768639ff3abe5788d90d792ec5f48b"
|
||||
lz4_tarball="lz4-1.10.0.tar.gz"
|
||||
|
||||
m4_dnl="https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.xz"
|
||||
m4_version="1.4.19"
|
||||
m4_dnl="https://ftp.gnu.org/gnu/m4/m4-${m4_version}.tar.xz"
|
||||
m4_sha256="63aede5c6d33b6d9b13511cd0be2cac046f2e70fd0a07aa9573a04a82783af96"
|
||||
m4_tarball="m4-1.4.19.tar.xz"
|
||||
m4_tarball="m4-${m4_version}.tar.xz"
|
||||
|
||||
make_dnl="https://ftp.gnu.org/gnu/make/make-4.4.1.tar.gz"
|
||||
make_sha256="dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3"
|
||||
|
Loading…
Reference in New Issue
Block a user