make#---------------------------------------------------------------------------- # build_zip.txt - how to build the zip binaries and create folder and packages # # Creation : 2013-06-30 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://sourceforge.net/projects/infozip/files/ # http://sourceforge.net/projects/infozip/files/Zip%203.x%20%28latest%29/3.0/ # zip30.tar.gz ### extract file in a temporary location tar -xf zip30.tar.gz cd zip30 # 2013-06-30 -> zip30 GLibC-2.11.3 # 2013-07-30 -> zip30 rebuild with ld-2.22 # 2015-09-04 -> zip-3.0 # build with rpm Suse # zip-3.0-16.1.2.src.rpm # hbfl # 2017-10-03 -> zip-3.0 # build with rpm Suse # zip-3.0-18.4.src.rpm # hbfl # 2019-12-19 -> zip-3.0 # build with rpm Suse # zip-3.0-20.4.src.rpm # hbfl # 2020-04-10 -> zip-3.0 # rebuild with rpm Suse -> gcc-9.2.1 -> glibc-2.31 # zip-3.0-20.4.src.rpm # hbfl # 2021-05-21 -> zip-3.0 # rebuild with rpm Suse -> gcc-10 -> glibc-2.33 # zip-3.0-20.10.src.rpm # hbfl # 2023-03-25 -> zip-3.0 # rebuild with rpm Suse -> gcc-12 -> glibc-2.37 # zip-3.0-22.3.src.rpm # hbfl # 2025-03-12 -> zip-3.0 # rebuild with rpm Suse -> gcc-14 -> glibc-2.41 # zip-3.0-24.3.src.rpm ### build export CFLAGS='-O2 -march=i486' export CXXFLAGS="${CFLAGS}" require libbz2-dev zum build make prefix=/usr -f unix/Makefile generic make prefix=/usr -f unix/Makefile install # extract for destinstall make prefix=/public/utils/zip/30/usr -f unix/Makefile install # strip files/binarys for filename in `find /public/utils/zip/30/usr/bin/* -type f` do echo $filename strip -R .note -R .comment "$filename" done # copy files