diff --git a/BaseBuild/toolchain/e2fsprogs b/BaseBuild/toolchain/e2fsprogs deleted file mode 100644 index e5fc234..0000000 --- a/BaseBuild/toolchain/e2fsprogs +++ /dev/null @@ -1,112 +0,0 @@ -#!/bin/bash -#Framework, welches ein komplettes Linux System aus den Sourcen erstellt -#dieses Framework wird im CVS Repository -#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt -# -#Lage dieser Datei im Archiv: $HeadURL: svn://odin.dmz.lan/Viitor/V962/ViitorMake/BaseBuild/toolchain/findutils $ -# -#(c) 2003 Harald Kueller, Germany -#This program is free software; you can redistribute it and/or -#modify ist under the terms of the GNU General Public License -#as published by the Free Software Foundation; either version -#2 of the License, or (at your option) any later version. -# -#This program is distributed in the hope that it will be useful, -#but WITHOUT ANY WARRANTY; without even the implied warranty of -#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -#See the GNU General Public License for more details. -# -#You should have received a copy of the GNU General Public License -#along with this program; if not write to the Free Software Foundation, -#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -#Dies ist ein Module zur Verwendung mit genpkg. Die Erzeugung eines -#Viitor Linux Packetes wird über die Funktionen premk, mk und postmk -#gesteuert. premk() dient zur Vorbereitung des Sourcecodes. Hier können -#diverse Änderungen am sourcecode (mit awk/sed usw.) vorgenommen werden -#mk() umfasst die source Konfiguration und das Übersetzten des source -#codes. Auch die Installation muß von mk erledigt werden. Hier gild dass -#die Installation immer nach $TMPROOT erfolgen soll (meisst kann das mit -#"make DESTDIR=$TMPROOT install" angestossen werden). postmk kann -#vor der packeterstellung noch einiges am installationtree ändern. postmk -#läuft nachdem die Packetabhängigkeiten erstellt wurden. -#Das Verhalten von genpkg kann über die Variable MKPKG gesteuert werden. -#Hier müssen FLAGS zur Steuerung gesetzt werden. Folgende Flags werden -#erkannt: -# -# 1 : Package Erzeugung erzwingen. Packet wird, auch wenn es schon -# vorhanden ist, ohne weitere rückfragen neu Erzeugt. -# 2 : Package Installation erzwingen. Installpkg wird mit -f aufgerufen. -# Das bewirkt, das installpkg keine rückfragen bei der installation -# Stellt, und das packet in jedemfall (neu) installiert. -# 4 : Sourcepacket nicht nach MAKEDIR entpacken. Ist dieses Flag gesetzt -# muss sich das Module selber um das Entpacken der sourcedateien kümmern. -# vor allem wichtig bei Packeten, für die es keine source.tgz gibt -# (z.B. aus dem CVS generierte Packete). -# 8 : Erstellung des Packetes aus $TMPROOT wird unterdrückt. Dies ist bei -# manchen Sonderfällen möglich - wenn sich z.B. der Packetnamen nicht -# aus dem Namen des sourcearchives ableiten lässt. Packet sollte in -# so einem Fall in der postmk() Funktion erstellt werden. -# 16 : Packet wird nicht installiert. Bei Packeten wie tar oder bash kann -# die installation mittelst installpkg probleme machen. -# 32 : Dependics File so erzeugen, das die Abhängigkeiten bei der installation -# erfüllt sein müssen. installpkg bricht in so einem fall bei fehlenden -# packeten die installation ab, und gibt nicht "nur" warnmeldungen aus. -# Wichtig bei packeten mit postinstallroutine, die software aus dem -# frisch installierten Packet verwendet (wie z.B. postgresql) -# 64 : sourcetree aufräumen nach packeterstellung unterbinden. -# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum -# kümmern - -#Module zur Erstellung des Packetes: -#Quelle der Source Archive: -#Kurzbeschreibung: -# -# -#Letzte Änderung von: $Author: kueller $ -#Datum der letzten Änderung: $Date: 2008-05-05 20:24:10 +0200 (Mo, 05 Mai 2008) $ -#Version der Datei: $Revision: 4467 $ -# -#$Log$ -#Revision 1.2 2006/08/16 12:58:34 kueller -#Umstellung CFLAGS -> BUILDOPTIONS. Macht ein saubereres optimieren des -#Systems moeglich -# -#Revision 1.1 2006/08/13 13:15:38 kueller -#Toolchain Module zum Build von CrossViitor Linux -# -# - -SRCPATH=Base/System -(( MKPKG = $MKPKG | 8 )) -(( MKPKG = $MKPKG | 16 )) - -premk() { - chmod 755 configure - if [ ${MK64BIT} == "true" ]; then - cp -v configure{,.orig} - sed -e "/libdir=.*\/lib/s@/lib@/lib64@g" configure.orig >configure - fi - mkdir ../build-e2fsprogs - cd ../build-e2fsprogs -} - -mk() { - CC="${CC} ${BUILDOPTIONS}" \ - ../e2fsprogs*/configure --host=$TARGET \ - --prefix=/tools \ - --enable-elf-shlibs \ - --with-linker=${LD} - make -j $NUMCPU - make -j $NUMCPU install - make -j $NUMCPU install-libs -} - -postmk() { - if [ ! -d $LFS/sbin ]; then - mkdir -p $LFS/sbin - fi - ln -sv /tools/sbin/{fsck.ext2,fsck.ext3,e2fsck} ${LFS}/sbin - cd .. - rm -r build-e2fsprogs -} diff --git a/BaseBuild/toolchain/m4 b/BaseBuild/toolchain/m4 index 6765ac9..75e2cde 100644 --- a/BaseBuild/toolchain/m4 +++ b/BaseBuild/toolchain/m4 @@ -72,14 +72,24 @@ SRCPATH=Base/Development (( MKPKG = $MKPKG | 16 )) premk() { - echo "Nothing to do for premk()" + cat > config.cache << EOF +gl_cv_func_btowc_eof=yes +gl_cv_func_mbrtowc_incomplete_state=yes +gl_cv_func_mbrtowc_sanitycheck=yes +gl_cv_func_mbrtowc_null_arg=yes +gl_cv_func_mbrtowc_retval=yes +gl_cv_func_mbrtowc_nul_retval=yes +gl_cv_func_wcrtomb_retval=yes +gl_cv_func_wctob_works=yes +EOF } mk() { CC="${CC} ${BUILDOPTIONS}" \ - ./configure --build=$HOSTSYS \ - --host=$TARGET \ - --prefix=/tools + ./configure --build=${HOSTSYS} \ + --host=${TARGET} \ + --prefix=/tools \ + --cache-file=config.cache make -j $NUMCPU make -j $NUMCPU install } diff --git a/BaseBuild/toolchain/make b/BaseBuild/toolchain/make index 25eb7a5..cc30ef9 100644 --- a/BaseBuild/toolchain/make +++ b/BaseBuild/toolchain/make @@ -87,8 +87,8 @@ premk() { mk() { CC="${CC} ${BUILDOPTIONS}" \ - ./configure --host=$TARGET \ - --build=$HOSTSYS \ + ./configure --host=${TARGET} \ + --build=${HOSTSYS} \ --prefix=/tools make -j $NUMCPU make -j $NUMCPU install diff --git a/BaseBuild/toolchain/patch b/BaseBuild/toolchain/patch index 25eb7a5..3b12025 100644 --- a/BaseBuild/toolchain/patch +++ b/BaseBuild/toolchain/patch @@ -82,14 +82,15 @@ SRCPATH=Base/Development (( MKPKG = $MKPKG | 16 )) premk() { - echo "Nothing to do for premk()" + echo "ac_cv_func_strnlen_working=yes" >config.cache } mk() { CC="${CC} ${BUILDOPTIONS}" \ - ./configure --host=$TARGET \ - --build=$HOSTSYS \ - --prefix=/tools + ./configure --host=${TARGET} \ + --build=${HOSTSYS} \ + --prefix=/tools \ + --cache-file=config.cache make -j $NUMCPU make -j $NUMCPU install } diff --git a/BaseBuild/toolchain/tar b/BaseBuild/toolchain/tar index 4cab18c..3cb21ac 100644 --- a/BaseBuild/toolchain/tar +++ b/BaseBuild/toolchain/tar @@ -84,15 +84,26 @@ SRCPATH=Base/Utilities (( MKPKG = $MKPKG | 8 )) (( MKPKG = $MKPKG | 16 )) +(( MKPKG = $MKPKG | 128 )) premk() { - echo "gl_cv_func_wcwidth_works=yes" >>config.cache + cat > config.cache << EOF +gl_cv_func_wcwidth_works=yes +gl_cv_func_btowc_eof=yes +ac_cv_func_malloc_0_nonnull=yes +ac_cv_func_realloc_0_nonnull=yes +gl_cv_func_mbrtowc_incomplete_state=yes +gl_cv_func_mbrtowc_nul_retval=yes +gl_cv_func_mbrtowc_null_arg=yes +gl_cv_func_mbrtowc_retval=yes +gl_cv_func_wcrtomb_retval=yes +EOF } mk() { CC="${CC} ${BUILDOPTIONS}" \ - ./configure --host=$TARGET \ - --build=$HOSTSYS \ + ./configure --host=${TARGET} \ + --build=${HOSTSYS} \ --prefix=/tools \ --cache-file=config.cache make -j $NUMCPU diff --git a/BaseBuild/toolchain/texinfo b/BaseBuild/toolchain/texinfo index 2a3d9e9..1cde8c6 100644 --- a/BaseBuild/toolchain/texinfo +++ b/BaseBuild/toolchain/texinfo @@ -87,8 +87,8 @@ premk() { mk() { CC="${CC} ${BUILDOPTIONS}" \ - ./configure --host=$TARGET \ - --build=$HOSTSYS \ + ./configure --host=${TARGET} \ + --build=${HOSTSYS} \ --prefix=/tools make -j $NUMCPU -C tools/gnulib/lib make -j $NUMCPU -C tools diff --git a/BaseBuild/toolchain/toolchain.dmk b/BaseBuild/toolchain/toolchain.dmk index 852a5b0..7d3c905 100644 --- a/BaseBuild/toolchain/toolchain.dmk +++ b/BaseBuild/toolchain/toolchain.dmk @@ -26,6 +26,5 @@ 16 toolchain/texinfo 16 toolchain/xz 16 toolchain/util-linux-ng -16 toolchain/e2fsprogs 16 toolchain/ViitorMake 16 toolchain/bash_profile diff --git a/BaseBuild/toolchain/util-linux-ng b/BaseBuild/toolchain/util-linux similarity index 92% rename from BaseBuild/toolchain/util-linux-ng rename to BaseBuild/toolchain/util-linux index a37f711..595a04f 100644 --- a/BaseBuild/toolchain/util-linux-ng +++ b/BaseBuild/toolchain/util-linux @@ -87,14 +87,12 @@ premk() { mk() { CC="${CC} ${BUILDOPTIONS}" \ - ./configure --build=$HOSTSYS \ - --host=$TARGET \ - --prefix=/tools - make -j $NUMCPU ARCH="" CPU="" -C disk-utils mkswap - make -j $NUMCPU ARCH="" CPU="" -C mount mount umount - make -j $NUMCPU ARCH="" CPU="" -C text-utils more - cp -v mount/{,u}mount text-utils/more /tools/bin - cp -v disk-utils/mkswap /tools/sbin + ./configure --build=${HOSTSYS} \ + --host=${TARGET} \ + --prefix=/tools \ + --disable-makeinstall-chown + make -j ${NUMCPU} + make -j ${NUMCPU} install } postmk() { diff --git a/BaseBuild/toolchain/xz b/BaseBuild/toolchain/xz index f41b7f1..55569ee 100644 --- a/BaseBuild/toolchain/xz +++ b/BaseBuild/toolchain/xz @@ -86,13 +86,10 @@ premk() { } mk() { - if [ $MK64BIT == "true" ]; then - ADDOPTIONS="--libdir=/tools/lib64" - fi CC="${CC} ${BUILDOPTIONS}" \ - ./configure --host=$TARGET \ - --build=$HOSTSYS \ - $ADDOPTIONS \ + ./configure --host=${TARGET} \ + --build=${HOSTSYS} \ + --libdir=/tools/${LIBDIR} \ --prefix=/tools make -j $NUMCPU make -j $NUMCPU install