Zwischencommit fuer LFS.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 8 Oct 2006 18:05:04 +0000 (18:05 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 8 Oct 2006 18:05:04 +0000 (18:05 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@306 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

lfs/autoconf
lfs/bzip2
lfs/ncurses
lfs/perl
make.sh

index 9244fc0..9472aba 100644 (file)
@@ -70,7 +70,7 @@ $(subst %,%_MD5,$(objects)) :
 
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
-       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_APP) && ./configure --prefix=/usr --disable-nls
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
index fb7c0b3..6f53ed4 100644 (file)
--- a/lfs/bzip2
+++ b/lfs/bzip2
@@ -47,9 +47,9 @@ endif
 
 objects = $(DL_FILE)
 
-$(DL_FILE)                        = $(DL_FROM)/$(DL_FILE)
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5                    = 8a716bebecb6e647d2e8a29ea5d8447f
+$(DL_FILE)_MD5 = 8a716bebecb6e647d2e8a29ea5d8447f
 
 install : $(TARGET)
 
@@ -86,12 +86,12 @@ ifeq "$(ROOT)" ""
        cd $(DIR_APP) && make clean
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
-       cp -v bzip2-shared /bin/bzip2
-       cp -av libbz2.so* /lib
-       ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
+       cd $(DIR_APP) && cp -v bzip2-shared /bin/bzip2
+       cd $(DIR_APP) && cp -av libbz2.so* /lib
+       ln -sfv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
        rm -v /usr/bin/{bunzip2,bzcat,bzip2}
-       ln -sv bzip2 /bin/bunzip2
-       ln -sv bzip2 /bin/bzcat
+       ln -sfv bzip2 /bin/bunzip2
+       ln -sfv bzip2 /bin/bzcat
 else
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make PREFIX=/tools install
index c589c58..1d6d0c7 100644 (file)
@@ -98,9 +98,9 @@ ifeq "$(ROOT)" ""
        mv -v /usr/lib/libncursesw.so.5* /lib
        ln -sfv ../../lib/libncursesw.so.5 /usr/lib/libncursesw.so
        cd $(DIR_APP) && for lib in curses ncurses form panel menu ; do \
-           rm -vf /usr/lib/lib${lib}.so ; \
-           echo "INPUT(-l${lib}w)" >/usr/lib/lib${lib}.so ; \
-           ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a ; \
+           rm -vf /usr/lib/lib$${lib}.so ; \
+           echo "INPUT(-l$${lib}w)" >/usr/lib/lib$${lib}.so ; \
+           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
index 38ef2a3..2e4ba2d 100644 (file)
--- a/lfs/perl
+++ b/lfs/perl
@@ -85,6 +85,8 @@ 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"
+       cd $(DIR_APP) && sed -i 's/^0$$//' makefile
+       cd $(DIR_APP) && sed -i 's/^0$$//' x2p/makefile
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
 else
diff --git a/make.sh b/make.sh
index 1d8ad98..d920f17 100644 (file)
--- a/make.sh
+++ b/make.sh
@@ -191,6 +191,9 @@ prepareenv() {
     mount --bind $BASEDIR/log    $BASEDIR/build/usr/src/log
     mount --bind $BASEDIR/src    $BASEDIR/build/usr/src/src
 
+    # This is a temporary hack!!!
+    cp -f /bin/hostname /tools/bin/hostname 2>/dev/null
+
     # Run LFS static binary creation scripts one by one
     export CCACHE_DIR=$BASEDIR/ccache
     export CCACHE_HASHDIR=1