#---------------------------------------------------------------------------- # build_bash.txt - how to build the bash binaries and create folder and packages # # Creation : 2009-07-06 holbru # Last update: $Id$ # # !!! this is not a script but an step-by-step howto !!! #------------------------------------------------------------------------------ exit 1 ### download the source code from the internet, e.g. # http://ftp.gnu.org/gnu/bash # http://www.linuxfromscratch.org/patches/bash-3.2-fixes-9.patch # bash-3.2.tar.gz ### extract file in a temporary location tar -xzf bash-3.2.tar.gz cd bash-3.2 patch -Np1 -i ../bash-3.2..... # 2012-05-05 -> bash-4.2 # http://www.linuxfromscratch.org/patches/downloads/bash/bash-4.2-fixes-6.patch # 2012-11-04 -> bash-4.2 LibC-2.8 # http://www.linuxfromscratch.org/patches/downloads/bash/bash-4.2-fixes-9.patch # 2013-06-15 -> bash-4.2 LibC-2.11.3 # http://www.linuxfromscratch.org/patches/downloads/bash/bash-4.2-fixes-12.patch # 2013-07-29 bash 4.2-45 rebuild with ld-2.22 # 2014-09-25 -> bash-4.2-48 # 2014-09-27 -> bash-4.2-49 # bash-4.2-CVE-2014-7187.patch # 2014-10-02 -> bash-4.2-51 # 2014-10-05 -> bash-4.2-52 # 2014-11-05 -> bash-4.2-53 # build with rpm Suse Factory # bash-4.2-75.3.1.src.rpm # 2015-03-22 -> bash-4.2-53 LibC-2.15 # rebuild with Suse rpm # bash-4.2-75.3.1.src.rpm # hbfl # 2017-08-30 -> bash-4.3 # build with rpm Suse # bash-4.3-82.6.src.rpm # hbfl # 2017-10-02 -> bash-4.3 glibc-2.22 # build with rpm Suse # bash-4.3-82.6.src.rpm # hbfl # 2018-05-25 -> bash-4.3 # build with rpm Suse # bash-4.3-83.6.1.src.rpm # hbfl # 2019-10-27 -> bash-5.0.11 # build with rpm Suse # bash-5.0.11-2.1.src.rpm # hbfl # 2020-04-23 -> bash-5.0.11 # rebuild with rpm Suse -> gcc-9.2.1 -> glibc-2.31 # bash-5.0.11-5.1.src.rpm # hbfl # 2020-08-27 -> bash-5.0.18 # build with rpm Suse # bash-5.0.18-1.1.src.rpm # hbfl # 2021-05-26 -> bash-5.1.4 # build with rpm Suse -> gcc-10 -> glibc-2.33 # bash-5.1.4-2.1.src.rpm # switch suse-linux to pc-linux-gnu # hbfl # 2022-01-19 -> bash-5.1.12 # build with rpm Suse # bash-5.1.12-4.2.src.rpm # hbfl # 2023-03-26 -> bash-5.2 # build with rpm Suse -> gcc-12 -> glibc-2.37 # bash-5.2-8.2.src.rpm # hbfl # 2024-05-02 -> bash-5.2.26 # build with rpm Suse # bash-5.2.26-12.1.src.rpm # hbfl # 2024-12-01 -> bash-5.2.37 # build with rpm Suse # bash-5.2.37-14.1.src.rpm # get_versions_number.sh anpassen # hbfl # 2025-03-13 -> bash-5.2.37 # rebuild with rpm Suse -> gcc-14 -> glibc-2.41 # bash-5.2.37-17.3.src.rpm # link spec file in sourcedir # switch suse-linux to pc-linux-gnu !!!!! # machtype anpassen!!!!!! Vorgang nach http://oss.erdfunkstelle.de/lfs-de/6.3/online/chapter06/bash.html ### build export CFLAGS='-O2 -march=i486' export CXXFLAGS="${CFLAGS}" ./configure --prefix=/usr \ --bindir=/bin \ --without-bash-malloc \ --with-installed-readline \ --build=i486-pc-linux-gnu \ --host=i486-pc-linux-gnu make make DESTDIR=/public/utils/bash/4.2 install # strip files/binarys for filename in `find /public/utils/bash/4.2/bin/* -type f` do echo $filename strip -R .note -R .comment "$filename" done