]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Zwischencommit fuer LFS.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 8 Oct 2006 14:39:28 +0000 (14:39 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 8 Oct 2006 14:39:28 +0000 (14:39 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@305 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

lfs/binutils
lfs/cleanup-toolchain
lfs/coreutils
lfs/fetchmail
lfs/gcc
lfs/logwatch
lfs/ncurses
lfs/perl
lfs/squid-graph
make.sh

index 408fdafb24a05243cc56a92ec027bd818d6b0f43..0f31ce844a965bad2f410ebcca2cc3b4098182c7 100644 (file)
@@ -38,8 +38,8 @@ DIR_APP    = $(DIR_SRC)/$(THISAPP)
 ifeq "$(ROOT)" ""
   TARGET = $(DIR_INFO)/$(THISAPP)
   EXTRA_CONFIG = --prefix=/usr --enable-shared --disable-nls
-  EXTRA_MAKE = tooldir=/usr LD_LIBRARY_PATH=/usr/lib
-  EXTRA_INSTALL = tooldir=/usr LD_LIBRARY_PATH=/usr/lib
+  EXTRA_MAKE = tooldir=/usr
+  EXTRA_INSTALL = tooldir=/usr
 else
 ifeq "$(PASS)" "1"
   TARGET = $(DIR_INFO)/$(THISAPP)-tools1
@@ -97,8 +97,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 ifeq "$(PASS)" "1"
        cd $(DIR_SRC)/binutils-build && make configure-host
 endif
-       # $(MAKETUNING) stil is disabled here
-       cd $(DIR_SRC)/binutils-build && make $(EXTRA_MAKE) 
+       cd $(DIR_SRC)/binutils-build && make $(EXTRA_MAKE) $(MAKETUNING)
        cd $(DIR_SRC)/binutils-build && make $(EXTRA_INSTALL) install
 ifeq "$(ROOT)" ""
        cp -v $(DIR_APP)/include/libiberty.h /usr/include
index a5cffbb2594c324b5c95c55cee5c1eac63dbb1ed..a818222025964d12ced80cef8016abcb33faeb53 100644 (file)
@@ -56,10 +56,9 @@ ifeq "$(PASS)" "1"
        mv -v /tools/i686-pc-linux-gnu/bin/{ld,ld-old}
        cp -v /tools/bin/{ld-new,ld}
        ln -sv /tools/bin/ld /tools/i686-pc-linux-gnu/bin/ld
-       /tools/bin/gcc -dumpspecs > /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs
+       gcc -dumpspecs > /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs
        sed 's@^/lib/ld-linux.so.2@/tools&@g' /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs > tempspecfile
        mv -vf tempspecfile /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs
-       GCC_INCLUDEDIR=/tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include
        find /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include/* -maxdepth 0 -xtype d -exec rm -rvf '{}' \;
        rm -vf `grep -l "DO NOT EDIT THIS FILE" /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include/*`
 endif
@@ -76,7 +75,7 @@ ifeq "$(PASS)" "3"
        ln -sv /tools/bin/ld /tools/i686-pc-linux-gnu/bin/ld
        gcc -dumpspecs | \
        perl -p -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g;' \
-           -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' > \
-           `dirname $(gcc --print-libgcc-file-name)`/specs
+           -e 's@\*startfile_prefix_spec:\n@$$_/usr/lib/ @g;' > \
+           /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs
 endif
        @$(POSTBUILD)
index 35731e6493b1c32b32cb0f030b5a26073ea62a0a..5c0284c7ed1305c2460e65f5230111515e20892e 100644 (file)
@@ -104,7 +104,7 @@ ifeq "$(ROOT)" ""
        mv -v /usr/bin/chroot /usr/sbin
        mv -v /usr/bin/{head,sleep,nice} /bin
        ln -sf test /bin/[
-       ln -sf ../../bin/install /usr/bin
+       #ln -sf ../../bin/install /usr/bin
        mv -f /bin/uname /bin/uname.bak
        echo '#!/bin/bash'                              >  /bin/uname
        echo '/bin/uname.bak $$* | sed 's/i.86/$(MACHINE)/g'' >> /bin/uname
index 43c0d5d6aff24bcbde509ec7e3797a77fe446849..d61174b6849a9abe61e6a0fddc530ad4200cff4a 100644 (file)
@@ -30,11 +30,11 @@ VER        = 6.3.4
 
 THISAPP    = fetchmail-$(VER)
 DL_FILE    = $(THISAPP).tar.bz2
-DL_FROM    = http://download2.berlios.de/fetchmail
+DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = fetchmail
-PAK_VER    = ipfire-beta1
+PAK_VER    = 1
 
 ###############################################################################
 # Top-level Rules
diff --git a/lfs/gcc b/lfs/gcc
index 0cfaf72ff730ab8ccabfca4cc5d702d02e2249e0..2679c35676a0eec8c5ab73957d99401fb503bb48 100644 (file)
--- a/lfs/gcc
+++ b/lfs/gcc
@@ -43,20 +43,16 @@ ifeq "$(ROOT)" ""
     --libexecdir=/usr/lib --enable-shared \
     --enable-threads=posix --enable-__cxa_atexit \
     --enable-clocale=gnu --enable-languages=c,c++ \
-    --disable-nls \
-    --host=i686-pc-linux-gnu \
-    --target=$(BUILDTARGET)
-# This is not taken from the LFS but a fix, 
-# because the compiler tries to do a cross-compile.
-  EXTRA_MAKE = LD_LIBRARY_PATH=/usr/lib
-  EXTRA_INSTALL = LD_LIBRARY_PATH=/usr/lib
+    --disable-nls
+  EXTRA_MAKE =
+  EXTRA_INSTALL =
 else
 ifeq "$(PASS)" "1"
   TARGET = $(DIR_INFO)/$(THISAPP)-tools1
   EXTRA_CONFIG = --prefix=/tools \
     --with-local-prefix=/tools --disable-nls --enable-shared \
     --enable-languages=c
-  EXTRA_MAKE = bootstrap #BOOT_LDFLAGS="-static"
+  EXTRA_MAKE = bootstrap BOOT_LDFLAGS="-static"
   EXTRA_INSTALL = 
 else
   TARGET = $(DIR_INFO)/$(THISAPP)-tools2
@@ -75,9 +71,9 @@ endif
 ###############################################################################
 objects = $(DL_FILE)
 
-$(DL_FILE)                             = $(DL_FROM)/$(DL_FILE)
+$(DL_FILE = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5                         = 6ff1af12c53cbb3f79b27f2d6a9a3d50
+$(DL_FILE)_MD5 = 6ff1af12c53cbb3f79b27f2d6a9a3d50
 
 install : $(TARGET)
 
index 1c02cd00c83968eb29a5292a7ee3fe519642ecd2..0bbb54e1982d926a548e2518ac49088fa7d15dad 100644 (file)
@@ -36,7 +36,7 @@ VER        = 6.1.2
 
 THISAPP    = logwatch-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
-DL_FROM    =  ftp://ftp.kaybee.org/pub/old/linux
+DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
index 691d4e5dd5429a3b1f90e52cbca8b8cfb9d730ff..c589c58693b46a83877a87a2e4886ed89c2250e0 100644 (file)
@@ -103,9 +103,9 @@ ifeq "$(ROOT)" ""
            ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a ; \
        done
        ln -sfv libncurses++w.a /usr/lib/libncurses++.a4
-       echo "INPUT(-lncursesw)" >/usr/lib/libcursesw.so &&
-       ln -sfv libncurses.so /usr/lib/libcurses.so &&
-       ln -sfv libncursesw.a /usr/lib/libcursesw.a &&
+       echo "INPUT(-lncursesw)" >/usr/lib/libcursesw.so
+       ln -sfv libncurses.so /usr/lib/libcurses.so
+       ln -sfv libncursesw.a /usr/lib/libcursesw.a
        ln -sfv libncurses.a /usr/lib/libcurses.a
 endif
        @rm -rf $(DIR_APP)
index 14294ccf012ec3996eb79639568d864e2dd1d98b..38ef2a326036aae43d487a2b54729c72e7dda038 100644 (file)
--- a/lfs/perl
+++ b/lfs/perl
@@ -84,13 +84,14 @@ ifneq "$(ROOT)" ""
 endif
 ifeq "$(ROOT)" ""
        cd $(DIR_APP) && ./configure.gnu --prefix=/usr -Dman1dir=/usr/share/man/man1 \
-               -Dman3dir=/usr/share/man/man3 -Dpager="/usr/bin/less -isR" \
-               -Dmyhostname=localhost
+               -Dman3dir=/usr/share/man/man3 -Dpager="/usr/bin/less -isR"
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
 else
-       cd $(DIR_APP) && ./configure.gnu --prefix=/tools -Dstatic_ext='Data/Dumper Fcntl IO POSIX' -Dmyhostname=localhost
-       cd $(DIR_APP) && make $(MAKETUNING) perl utilities
+       cd $(DIR_APP) && ./configure.gnu --prefix=/tools -Dstatic_ext='Data/Dumper Fcntl IO POSIX'
+       cd $(DIR_APP) && sed -i 's/^0$$//' makefile
+       cd $(DIR_APP) && sed -i 's/^0$$//' x2p/makefile
+       cd $(DIR_APP) && make perl utilities
        cd $(DIR_APP) && cp -v perl pod/pod2man /tools/bin
        cd $(DIR_APP) && mkdir -pv /tools/lib/perl5/$(VER)
        cd $(DIR_APP) && cp -Rv lib/* /tools/lib/perl5/$(VER)
index 6aca6db1065b7f8f362606d7548dcf1c3cab360d..11238df25c2a18bf74bcd018821a31f77dfca177 100644 (file)
 # Makefiles are based on LFSMake, which is                                    #
 # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com>                        #
 #                                                                             #
-# Modifications by:                                                           #
-# ??-12-2003 Mark Wormgoor < mark@wormgoor.com>                               #
-#          - Modified Makefile for IPCop build                                #
-#                                                                             #
-# $Id: squid-graph,v 1.3.2.2 2005/02/05 15:38:16 gespinasse Exp $
-#                                                                             #
 ###############################################################################
 
 ###############################################################################
@@ -36,7 +30,7 @@ VER        = 3.1
 
 THISAPP    = squid-graph-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
-DL_FROM    = http://squid-graph.securlogic.com/files/stable
+DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
diff --git a/make.sh b/make.sh
index dc07e006b2b72d2aba7b282b3598a8097cb26268..1d8ad9824a2f4316bed47409c83b16eec47be9bd 100644 (file)
--- a/make.sh
+++ b/make.sh
@@ -28,7 +28,7 @@ VERSION="2.0"                         # Version number
 SLOGAN="www.ipfire.eu"         # Software slogan
 CONFIG_ROOT=/var/ipfire                # Configuration rootdir
 NICE=10                                # Nice level
-MAX_RETRIES=3                          # prefetch/check loop
+MAX_RETRIES=1                          # prefetch/check loop
 KVER=`grep --max-count=1 VER lfs/linux | awk '{ print $3 }'`
 MACHINE=`uname -m`
 SVN_REVISION=`svn info | grep Revision | cut -c 11-`
@@ -177,10 +177,10 @@ prepareenv() {
 
     # Make all sources and proc available under lfs build
     mount --bind /dev            $BASEDIR/build/dev
-    mount  -t   devpts devpts    $BASEDIR/build/dev/pts
-    mount  -t   tmpfs  shm       $BASEDIR/build/dev/shm
-    mount  -t   proc   proc      $BASEDIR/build/proc
-    mount  -t   sysfs  sysfs     $BASEDIR/build/sys
+    mount --bind /dev/pts        $BASEDIR/build/dev/pts
+    mount --bind /dev/shm        $BASEDIR/build/dev/shm
+    mount --bind /proc           $BASEDIR/build/proc
+    mount --bind /sys            $BASEDIR/build/sys
     mount --bind $BASEDIR/cache  $BASEDIR/build/usr/src/cache
     mount --bind $BASEDIR/ccache $BASEDIR/build/usr/src/ccache
     mount --bind $BASEDIR/config $BASEDIR/build/usr/src/config
@@ -811,7 +811,7 @@ prefetch)
                mkdir $BASEDIR/cache
        fi
        mkdir -p $BASEDIR/log
-       echo "`date -u '+%b %e %T'`:Preload all source files" | tee -a $LOGFILE
+       echo -e "${BOLD}Preload all source files${NORMAL}" | tee -a $LOGFILE
        FINISHED=0
        cd $BASEDIR/lfs
        for c in `seq $MAX_RETRIES`; do