#----------------------------------------------------------------------------- # Version 1.0.0 #----------------------------------------------------------------------------- ### this is not a script but an step-by-step howto exit 1 # Bison-1.875 http://freshmeat.net/projects/bison/ # Flex-2.5.4a ftp://ftp.gnu.org/gnu/non-gnu/flex/ # Patch-2.5.4 http://freshmeat.net/projects/patch/ # Make-3.80 http://freshmeat.net/projects/gnumake/ # Autoconf-2.59 http://freshmeat.net/projects/autoconf/ # Automake-1.9.2 http://freshmeat.net/projects/automake/ # Libtool-1.5.8 http://freshmeat.net/projects/libtool/ ### download wget ftp://ftp.gnu.org/gnu/bison/bison-1.875.tar.gz wget http://www.linuxfromscratch.org/patches/lfs/5.1.1/bison-1.875-attribute.patch wget ftp://ftp.gnu.org/gnu/non-gnu/flex/flex-2.5.4a.tar.gz wget ftp://ftp.gnu.org/pub/gnu/patch/patch-2.5.4.tar.gz wget ftp://ftp.gnu.org/gnu/make/make-3.80.tar.gz wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.59.tar.gz wget ftp://ftp.gnu.org/gnu/automake/automake-1.9.2.tar.gz wget ftp://ftp.gnu.org/gnu/libtool/libtool-1.5.8.tar.gz ### extract tar xzf bison-1.875.tar.gz tar xzf flex-2.5.4a.tar.gz tar xzf patch-2.5.4.tar.gz tar xzf make-3.80.tar.gz tar xzf autoconf-2.59.tar.gz tar xzf automake-1.9.2.tar.gz tar xzf libtool-1.5.8.tar.gz ### patch bison cd bison-1.875 patch -Np1 -i ../bison-1.875-attribute.patch ### build bison ./configure --prefix=/usr make make check make DESTDIR=/tmp/devtools install cd .. ### build flex cd flex-2.5.4a ./configure --prefix=/usr make make bigcheck make prefix=/tmp/devtools/usr install cd .. ### build patch cd patch-2.5.4 CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr make make prefix=/tmp/devtools/usr install cd .. ### build make cd make-3.80 ./configure --prefix=/usr make make check make prefix=/tmp/devtools/usr install cd .. ### build autoconf cd autoconf-2.59 ./configure --prefix=/usr make make check make DESTDIR=/tmp/devtools install cd .. ### build automake cd automake-1.9.2 ./configure --prefix=/usr make make check make DESTDIR=/tmp/devtools install cd .. ### build libtool cd libtool-1.5.8 ./configure --prefix=/usr make make check make DESTDIR=/tmp/devtools install cd .. ### install bison cd /tmp/devtools/usr rm -r info man strip -R .note -R .comment bin/bison strip -R .note -R .comment lib/liby.a ### install flex cd /tmp/devtools/usr rm -r man strip -R .note -R .comment bin/flex strip -R .note -R .comment lib/libfl.a ### install patch cd /tmp/devtools/usr rm -r man strip -R .note -R .comment bin/patch ### install make cd /tmp/devtools/usr rm -r info man strip -R .note -R .comment bin/make ### install autoconf cd /tmp/devtools/usr/ rm -r info man ### install automake cd /tmp/devtools/usr/ rm -r info rm bin/aclocal bin/automake ### install libtool cd /tmp/devtools/usr/ rm -r info rm lib/libltdl.so lib/libltdl.so.3 strip -R .note -R .comment lib/libltdl.a strip -R .note -R .comment lib/libltdl.so.3.1.0 #----------------------------------------------------------------------------- # Update Version 1.1.0 #----------------------------------------------------------------------------- # Bison-2.0 http://freshmeat.net/projects/bison/ # Flex-2.5.31 ftp://ftp.gnu.org/gnu/non-gnu/flex/ # Patch-2.5.4 http://freshmeat.net/projects/patch/ # Make-3.80 http://freshmeat.net/projects/gnumake/ # Autoconf-2.59 http://freshmeat.net/projects/autoconf/ # Automake-1.9.6 http://freshmeat.net/projects/automake/ # Libtool-1.5.14 http://freshmeat.net/projects/libtool/ ### download wget ftp://ftp.gnu.org/gnu/bison/bison-2.0.tar.bz2 wget http://www.linuxfromscratch.org/patches/lfs/5.1.1/bison-1.875-attribute.patch wget http://www.sunfreeware.com/ftp/pub/freeware/SOURCES/flex-2.5.31.tar.gz wget http://gd4.tuwien.ac.at/opsys/linux/lfs/packages/hlfs-glibc-unstable/flex-2.5.31-debian_fixes-3.patch wget ftp://ftp.gnu.org/pub/gnu/patch/patch-2.5.4.tar.gz wget ftp://ftp.gnu.org/gnu/make/make-3.80.tar.gz wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.59.tar.bz2 wget ftp://ftp.gnu.org/gnu/automake/automake-1.9.6.tar.bz2 wget ftp://ftp.gnu.org/gnu/libtool/libtool-1.5.14.tar.gz ### extract tar xzf bison-2.0.tar.bz2 tar xzf flex-2.5.31.tar.gz tar xzf patch-2.5.4.tar.gz tar xzf make-3.80.tar.gz tar xzf autoconf-2.59.tar.bz2 tar xzf automake-1.9.6.tar.bz2 tar xzf libtool-1.5.14.tar.gz ### build bison cd ./bison-2.0 ./configure --prefix=/usr i486-pc-linux-gnu make && make check make DESTDIR=/tmp/devtools install ### build flex cd ../flex-2.5.31 patch -Np1 -i ../flex-2.5.31-debian_fixes-3.patch touch doc/flex.1 ./configure --prefix=/usr i486-pc-linux-gnu make && make check # error: libstdc++.so undefined reference to 'libintl_bindtextdomain' # error: libstdc++.so undefined reference to 'libintl_textdomain' make prefix=/tmp/devtools/usr install ### build patch cd ../patch-2.5.4 CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr i486-pc-linux-gnu make make prefix=/tmp/devtools/usr install ### build make cd ../make-3.80 ./configure --prefix=/usr i486-pc-linux-gnu make && make check make prefix=/tmp/devtools/usr install ### build autoconf cd ../autoconf-2.59 ./configure --prefix=/usr i486-pc-linux-gnu make && make check make DESTDIR=/tmp/devtools install ### build automake cd ../automake-1.9.6 ./configure --prefix=/usr i486-pc-linux-gnu make && make check # dauert lange make DESTDIR=/tmp/devtools install ### build libtool cd ../libtool-1.5.14 ./configure --prefix=/usr i486-pc-linux-gnu make make check make DESTDIR=/tmp/devtools install ### strip all files cd /tmp/devtools/usr rm -r info man strip -R .note -R .comment bin/* strip -R .note -R .comment lib/* # install automake rm -r info rm bin/aclocal bin/automake # install libtool rm lib/libltdl.so lib/libltdl.so.3 #----------------------------------------------------------------- # Uupdate Version 1.3.0 #----------------------------------------------------------------- # download wget http://ftp.gnu.org/gnu/texinfo/texinfo-4.8.tar.bz2 wget http://www.linuxfromscratch.org/patches/downloads/texinfo/texinfo-4.8-tempfile_fix-1.patch wget http://ftp.gnu.org/gnu/m4/m4-1.4.10.tar.bz2 wget http://www.linuxfromscratch.org/patches/downloads/m4/m4-1.4.10-fixes-1.patch wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.bz2 wget http://ftp.gnu.org/gnu/automake/automake-1.10.tar.bz2 wget http://ftp.gnu.org/gnu/make/make-3.81.tar.bz2 wget http://ftp.gnu.org/gnu/libtool/libtool-1.5.24.tar.gz wget http://ftp.gnu.org/gnu/bison/bison-2.3.tar.bz2 wget http://ftp.gnu.org/gnu/patch/patch-2.5.4.tar.gz wget http://flex.sourceforge.netf/lex-2.5.33.tar.gz ### extract tar xjf texinfo-4.8.tar.bz2 tar xjf m4-1.4.10.tar.bz2 tar xjf autoconf-2.61.tar.bz2 tar xjf automake-1.10.tar.bz2 tar xjf make-3.81.tar.bz2 tar xzf libtool-1.5.14.tar.gz tar xjf bison-2.3.tar.bz2 tar xzf patch-2.5.4.tar.gz tar xzf flex-2.5.31.tar.gz # build texinfo mit libiconv-gettext-dev cd texinfo-4.8 patch -Np1 -i ../texinfo-4.8-tempfile_fix-1.patch export CFLAGS='-O2 -march=i486 -fomit-frame-pointer' export CXXFLAGS="${CFLAGS}" ./configure --prefix=/usr i486-pc-linux-gnu make make check make prefix=/tmp/texinfo/usr install strip -R .note -R .comment bin/* # build m4 mit libiconv-gettext-dev cd m4-1.4.10 patch -Np1 -i ../m4-1.4.10-fixes-1.patch export CFLAGS='-O2 -march=i486' export CXXFLAGS="${CFLAGS}" ./configure --prefix=/usr i486-pc-linux-gnu make make check make prefix=/tmp/m4/usr install strip -R .note -R .comment bin/* # build autoconf mit libiconv-gettext-dev cd autoconf-2.61 export CFLAGS='-O2 -march=i486 -fomit-frame-pointer' export CXXFLAGS="${CFLAGS}" ./configure --prefix=/usr i486-pc-linux-gnu make make check make prefix=/tmp/autoconf/usr install # build automake mit libiconv-gettext-dev cd automake-1.10 export CFLAGS='-O2 -march=i486 -fomit-frame-pointer' export CXXFLAGS="${CFLAGS}" ./configure --prefix=/usr i486-pc-linux-gnu make make check make prefix=/tmp/autoconf/usr install rm bin/aclocal bin/automake # build make mit libiconv-gettext-dev cd make-3.81 export CFLAGS='-O2 -march=i486 -fomit-frame-pointer' export CXXFLAGS="${CFLAGS}" ./configure --prefix=/usr i486-pc-linux-gnu make make check make prefix=/tmp/autoconf/usr install strip -R .note -R .comment bin/* # build libtool mit libiconv-gettext-dev cd libtool-1.5.24 export CFLAGS='-O2 -march=i486 -fomit-frame-pointer' export CXXFLAGS="${CFLAGS}" ./configure --prefix=/usr i486-pc-linux-gnu make make check make prefix=/tmp/autoconf/usr install strip -R .note -R .comment bin/* strip -R .note -R .comment lib/* rm lib/libltdl.so lib/libltdl.so.3 # build bison mit libiconv-gettext-dev cd bison-2.3 export CFLAGS='-O2 -march=i486 -fomit-frame-pointer' export CXXFLAGS="${CFLAGS}" ./configure --prefix=/usr i486-pc-linux-gnu make make check make prefix=/tmp/autoconf/usr install strip -R .note -R .comment bin/* strip -R .note -R .comment lib/* # build patch mit libiconv-gettext-dev cd patch-2.5.4 export CFLAGS='-O2 -march=i486 -fomit-frame-pointer' export CXXFLAGS="${CFLAGS}" ./configure --prefix=/usr i486-pc-linux-gnu make make check make prefix=/tmp/autoconf/usr install strip -R .note -R .comment bin/* # build flex mit libiconv-gettext-dev cd flex-2.5.33 export CFLAGS='-O2 -march=i486 -fomit-frame-pointer' export CXXFLAGS="${CFLAGS}" ./configure --prefix=/usr i486-pc-linux-gnu make make check make prefix=/tmp/autoconf/usr install strip -R .note -R .comment bin/* strip -R .note -R .comment lib/* #------------------------------------------------------------------------- # Update Version 1.5.0 recompiled with GNU LibC 2.3.6 2009-06-19 (hbfl) #------------------------------------------------------------------------- # download wget http://ftp.gnu.org/gnu/texinfo/texinfo-4.9.tar.bz2 wget http://www.linuxfromscratch.org/patches/lfs/6.3/texinfo/texinfo-4.9-tempfile_fix-1.patch wget http://www.linuxfromscratch.org/patches/lfs/6.3/texinfo/texinfo-4.9-multibyte-1.patch wget http://ftp.gnu.org/gnu/m4/m4-1.4.11.tar.bz2 wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.bz2 wget http://ftp.gnu.org/gnu/automake/automake-1.10.1.tar.bz2 wget http://ftp.gnu.org/gnu/make/make-3.81.tar.bz2 wget http://ftp.gnu.org/gnu/libtool/libtool-1.5.24.tar.gz wget http://ftp.gnu.org/gnu/bison/bison-2.3.tar.bz2 wget http://ftp.gnu.org/gnu/patch/patch-2.5.9.tar.gz wget http://flex.sourceforge.net/flex-2.5.35.tar.gz Build und Ausfuehrung analog lfs 6.3 patch -Np1 -i ../texinfo-4.9-multibyte-1.patch patch -Np1 -i ../texinfo-4.9-tempfile_fix-1.patch export CFLAGS='-O2 -march=i486' export CXXFLAGS="${CFLAGS}" build ./configure --prefix=/usr \ --build=i486-pc-linux-gnu \ --host=i486-pc-linux-gnu make make check make DESTDIR=/public/$package install strip -R .note -R .comment bin/* strip -R .note -R .comment lib/* ### ohne lib*.a ######## Achtung /usr/lib/lib*.a darf nicht gestripped werden # 2010-04-09 (hbfl) # update autoconf-2.65 automake-1.11.1 ************************************************************************ ************************************************************************ # 2010-11-28 (hbfl # update with gcc-4.1.3 20080704 (prerelease) export CFLAGS='-O2 -march=i486' export CXXFLAGS="${CFLAGS}" build ./configure --prefix=/usr \ --build=i486-pc-linux-gnu \ --host=i486-pc-linux-gnu make make check m4-1.4.13 --------- All 74 tests passed (3 tests were not run) bison-2.4.3 ----------- 227 tests were successful. 16 tests were skipped. # libtool ist jetzt in einem eigenen Paket libltdl libtool-2.2.8 ------------- 93 tests behaved as expected. 13 tests were skipped. autoconf-2.68 ------------- 453 tests behaved as expected. 33 tests were skipped. # check dauert automake-1.11.1 --------------- All 682 tests behaved as expected (4 expected failures) (53 tests were not run) # check dauert flex-2.5.35 ----------- Tests succeeded: 46 Tests FAILED: 0 make-3.82 --------- 428 Tests in 105 Categories Complete ... No Failures :-) patch-2.6.1 ----------- All tests succeeded! texinfo-4.13a ------------- All 23 tests passed make install make DESTDIR=/public/4.1.3/texinfo install for filename in `find /public/4.1.3/texinfo/usr/{bin/*,lib/*.so.*} -type f` do echo $filename strip -R .note -R .comment "$filename" done ************************************************************************ ************************************************************************ # 2012-11-03 (hbfl # update with gcc-4.2.5 (prerelease) ist im gcc beschrieben # # 2013-01-13 (hbfl) # patch-2.7.1 # attr available in chroot # # require libattr-dev ./configure \ --prefix=/usr \ --build=i486-pc-linux-gnu \ --host=i486-pc-linux-gnu make make check XFAIL: dash-o-append ===================================================== All 33 tests behaved as expected (1 expected failure) (1 test was not run) ===================================================== make install ################################# make DESTDIR=/public/toolchain/patch/2.7.1 install for filename in `find /public/toolchain/patch/2.7.1/usr/bin/* -type f` do echo $filename strip -R .note -R .comment "$filename" done ############################## # 2013-05-16 (hbfl # update with gcc-4.5.4 ist im gcc beschrieben # 2013-07-92 (hbfl # update with gcc-4.5.4 # rebuild with ld-2.22 ist im gcc beschrieben