]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Install-Initrd finalisiert..
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Tue, 7 Nov 2006 20:23:46 +0000 (20:23 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Tue, 7 Nov 2006 20:23:46 +0000 (20:23 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@342 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

lfs/kbd
lfs/newt
lfs/pciutils
lfs/slang
src/patches/kbd-1.12-more-programs-1.patch [new file with mode: 0644]
src/patches/slang-2.0.6-uclibc.patch [new file with mode: 0644]

diff --git a/lfs/kbd b/lfs/kbd
index 7508d0976e89321a38d6277366313d73b87090b0..ac7c91c112435a0353cabedf8b4429f3d85fdb39 100644 (file)
--- a/lfs/kbd
+++ b/lfs/kbd
@@ -77,10 +77,11 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-more-programs-1.patch
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-backspace-1.patch
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-gcc4_fixes-1.patch
 ifeq "$(LFS_PASS)" "install"
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-backspace-1.patch
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-gcc4_fixes-1.patch
 ifeq "$(LFS_PASS)" "install"
-       cd $(DIR_APP) && CFLAGS="-Os -fomit-frame-pointer" CC=/usr/bin/gcc ./configure --disable-nls
+       cd $(DIR_APP) && CFLAGS="-Os -fomit-frame-pointer" ./configure --disable-nls
        cd $(DIR_APP)/src && make CFLAGS="-Os -fomit-frame-pointer" DATA_DIR=/lib/kbd BINDIR=/bin setfont kbd_mode dumpkeys loadkeys loadunimap showconsolefont
        cd $(DIR_APP)/src && install -m 0755 setfont loadunimap kbd_mode dumpkeys loadkeys showconsolefont unicode_start unicode_stop /install/initrd/bin
        mkdir -p /install/initrd/lib/kbd/consolefonts
        cd $(DIR_APP)/src && make CFLAGS="-Os -fomit-frame-pointer" DATA_DIR=/lib/kbd BINDIR=/bin setfont kbd_mode dumpkeys loadkeys loadunimap showconsolefont
        cd $(DIR_APP)/src && install -m 0755 setfont loadunimap kbd_mode dumpkeys loadkeys showconsolefont unicode_start unicode_stop /install/initrd/bin
        mkdir -p /install/initrd/lib/kbd/consolefonts
index 61be6830f5e926625dcc4c46aa230baa5c08d5a2..598e9896eb98e475e0065361c8f8923d4ca967d1 100644 (file)
--- a/lfs/newt
+++ b/lfs/newt
@@ -85,9 +85,9 @@ ifeq "$(LFS_PASS)" "install"
        cd $(DIR_APP) && ./configure --without-gpm-support --host $(MACHINE)-uclibc
        cd $(DIR_APP) && sed -i 's%^CFLAGS.*$$%CFLAGS = -Os -fomit-frame-pointer -Wall -D_GNU_SOURCE -DUTF8 -I/install/include/slang%' Makefile
        cd $(DIR_APP) && make libnewt.a
        cd $(DIR_APP) && ./configure --without-gpm-support --host $(MACHINE)-uclibc
        cd $(DIR_APP) && sed -i 's%^CFLAGS.*$$%CFLAGS = -Os -fomit-frame-pointer -Wall -D_GNU_SOURCE -DUTF8 -I/install/include/slang%' Makefile
        cd $(DIR_APP) && make libnewt.a
-       -mkdir -p /install/$(MACHINE)-uClibc/{include,lib}
-       cd $(DIR_APP) && install -m 0644 libnewt.a /install/$(MACHINE)-uClibc/lib/libnewt.a
-       cd $(DIR_APP) && install -m 0644 newt.h /install/$(MACHINE)-uClibc/include/newt.h
+       -mkdir -p /opt/$(MACHINE)-uClibc/{include,lib}
+       cd $(DIR_APP) && install -m 0644 libnewt.a /opt/$(MACHINE)-uClibc/lib/libnewt.a
+       cd $(DIR_APP) && install -m 0644 newt.h /opt/$(MACHINE)-uClibc/include/newt.h
 else
        cd $(DIR_APP) && RPM_OPT_FLAGS="$(CFLAGS) -DUTF8" ./configure --without-gpm-support
        cd $(DIR_APP) && sed -i \
 else
        cd $(DIR_APP) && RPM_OPT_FLAGS="$(CFLAGS) -DUTF8" ./configure --without-gpm-support
        cd $(DIR_APP) && sed -i \
index 9fac85261945a7f735abbdfd608eb4548675472d..9946d732bb109d448317d9525d302a0a2fc74cf7 100644 (file)
@@ -82,9 +82,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 ifeq "$(LFS_PASS)" "install"
        cd $(DIR_APP)/lib && CFLAGS="-Os -fomit-frame-pointer" ./configure
        cd $(DIR_APP)/lib && CFLAGS="-Os -fomit-frame-pointer" make $(MAKETUNING)
 ifeq "$(LFS_PASS)" "install"
        cd $(DIR_APP)/lib && CFLAGS="-Os -fomit-frame-pointer" ./configure
        cd $(DIR_APP)/lib && CFLAGS="-Os -fomit-frame-pointer" make $(MAKETUNING)
-       -mkdir -p /install/$(MACHINE)-uClibc/include/pci
-       cd $(DIR_APP) && install -m 0644 lib/libpci.a /install/$(MACHINE)-uClibc/lib
-       cd $(DIR_APP) && install -m 0644 lib/{config,header,pci}.h /install/$(MACHINE)-uClibc/include/pci
+       -mkdir -p /opt/$(MACHINE)-uClibc/include/pci
+       cd $(DIR_APP) && install -m 0644 lib/libpci.a /opt/$(MACHINE)-uClibc/lib
+       cd $(DIR_APP) && install -m 0644 lib/{config,header,pci}.h /opt/$(MACHINE)-uClibc/include/pci
 else
        cd $(DIR_APP) && make PREFIX=/usr $(MAKETUNING)
        cd $(DIR_APP) && make PREFIX=/usr install
 else
        cd $(DIR_APP) && make PREFIX=/usr $(MAKETUNING)
        cd $(DIR_APP) && make PREFIX=/usr install
index 7aad756417c0504e1b556ff4b6c22d7c6f0e82d4..371218b809da1ebfd23f354dcb98c6050764c88f 100644 (file)
--- a/lfs/slang
+++ b/lfs/slang
@@ -78,9 +78,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
 ifeq "$(LFS_PASS)" "install"
        cd $(DIR_APP) && ./configure --prefix=""
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
 ifeq "$(LFS_PASS)" "install"
        cd $(DIR_APP) && ./configure --prefix=""
-       cd $(DIR_APP) && make $(MAKETUNING) elf
-       cd $(DIR_APP)/src && make install-elf DESTDIR="/opt/$(MACHINE)-uClibc"
-       rm -vf /opt/$(MACHINE)-uClibc/lib/libslang.so*
+       cd $(DIR_APP)/src && patch < $(DIR_SRC)/src/patches/slang-$(VER)-uclibc.patch
+       cd $(DIR_APP)/src && make $(MAKETUNING)
+       cd $(DIR_APP)/src && make install DESTDIR="/opt/$(MACHINE)-uClibc"
 else
        cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc
        cd $(DIR_APP) && make $(MAKETUNING)
 else
        cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc
        cd $(DIR_APP) && make $(MAKETUNING)
diff --git a/src/patches/kbd-1.12-more-programs-1.patch b/src/patches/kbd-1.12-more-programs-1.patch
new file mode 100644 (file)
index 0000000..227abed
--- /dev/null
@@ -0,0 +1,46 @@
+Submitted By: Greg Schafer <greg at linuxfromscratch dot org>
+Date: 2004-01-07
+Initial Package Version: 1.10
+Origin: LFS Book and Anderson Lizardo <lizardo at linuxfromscratch dot org>
+        (based on kbd-1.08-more-programs.patch)
+Description: Install additional programs included in kbd package,
+             including their manpages. Note: setlogcons does not have
+             a manpage.
+
+diff -Naur kbd-1.10.orig/man/Makefile kbd-1.10/man/Makefile
+--- kbd-1.10.orig/man/Makefile 2002-10-11 22:12:53.000000000 +0000
++++ kbd-1.10/man/Makefile      2004-01-07 02:36:13.471404128 +0000
+@@ -7,6 +7,9 @@
+               install -d -m 755 $(MANDIR)/$$i; \
+               install -m 644 $$i/*.[0-9] $(MANDIR)/$$i; \
+       done
++      install -d -m 755 $(MANDIR)/man8
++      install -m 644 man8misc/setvesablank.8 $(MANDIR)/man8
++      install -m 644 man8misc/getunimap.8 $(MANDIR)/man8
+       rm -f $(MANDIR)/man5/keytables.5
+ clean:
+diff -Naur kbd-1.10.orig/src/Makefile.in kbd-1.10/src/Makefile.in
+--- kbd-1.10.orig/src/Makefile.in      2004-01-03 17:53:06.000000000 +0000
++++ kbd-1.10/src/Makefile.in   2004-01-07 02:36:44.706655648 +0000
+@@ -46,8 +46,9 @@
+ OLDPROGS= mapscrn loadunimap
+ # Not installed by default
+-MISC    = screendump setlogcons setvesablank spawn_console spawn_login \
+-        getunimap clrunimap outpsfheader setpalette
++#MISC    = screendump setlogcons setvesablank spawn_console spawn_login \
++#       getunimap clrunimap outpsfheader setpalette
++MISC     = setlogcons setvesablank getunimap
+ # Installed by default
+ SHCMDS  = unicode_start unicode_stop
+@@ -73,7 +74,7 @@
+ install:      all
+       install -d -m 0755 $(BINDIR) $(LOADKEYS_BINDIR)
+       install -s -m 0755 $(setowner) $(PROGS) $(OLDPROGS) $(BINDIR)
+-#     install -s -m 0755 $(setowner) $(MISC) $(BINDIR)
++      install -s -m 0755 $(setowner) $(MISC) $(BINDIR)
+       install -c -m 0755 $(setowner) $(SHCMDS) $(BINDIR)
+       for i in psfaddtable psfgettable psfstriptable; do \
+               rm -f $(BINDIR)/$$i; ln -s psfxtable $(BINDIR)/$$i; \
diff --git a/src/patches/slang-2.0.6-uclibc.patch b/src/patches/slang-2.0.6-uclibc.patch
new file mode 100644 (file)
index 0000000..3e5d95b
--- /dev/null
@@ -0,0 +1,11 @@
+--- slcommon.c.tmp     2006-11-07 22:53:31.000000000 +0000
++++ slcommon.c 2006-11-07 17:56:04.000000000 +0000
+@@ -191,7 +191,7 @@
+    return p;
+ }
+-#if !defined(HAVE_ISSETUGID) && defined(__GLIBC__) && (__GLIBC__ >= 2)
++#if 0
+ extern int __libc_enable_secure;
+ # define HAVE___LIBC_ENABLE_SECURE 1
+ #endif