#---------------------------------------------------------------------------- # 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://www.greenwoodsoftware.com/less/ # less-436.tar.gz # 2012-05-26 -> less-444 # 2013-02-03 -> less-451 # with AUTOPOINT=true autoreconf -fi # 2015-05-25 -> less-458 # rebuild with rpm Suse # less-458-10.1.src.rpm # hbfl # 2018-02-07 -> less-487 # build with rpm suse # less-487-3.2.src.rpm # hbfl # 2019-10-26 -> less-551 # build with rpm suse # less-551-1.1.src.rpm # hbfl # 2020-08-11 -> less-562 # build with rpm suse -> gcc-9 -> glibc-2.31 # less-562-1.2.src.rpm # hbfl # 2021-07-05 -> less-590 # build with rpm suse -> gcc-10 -> glibc-2.33 # less-590-1.1.src.rpm # hbfl # 2023-05-15 -> less-633 # build with rpm suse -> gcc-12 -> glibc-2.37 # less-633-2.1.src.rpm # hbfl # 2025-04-29 -> less-668 # build with rpm suse -> gcc-14 -> glibc-2.41 # less-668-2.1.src.rpm ### extract file in a temporary location tar -xzf less-436.tar.gz ### build export CFLAGS='-O2 -march=i486' export CXXFLAGS="${CFLAGS}" ./configure \ --prefix=/usr \ --build=i486-pc-linux-gnu \ --host=i486-pc-linux-gnu make make DESTDIR=/public/utils/less/451 install # strip files/binarys for filename in `find /public/utils/less/451/usr/bin/* -type f` do echo $filename strip -R .note -R .comment "$filename" done