more packages

This commit is contained in:
YellowJacketLinux 2024-10-06 10:55:01 -07:00
parent 7123c69fdf
commit 907484e0ca
13 changed files with 287 additions and 26 deletions

View File

@ -1,7 +1,6 @@
#!/bin/bash
LFS=/mnt/newlfs
#LFS=/home/mpeters/newlfs
source versions.sh
@ -36,6 +35,8 @@ function getSource {
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -f ${HOME}/lfs-sources.tar.xz ] && tar -xpf ${HOME}/lfs-sources.tar.xz
getSource "${acl_dnl}" "${acl_sha256}" "${acl_tarball}"
getSource "${attr_dnl}" "${attr_sha256}" "${attr_tarball}"
getSource "${autoconf_dnl}" "${autoconf_sha256}" "${autoconf_tarball}"
@ -128,29 +129,12 @@ getSource "${xz_dnl}" "${xz_sha256}" "${xz_tarball}"
getSource "${zlib_dnl}" "${zlib_sha256}" "${zlib_tarball}"
getSource "${zstd_dnl}" "${zstd_sha256}" "${zstd_tarball}"
cp ${CWD}/CH8Build/libressl-${libressl_version}-cnf-name.patch ${GLSOURCES}/
cp ${CWD}/CH8Build/libressl-${libressl_version}-cnf-name.patch .
echo "backing up sources, may take a few minutes"
rm -f ${HOME}/lfs-sources.tar.xz
tar -cJpf ${HOME}/lfs-sources.tar.xz .
popd > /dev/null 2>&1

30
CH8Build/CH08.57-check.sh Normal file
View File

@ -0,0 +1,30 @@
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d check-${check_version} ] && rm -rf check-${check_version}
tar -zxf ${check_tarball}
cd check-${check_version}
./configure --prefix=/usr \
--disable-static
make
if [ $? -ne 0 ]; then
myfail "Failed building check"
fi
echo "running check make check"
make check > ${GLSOURCES}/check.check 2>&1
make docdir=/usr/share/doc/check-${check_version} install
if [ $? -ne 0 ]; then
myfail "Failed installing check"
fi

View File

@ -0,0 +1,29 @@
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d diffutils-${diffutils_version} ] && rm -rf diffutils-${diffutils_version}
tar -Jxf ${diffutils_tarball}
cd diffutils-${diffutils_version}
./configure --prefix=/usr
make
if [ $? -ne 0 ]; then
myfail "Failed building diffutils"
fi
echo "running diffutils make check"
make check > ${GLSOURCES}/diffutils.check 2>&1
make install
if [ $? -ne 0 ]; then
myfail "Failed installing diffutils"
fi

32
CH8Build/CH08.59-gawk.sh Normal file
View File

@ -0,0 +1,32 @@
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d gawk-${gawk_version} ] && rm -rf gawk-${gawk_version}
tar -Jxf ${gawk_tarball}
cd gawk-${gawk_version}
sed -i 's/extras//' Makefile.in
./configure --prefix=/usr
make
if [ $? -ne 0 ]; then
myfail "Failed building gawk"
fi
rm -f /usr/bin/gawk-${gawk_version}
make install
if [ $? -ne 0 ]; then
myfail "Failed installing xz"
fi
ln -sv gawk.1 /usr/share/man/man1/awk.1
mkdir -p /usr/share/doc/gawk-${gawk_version}
cp doc/{awkforai.txt,*.{eps,pdf,jpg}} /usr/share/doc/gawk-${gawk_version}

View File

@ -0,0 +1,27 @@
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d findutils-${findutils_version} ] && rm -rf findutils-${findutils_version}
tar -Jxf ${findutils_tarball}
cd findutils-${findutils_version}
./configure --prefix=/usr \
--localstatedir=/var/lib/locate
make
if [ $? -ne 0 ]; then
myfail "Failed building findutils"
fi
make install
if [ $? -ne 0 ]; then
myfail "Failed installing findutils"
fi

29
CH8Build/CH08.61-groff.sh Normal file
View File

@ -0,0 +1,29 @@
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d groff-${groff_version} ] && rm -rf groff-${groff_version}
tar -zxf ${groff_tarball}
cd groff-${groff_version}
PAGE=letter ./configure --prefix=/usr
make
if [ $? -ne 0 ]; then
myfail "Failed building groff"
fi
echo "running groff make check"
make check > ${GLSOURCES}/groff.check 2>&1
make install
if [ $? -ne 0 ]; then
myfail "Failed installing groff"
fi

33
CH8Build/CH08.62-grub.sh Normal file
View File

@ -0,0 +1,33 @@
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d grub-${grub_version} ] && rm -rf grub-${grub_version}
tar -Jxf ${grub_tarball}
cd grub-${grub_version}
unset {C,CPP,CXX,LD}FLAGS
echo depends bli part_gpt > grub-core/extra_deps.lst
./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-efiemu \
--disable-werror
make
if [ $? -ne 0 ]; then
myfail "Failed building grub"
fi
make install
if [ $? -ne 0 ]; then
myfail "Failed installing grub"
fi
mv /etc/bash_completion.d/grub /usr/share/bash-completion/completions

29
CH8Build/CH08.63-gzip.sh Normal file
View File

@ -0,0 +1,29 @@
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d gzip-${gzip_version} ] && rm -rf gzip-${gzip_version}
tar -Jxf ${gzip_tarball}
cd gzip-${gzip_version}
./configure --prefix=/usr
make
if [ $? -ne 0 ]; then
myfail "Failed building gzip"
fi
echo "running gzip make check"
make check > ${GLSOURCES}/gzip.check 2>&1
make install
if [ $? -ne 0 ]; then
myfail "Failed installing gzip"
fi

View File

@ -238,7 +238,75 @@ else
sleep 3
fi
/bin/bash CH08.57-check.sh
if [ $? -ne 0 ]; then
echo "failed CH08.57-check.sh"
exit 1
else
echo "LFS Chapter 8 Check Complete"
sleep 3
fi
/bin/bash CH08.58-diffutils.sh
if [ $? -ne 0 ]; then
echo "failed CH08.58-diffutils.sh"
exit 1
else
echo "LFS Chapter 8 Diffutils Complete"
sleep 3
fi
/bin/bash CH08.59-gawk.sh
if [ $? -ne 0 ]; then
echo "failed CH08.59-gawk.sh"
exit 1
else
echo "LFS Chapter 8 Gawk Complete"
sleep 3
fi
/bin/bash CH08.60-findutils.sh
if [ $? -ne 0 ]; then
echo "failed CH08.60-findutils.sh"
exit 1
else
echo "LFS Chapter 8 Findutils Complete"
sleep 3
fi
/bin/bash CH08.61-groff.sh
if [ $? -ne 0 ]; then
echo "failed CH08.61-groff.sh"
exit 1
else
echo "LFS Chapter 8 Groff Complete"
sleep 3
fi
/bin/bash CH08.62-grub.sh
if [ $? -ne 0 ]; then
echo "failed CH08.62-grub.sh"
exit 1
else
echo "LFS Chapter 8 Grub Complete"
sleep 3
fi
/bin/bash CH08.63-gzip.sh
if [ $? -ne 0 ]; then
echo "failed CH08.63-gzip.sh"
exit 1
else
echo "LFS Chapter 8 Gzip Complete"
sleep 3
fi

View File

@ -425,9 +425,9 @@ util_linux_dnl="https://www.kernel.org/pub/linux/utils/util-linux/v${util_linux_
util_linux_sha256="d78b37a66f5922d70edf3bdfb01a6b33d34ed3c3cafd6628203b2a2b67c8e8b3"
util_linux_tarball="util-linux-${util_linux_version}.tar.xz"
vim_version="9.1.0751"
vim_version="9.1.0764"
vim_dnl="https://github.com/vim/vim/archive/refs/tags/v${vim_version}.tar.gz"
vim_sha256="efa1be453c97a3bff693835d7b64a14dee8bb7619bd893ce6f12c2cf5dafc7a3"
vim_sha256="874be6146792d67ae47dc8d89f9d32558a266df87a81f5f80ad1b9b4cb31c1a1"
vim_tarball="v${vim_version}.tar.gz"
wheel_version="0.44.0"