#---------------------------------------------------------------------------- # build_grep.txt - how to build the grep binaries and create folder and packages # # Creation : 2010-04-21 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. # ftp://ftp.gnu.org/gnu/grep/ # grep-2.5.1a.tar.bz2 ### extract file in a temporary location tar -xjvf grep-2.5.1a.tar.bz2 cd grep-2.5.1a ### build # 2010-06-27 grep-2.6.3 # 2010-11-13 grep-2.7 # 2011-06-05 grep-2.8 # 2011-08-15 grep-2.9 # 2012-05-27 grep-2.12 # 2012-09-28 grep-2.14 # include po/de.po file from SUSE grep-2.14 # 2012-11-03 grep 2.14 LibC-2.8 # 2013-06-15 grep 2.14 LibC-2.11.3 # 2013-07-29 grep 2.14 rebuild with ld-2.22 # 2014-01-11 -> grep-2.16 # with pcre static included # build with rpm Suse Factory # grep-2.16-1.1.src.rpm # 2014-03-08 -> grep-2.18 # with pcre static included # build with rpm Suse Factory # grep-2.18-1.2.src.rpm # 2014-08-12 -> grep-2.20 # with pcre static included # build with rpm Suse Factory # grep-2.20-1.2.src.rpm # 2014-12-22 -> grep-2.21 # with pcre static included # build with rpm Suse Factory # grep-2.21-1.1.src.rpm # 2014-01-12 # mv grep -> in.grep # added grep as wrapper for in.grep # 2015-03-26 -> grep-2.21 # rebuild with rpm Suse # grep-2.21-4.1.src.rpm # 2016-02-20 -> grep 2.23 # build with rpm suse # grep-2.23-79.2.src.rpm # 2016-05-04 -> grep 2.25 # build with rpm suse # grep-2.25-81.4.src.rpm # hbfl # 2017-10-02 -> grep-2.25 # build with rpm Suse # grep-2.25-81.4.src.rpm # hbfl # 2019-10-25 -> grep-3.3 # build with rpm Suse # grep-3.3-3.1.src.rpm # hbfl # 2020-03-10 -> grep-3.4 # build with rpm Suse # grep-3.4-1.1.src.rpm # build fail # hbfl # 2020-07-05 -> grep-3.4 # build with rpm Suse -> gcc-9 -> glibc-2.31 # grep-3.4-1.9.src.rpm # hbfl # 2021-06-25 -> grep-3.6 # build with rpm Suse -> gcc-10 -> glibc-2.33 # grep-3.6-2.4.src.rpm # hbfl # 2022-05-07 -> grep-3.7 # build with rpm Suse -> gcc-10 -> glibc-2.33 # grep-3.7-3.1.src.rpm # hbfl # 2023-04-04 -> grep-3.9 # build with rpm Suse -> gcc-12 -> glibc-2.37 # grep-3.9-1.2.src.rpm # hbfl # 2024-04-28 -> grep-3.11 # build with rpm Suse # grep-3.11-3.1.src.rpm # hbfl # 2025-04-28 -> grep-3.12 # build with rpm Suse -> gcc-14 -> glibc-2.41 # grep-3.12-1.1.src.rpm export CFLAGS='-O2 -march=i486' export CXXFLAGS="${CFLAGS}" ./configure \ --prefix=/usr \ --localedir=/usr/share/locale \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --build=i486-pc-linux-gnu \ --host=i486-pc-linux-gnu \ --disable-perl-regexp make make -C po update-po make check make DESTDIR=/public/utils/grep/2.14 install # strip files/binarys for filename in `find /public/utils/grep/2.14/usr/bin/* -type f` do echo $filename strip -R .note -R .comment "$filename" done # copy files cp *** /lib/fcron/bin_**_fcron_3_0_5/*** #---------------------------------------------------------------------------