From 35ddb2c8221901ea9bac90548bf1104b87c6e866 Mon Sep 17 00:00:00 2001 From: YellowJacketLinux Date: Tue, 1 Oct 2024 21:02:20 -0700 Subject: [PATCH] more build tools --- CH06.12-patch.sh | 33 +++++++++++++++++++++++++++++++++ CH06.13-sed.sh | 33 +++++++++++++++++++++++++++++++++ versions.sh | 10 ++++++---- 3 files changed, 72 insertions(+), 4 deletions(-) create mode 100644 CH06.12-patch.sh create mode 100644 CH06.13-sed.sh diff --git a/CH06.12-patch.sh b/CH06.12-patch.sh new file mode 100644 index 0000000..0420a3d --- /dev/null +++ b/CH06.12-patch.sh @@ -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 ${patch_tarball} + +cd patch-${patch_version} + +./configure --prefix=/usr \ + --host=${LFS_TGT} \ + --build=$(build-aux/config.guess) + +make + +if [ $? -ne 0 ]; then + myfail "Failed building patch" +fi + +make DESTDIR=${LFS} install + +if [ $? -ne 0 ]; then + myfail "Failed installing patch" +fi + + diff --git a/CH06.13-sed.sh b/CH06.13-sed.sh new file mode 100644 index 0000000..afe6712 --- /dev/null +++ b/CH06.13-sed.sh @@ -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 ${sed_tarball} + +cd sed-${sed_version} + +./configure --prefix=/usr \ + --host=${LFS_TGT} \ + --build=$(build-aux/config.guess) + +make + +if [ $? -ne 0 ]; then + myfail "Failed building sed" +fi + +make DESTDIR=${LFS} install + +if [ $? -ne 0 ]; then + myfail "Failed installing sed" +fi + + diff --git a/versions.sh b/versions.sh index 4f4e656..828da5d 100644 --- a/versions.sh +++ b/versions.sh @@ -274,9 +274,10 @@ ninja_dnl="https://github.com/ninja-build/ninja/archive/v1.12.1/ninja-1.12.1.tar ninja_sha256="821bdff48a3f683bc4bb3b6f0b5fe7b2d647cf65d52aeb63328c91a6c6df285a" ninja_tarball="ninja-1.12.1.tar.gz" -patch_dnl="https://ftp.gnu.org/gnu/patch/patch-2.7.6.tar.xz" +patch_version="2.7.6" +patch_dnl="https://ftp.gnu.org/gnu/patch/patch-${patch_version}.tar.xz" patch_sha256="ac610bda97abe0d9f6b7c963255a11dcb196c25e337c61f94e4778d632f1d8fd" -patch_tarball="patch-2.7.6.tar.xz" +patch_tarball="patch-${patch_version}.tar.xz" perl_dnl="https://www.cpan.org/src/5.0/perl-5.40.0.tar.xz" perl_sha256="d5325300ad267624cb0b7d512cfdfcd74fa7fe00c455c5b51a6bd53e5e199ef9" @@ -306,9 +307,10 @@ readline_dnl="https://ftp.gnu.org/gnu/readline/readline-8.2.13.tar.gz" readline_sha256="0e5be4d2937e8bd9b7cd60d46721ce79f88a33415dd68c2d738fb5924638f656" readline_tarball="readline-8.2.13.tar.gz" -sed_dnl="https://ftp.gnu.org/gnu/sed/sed-4.9.tar.xz" +sed_version="4.9" +sed_dnl="https://ftp.gnu.org/gnu/sed/sed-${sed_version}.tar.xz" sed_sha256="6e226b732e1cd739464ad6862bd1a1aba42d7982922da7a53519631d24975181" -sed_tarball="sed-4.9.tar.xz" +sed_tarball="sed-${sed_version}.tar.xz" setuptools_dnl="https://files.pythonhosted.org/packages/27/b8/f21073fde99492b33ca357876430822e4800cdf522011f18041351dfa74b/setuptools-75.1.0.tar.gz" setuptools_sha256="d59a21b17a275fb872a9c3dae73963160ae079f1049ed956880cd7c09b120538"