update toolchain to 9.1
This commit is contained in:
parent
1230b52fe1
commit
563df4ba5f
146
tools.sh
146
tools.sh
@ -123,8 +123,8 @@ function clean-build-directory {
|
|||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# Package functions
|
# Package functions
|
||||||
function Binutils-Pass-1 {
|
function Binutils-Pass-1 {
|
||||||
# 5.4. Binutils-2.32 - Pass 1
|
# Binutils-2.34 - Pass 1
|
||||||
local pkg=binutils-2.32.tar.xz
|
local pkg=binutils-2.34.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -158,8 +158,8 @@ function Binutils-Pass-1 {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function GCC-Pass-1 {
|
function GCC-Pass-1 {
|
||||||
# 5.5. GCC-8.2.0 - Pass 1
|
# GCC-9.2.0 - Pass 1
|
||||||
local pkg=gcc-8.2.0.tar.xz
|
local pkg=gcc-9.2.0.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -184,10 +184,10 @@ function GCC-Pass-1 {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
unpack mpfr-4.0.2.tar.xz
|
unpack mpfr-4.0.2.tar.xz
|
||||||
unpack gmp-6.1.2.tar.xz
|
unpack gmp-6.2.0.tar.xz
|
||||||
unpack mpc-1.1.0.tar.gz
|
unpack mpc-1.1.0.tar.gz
|
||||||
mv -v mpfr-4.0.2 mpfr >> ${logfile} 2>&1
|
mv -v mpfr-4.0.2 mpfr >> ${logfile} 2>&1
|
||||||
mv -v gmp-6.1.2 gmp >> ${logfile} 2>&1
|
mv -v gmp-6.2.0 gmp >> ${logfile} 2>&1
|
||||||
mv -v mpc-1.1.0 mpc >> ${logfile} 2>&1
|
mv -v mpc-1.1.0 mpc >> ${logfile} 2>&1
|
||||||
mkdir build
|
mkdir build
|
||||||
pushd build >> /dev/null 2>&1
|
pushd build >> /dev/null 2>&1
|
||||||
@ -208,7 +208,6 @@ function GCC-Pass-1 {
|
|||||||
--disable-threads \
|
--disable-threads \
|
||||||
--disable-libatomic \
|
--disable-libatomic \
|
||||||
--disable-libgomp \
|
--disable-libgomp \
|
||||||
--disable-libmpx \
|
|
||||||
--disable-libquadmath \
|
--disable-libquadmath \
|
||||||
--disable-libssp \
|
--disable-libssp \
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
@ -229,8 +228,8 @@ function GCC-Pass-1 {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Linux-API-Headers {
|
function Linux-API-Headers {
|
||||||
# Linux-4.20.7 API Headers
|
# Linux-5.5.3 API Headers
|
||||||
local pkg=linux-4.20.12.tar.xz
|
local pkg=linux-5.5.3.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -242,8 +241,8 @@ function Linux-API-Headers {
|
|||||||
make mrproper >> ${logfile} 2>&1
|
make mrproper >> ${logfile} 2>&1
|
||||||
msg_success
|
msg_success
|
||||||
msg_line " Install: "
|
msg_line " Install: "
|
||||||
make INSTALL_HDR_PATH=dest headers_install >> ${logfile} 2>&1
|
make headers >> ${logfile} 2>&1
|
||||||
cp -rv dest/include/* /tools/include >> ${logfile} 2>&1
|
cp -rv usr/include/* /tools/include >> ${logfile} 2>&1
|
||||||
msg_success
|
msg_success
|
||||||
popd > /dev/null 2>&1
|
popd > /dev/null 2>&1
|
||||||
popd > /dev/null 2>&1
|
popd > /dev/null 2>&1
|
||||||
@ -252,8 +251,8 @@ function Linux-API-Headers {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Glibc {
|
function Glibc {
|
||||||
# Glibc-2.29
|
# Glibc-2.31
|
||||||
local pkg=glibc-2.29.tar.xz
|
local pkg=glibc-2.31.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -292,8 +291,8 @@ function Glibc {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Libstdc {
|
function Libstdc {
|
||||||
# Libstdc++ from GCC-8.2.0
|
# Libstdc++ from GCC-9.2.0
|
||||||
local pkg=gcc-8.2.0.tar.xz
|
local pkg=gcc-9.2.0.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -311,7 +310,7 @@ function Libstdc {
|
|||||||
--disable-nls \
|
--disable-nls \
|
||||||
--disable-libstdcxx-threads \
|
--disable-libstdcxx-threads \
|
||||||
--disable-libstdcxx-pch \
|
--disable-libstdcxx-pch \
|
||||||
--with-gxx-include-dir=/tools/${LFS_TGT}/include/c++/8.2.0 >> ${logfile} 2>&1
|
--with-gxx-include-dir=/tools/${LFS_TGT}/include/c++/9.2.0 >> ${logfile} 2>&1
|
||||||
msg_success
|
msg_success
|
||||||
msg_line " Make: "
|
msg_line " Make: "
|
||||||
make ${MKFLAGS} >> ${logfile} 2>&1
|
make ${MKFLAGS} >> ${logfile} 2>&1
|
||||||
@ -327,8 +326,8 @@ function Libstdc {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Binutils-Pass-2 {
|
function Binutils-Pass-2 {
|
||||||
# Binutils-2.32 - Pass 2
|
# Binutils-2.34 - Pass 2
|
||||||
local pkg=binutils-2.32.tar.xz
|
local pkg=binutils-2.34.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -368,8 +367,8 @@ function Binutils-Pass-2 {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function GCC-Pass-2 {
|
function GCC-Pass-2 {
|
||||||
# GCC-8.2.0 - Pass 2
|
# GCC-9.2.0 - Pass 2
|
||||||
local pkg=gcc-8.2.0.tar.xz
|
local pkg=gcc-9.2.0.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -395,11 +394,12 @@ function GCC-Pass-2 {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
unpack mpfr-4.0.2.tar.xz
|
unpack mpfr-4.0.2.tar.xz
|
||||||
unpack gmp-6.1.2.tar.xz
|
unpack gmp-6.2.0.tar.xz
|
||||||
unpack mpc-1.1.0.tar.gz
|
unpack mpc-1.1.0.tar.gz
|
||||||
mv -v mpfr-4.0.2 mpfr >> ${logfile} 2>&1
|
mv -v mpfr-4.0.2 mpfr >> ${logfile} 2>&1
|
||||||
mv -v gmp-6.1.2 gmp >> ${logfile} 2>&1
|
mv -v gmp-6.2.0 gmp >> ${logfile} 2>&1
|
||||||
mv -v mpc-1.1.0 mpc >> ${logfile} 2>&1
|
mv -v mpc-1.1.0 mpc >> ${logfile} 2>&1
|
||||||
|
sed -e '1161 s|^|//|' -i libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
|
||||||
mkdir build
|
mkdir build
|
||||||
pushd build >> /dev/null 2>&1
|
pushd build >> /dev/null 2>&1
|
||||||
msg_line " Configure: "
|
msg_line " Configure: "
|
||||||
@ -439,8 +439,8 @@ function GCC-Pass-2 {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Tcl {
|
function Tcl {
|
||||||
# Tcl-8.6.9
|
# Tcl-8.6.10
|
||||||
local pkg=tcl8.6.9-src.tar.gz
|
local pkg=tcl8.6.10-src.tar.gz
|
||||||
local pkg_dir=${pkg%%-src*}
|
local pkg_dir=${pkg%%-src*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -549,8 +549,8 @@ function M4 {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Ncurses {
|
function Ncurses {
|
||||||
# Ncurses-6.1
|
# Ncurses-6.2
|
||||||
local pkg=ncurses-6.1.tar.gz
|
local pkg=ncurses-6.2.tar.gz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -608,8 +608,8 @@ function Bash {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Bison {
|
function Bison {
|
||||||
# Bison-3.3.2
|
# Bison-3.5.2
|
||||||
local pkg=bison-3.3.2.tar.xz
|
local pkg=bison-3.5.2.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -633,8 +633,8 @@ function Bison {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Bzip {
|
function Bzip {
|
||||||
# Bzip2-1.0.6
|
# Bzip2-1.0.8
|
||||||
local pkg=bzip2-1.0.6.tar.gz
|
local pkg=bzip2-1.0.8.tar.gz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
local OPTFLAGS=" -march=x86-64 -mtune=generic -O2 -pipe -fPIC "
|
local OPTFLAGS=" -march=x86-64 -mtune=generic -O2 -pipe -fPIC "
|
||||||
@ -644,14 +644,17 @@ function Bzip {
|
|||||||
unpack "${pkg}"
|
unpack "${pkg}"
|
||||||
pushd ${pkg_dir} >> /dev/null 2>&1
|
pushd ${pkg_dir} >> /dev/null 2>&1
|
||||||
msg_line " Configure: "
|
msg_line " Configure: "
|
||||||
sed -i "s|-O2|${OPTFLAGS}|g" Makefile
|
make ${MKFLAGS} -f Makefile-libbz2_so >> ${logfile} 2>&1
|
||||||
sed -i "s|-O2|${OPTFLAGS}|g" Makefile-libbz2_so
|
make ${MKFLAGS} clean >> ${logfile} 2>&1
|
||||||
msg_success
|
msg_success
|
||||||
msg_line " Make: "
|
msg_line " Make: "
|
||||||
make ${MKFLAGS} >> ${logfile} 2>&1
|
make ${MKFLAGS} >> ${logfile} 2>&1
|
||||||
msg_success
|
msg_success
|
||||||
msg_line " Install: "
|
msg_line " Install: "
|
||||||
make PREFIX=/tools install >> ${logfile} 2>&1
|
make PREFIX=/tools install >> ${logfile} 2>&1
|
||||||
|
cp -v bzip2-shared /tools/bin/bzip2 >> ${logfile} 2>&1
|
||||||
|
cp -av libbz2.so* /tools/lib >> ${logfile} 2>&1
|
||||||
|
ln -sv libbz2.so.1.0 /tools/lib/libbz2.so >> ${logfile} 2>&1
|
||||||
msg_success
|
msg_success
|
||||||
popd > /dev/null 2>&1
|
popd > /dev/null 2>&1
|
||||||
popd > /dev/null 2>&1
|
popd > /dev/null 2>&1
|
||||||
@ -660,8 +663,8 @@ function Bzip {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Coreutils {
|
function Coreutils {
|
||||||
# Coreutils-8.30
|
# Coreutils-8.31
|
||||||
local pkg=coreutils-8.30.tar.xz
|
local pkg=coreutils-8.31.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -710,8 +713,8 @@ function Diffutils {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function File {
|
function File {
|
||||||
# File-5.35
|
# File-5.38
|
||||||
local pkg=file-5.36.tar.gz
|
local pkg=file-5.38.tar.gz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -735,8 +738,8 @@ function File {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Findutils {
|
function Findutils {
|
||||||
# Findutils-4.6.0
|
# Findutils-4.7.0
|
||||||
local pkg=findutils-4.6.0.tar.gz
|
local pkg=findutils-4.7.0.tar.gz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -744,9 +747,6 @@ function Findutils {
|
|||||||
pushd ${TOPDIR}/BUILD >> /dev/null 2>&1
|
pushd ${TOPDIR}/BUILD >> /dev/null 2>&1
|
||||||
unpack "${pkg}"
|
unpack "${pkg}"
|
||||||
pushd ${pkg_dir} >> /dev/null 2>&1
|
pushd ${pkg_dir} >> /dev/null 2>&1
|
||||||
sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' gl/lib/*.c
|
|
||||||
sed -i '/unistd/a #include <sys/sysmacros.h>' gl/lib/mountlist.c
|
|
||||||
echo "#define _IO_IN_BACKUP 0x100" >> gl/lib/stdio-impl.h
|
|
||||||
msg_line " Configure: "
|
msg_line " Configure: "
|
||||||
./configure --prefix=/tools >> ${logfile} 2>&1
|
./configure --prefix=/tools >> ${logfile} 2>&1
|
||||||
msg_success
|
msg_success
|
||||||
@ -763,8 +763,8 @@ function Findutils {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Gawk {
|
function Gawk {
|
||||||
# Gawk-4.2.1
|
# Gawk-5.0.1
|
||||||
local pkg=gawk-4.2.1.tar.xz
|
local pkg=gawk-5.0.1.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -788,8 +788,8 @@ function Gawk {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Gettext {
|
function Gettext {
|
||||||
# Gettext-0.19.8.1
|
# Gettext-0.20.1
|
||||||
local pkg=gettext-0.19.8.1.tar.xz
|
local pkg=gettext-0.20.1.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -799,17 +799,13 @@ function Gettext {
|
|||||||
pushd ${pkg_dir} >> /dev/null 2>&1
|
pushd ${pkg_dir} >> /dev/null 2>&1
|
||||||
cd gettext-tools > /dev/null 2>&1
|
cd gettext-tools > /dev/null 2>&1
|
||||||
msg_line " Configure: "
|
msg_line " Configure: "
|
||||||
EMACS="no" ./configure --prefix=/tools --disable-shared >> ${logfile} 2>&1
|
./configure --disable-shared >> ${logfile} 2>&1
|
||||||
msg_success
|
msg_success
|
||||||
msg_line " Make: "
|
msg_line " Make: "
|
||||||
make ${MKFLAGS} -C gnulib-lib >> ${logfile} 2>&1
|
make ${MKFLAGS} >> ${logfile} 2>&1
|
||||||
make ${MKFLAGS} -C intl pluralx.c >> ${logfile} 2>&1
|
|
||||||
make ${MKFLAGS} -C src msgfmt >> ${logfile} 2>&1
|
|
||||||
make ${MKFLAGS} -C src msgmerge >> ${logfile} 2>&1
|
|
||||||
make ${MKFLAGS} -C src xgettext >> ${logfile} 2>&1
|
|
||||||
msg_success
|
msg_success
|
||||||
msg_line " Install: "
|
msg_line " Install: "
|
||||||
cp -v src/{msgfmt,msgmerge,xgettext} /tools/bin >> ${logfile} 2>&1
|
cp -v gettext-tools/src/{msgfmt,msgmerge,xgettext} /tools/bin >> ${logfile} 2>&1
|
||||||
msg_success
|
msg_success
|
||||||
cd - > /dev/null 2>&1
|
cd - > /dev/null 2>&1
|
||||||
popd > /dev/null 2>&1
|
popd > /dev/null 2>&1
|
||||||
@ -819,8 +815,8 @@ function Gettext {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Grep {
|
function Grep {
|
||||||
# Grep-3.3
|
# Grep-3.4
|
||||||
local pkg=grep-3.3.tar.xz
|
local pkg=grep-3.4.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -869,8 +865,8 @@ function Gzip {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Make {
|
function Make {
|
||||||
# Make-4.2.1
|
# Make-4.3
|
||||||
local pkg=make-4.2.1.tar.bz2
|
local pkg=make-4.3.tar.bz2
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -879,7 +875,6 @@ function Make {
|
|||||||
unpack "${pkg}"
|
unpack "${pkg}"
|
||||||
pushd ${pkg_dir} >> /dev/null 2>&1
|
pushd ${pkg_dir} >> /dev/null 2>&1
|
||||||
msg_line " Configure: "
|
msg_line " Configure: "
|
||||||
sed -i '211,217 d; 219,229 d; 232 d' glob/glob.c
|
|
||||||
./configure --prefix=/tools --without-guile >> ${logfile} 2>&1
|
./configure --prefix=/tools --without-guile >> ${logfile} 2>&1
|
||||||
msg_success
|
msg_success
|
||||||
msg_line " Make: "
|
msg_line " Make: "
|
||||||
@ -920,9 +915,8 @@ function Patch {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Perl {
|
function Perl {
|
||||||
# Perl-5.28.1
|
# Perl-5.30.1
|
||||||
local pkg=perl-5.28.1.tar.xz
|
local pkg=perl-5.30.1.tar.xz
|
||||||
# local pkg=perl-5.26.1.tar.xz
|
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -934,13 +928,12 @@ function Perl {
|
|||||||
sh Configure -des -Dprefix=/tools -Dlibs=-lm -Uloclibpth -Ulocincpth >> ${logfile} 2>&1
|
sh Configure -des -Dprefix=/tools -Dlibs=-lm -Uloclibpth -Ulocincpth >> ${logfile} 2>&1
|
||||||
msg_success
|
msg_success
|
||||||
msg_line " Make: "
|
msg_line " Make: "
|
||||||
# ulimit -s unlimited
|
|
||||||
make ${MKFLAGS} >> ${logfile} 2>&1
|
make ${MKFLAGS} >> ${logfile} 2>&1
|
||||||
msg_success
|
msg_success
|
||||||
msg_line " Install: "
|
msg_line " Install: "
|
||||||
cp -v perl cpan/podlators/scripts/pod2man /tools/bin >> ${logfile} 2>&1
|
cp -v perl cpan/podlators/scripts/pod2man /tools/bin >> ${logfile} 2>&1
|
||||||
mkdir -pv /tools/lib/perl5/5.28.1 >> ${logfile} 2>&1
|
mkdir -pv /tools/lib/perl5/5.30.1 >> ${logfile} 2>&1
|
||||||
cp -Rv lib/* /tools/lib/perl5/5.28.1 >> ${logfile} 2>&1
|
cp -Rv lib/* /tools/lib/perl5/5.30.1 >> ${logfile} 2>&1
|
||||||
msg_success
|
msg_success
|
||||||
popd > /dev/null 2>&1
|
popd > /dev/null 2>&1
|
||||||
popd > /dev/null 2>&1
|
popd > /dev/null 2>&1
|
||||||
@ -949,8 +942,8 @@ function Perl {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Python {
|
function Python {
|
||||||
# Python-3.7.2
|
# Python-3.8.1
|
||||||
local pkg=Python-3.7.2.tar.xz
|
local pkg=Python-3.8.1.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -975,8 +968,8 @@ function Python {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Sed {
|
function Sed {
|
||||||
# Sed-4.7
|
# Sed-4.8
|
||||||
local pkg=sed-4.7.tar.xz
|
local pkg=sed-4.8.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -1000,8 +993,8 @@ function Sed {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Tar {
|
function Tar {
|
||||||
# Tar-1.31
|
# Tar-1.32
|
||||||
local pkg=tar-1.31.tar.xz
|
local pkg=tar-1.32.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -1025,8 +1018,8 @@ function Tar {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Texinfo {
|
function Texinfo {
|
||||||
# Texinfo-6.5
|
# Texinfo-6.7
|
||||||
local pkg=texinfo-6.5.tar.xz
|
local pkg=texinfo-6.7.tar.xz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -1138,7 +1131,7 @@ function Popt {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Openssl {
|
function Openssl {
|
||||||
local pkg=openssl-1.1.1a.tar.gz
|
local pkg=openssl-1.1.1d.tar.gz
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -1172,7 +1165,7 @@ function Openssl {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Libelf {
|
function Libelf {
|
||||||
local pkg=elfutils-0.176.tar.bz2
|
local pkg=elfutils-0.178.tar.bz2
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -1184,6 +1177,7 @@ function Libelf {
|
|||||||
msg_line " Configure: "
|
msg_line " Configure: "
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/tools \
|
--prefix=/tools \
|
||||||
|
--disable-debuginfod \
|
||||||
--program-prefix="eu-" \
|
--program-prefix="eu-" \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--enable-static >> ${logfile} 2>&1
|
--enable-static >> ${logfile} 2>&1
|
||||||
@ -1203,7 +1197,7 @@ function Libelf {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
function Rpm {
|
function Rpm {
|
||||||
local pkg=rpm-4.14.2.1.tar.bz2
|
local pkg=rpm-4.15.1.tar.bz2
|
||||||
local pkg_dir=${pkg%%.tar*}
|
local pkg_dir=${pkg%%.tar*}
|
||||||
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
|
||||||
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return 0; } || msg "Building: ${FUNCNAME}"
|
||||||
@ -1211,10 +1205,10 @@ function Rpm {
|
|||||||
pushd ${TOPDIR}/BUILD >> /dev/null 2>&1
|
pushd ${TOPDIR}/BUILD >> /dev/null 2>&1
|
||||||
unpack "${pkg}"
|
unpack "${pkg}"
|
||||||
pushd ${pkg_dir} >> /dev/null 2>&1
|
pushd ${pkg_dir} >> /dev/null 2>&1
|
||||||
unpack db-6.0.20.tar.gz
|
unpack db-5.3.28.tar.gz
|
||||||
msg_line " Configure: "
|
msg_line " Configure: "
|
||||||
sed -i 's/--srcdir=$db_dist/--srcdir=$db_dist --with-pic/' db3/configure
|
sed -i 's/--srcdir=$db_dist/--srcdir=$db_dist --with-pic/' db3/configure
|
||||||
ln -vs db-6.0.20 db >> ${logfile} 2>&1
|
ln -vs db-5.3.28 db >> ${logfile} 2>&1
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/tools \
|
--prefix=/tools \
|
||||||
--program-prefix= \
|
--program-prefix= \
|
||||||
|
Loading…
Reference in New Issue
Block a user