malfs mekanizma guncelleme

This commit is contained in:
root 2016-03-20 18:29:18 +02:00
parent 41b7505a8b
commit a9e9e21ee7
3 changed files with 7 additions and 14 deletions

View File

@ -987,7 +987,7 @@ chroot_gir(){
lfs_kontrol lfs_kontrol
unmount_islemi unmount_islemi
mount_islemi mount_islemi
chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' /bin/bash --login +h chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' /bin/bash --login
#chroot "$LFS" /usr/bin/env -i HOME=/root PS1='\u:\w\$ ' /bin/bash --login +h #chroot "$LFS" /usr/bin/env -i HOME=/root PS1='\u:\w\$ ' /bin/bash --login +h
} }

View File

@ -1,13 +1,11 @@
version=2.22 version=2.23
source=(\ source=(\
http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz
http://www.linuxfromscratch.org/patches/lfs/development/glibc-$version-upstream_i386_fix-1.patch
) )
build() build()
{ {
cd glibc-$version cd glibc-$version
patch -Np1 -i ../glibc-$version-upstream_i386_fix-1.patch
mkdir -v build mkdir -v build
cd build cd build
@ -15,7 +13,7 @@ cd build
../configure \ ../configure \
--prefix=/tools \ --prefix=/tools \
--host=$LFS_TGT \ --host=$LFS_TARGET \
--build=$(../scripts/config.guess) \ --build=$(../scripts/config.guess) \
--disable-profile \ --disable-profile \
--enable-kernel=2.6.32 \ --enable-kernel=2.6.32 \
@ -32,7 +30,7 @@ rm -rf /tools/share/info/dir
make install make install
echo 'main(){}' > dummy.c echo 'main(){}' > dummy.c
$LFS_TGT-gcc dummy.c $LFS_TARGET-gcc dummy.c
echo $(readelf -l a.out | grep ': /tools') echo $(readelf -l a.out | grep ': /tools')
rm -v dummy.c a.out rm -v dummy.c a.out
} }

View File

@ -1,16 +1,13 @@
# Description: The Glibc package contains the main C library. # Description: The Glibc package contains the main C library.
# URL: https://www.gnu.org/software/libc/ # URL: https://www.gnu.org/software/libc/
# Packagers: milis # Packagers: tnut at nutyx dot org
kernelversion=4.4 kernelversion=4.4
name=glibc name=glibc
version=2.22 version=2.23
release=1 release=1
source=(http://www.kernel.org/pub/linux/kernel/v4.x/linux-$kernelversion.tar.xz source=(http://www.kernel.org/pub/linux/kernel/v4.x/linux-$kernelversion.tar.xz
http://www.linuxfromscratch.org/patches/downloads/$name/glibc-$version-largefile-1.patch
http://www.linuxfromscratch.org/patches/downloads/$name/glibc-$version-fhs-1.patch http://www.linuxfromscratch.org/patches/downloads/$name/glibc-$version-fhs-1.patch
http://www.linuxfromscratch.org/patches/downloads/$name/glibc-$version-upstream_i386_fix-1.patch
http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz glibc.locales.supported ) http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz glibc.locales.supported )
build() { build() {
@ -26,8 +23,6 @@ cp -rv dest/include/* $PKG/usr/include
cd ../glibc-$version cd ../glibc-$version
patch -Np1 -i ../glibc-$version-fhs-1.patch patch -Np1 -i ../glibc-$version-fhs-1.patch
patch -Np1 -i ../glibc-$version-upstream_i386_fix-1.patch
patch -Np1 -i ../glibc-$version-largefile-1.patch
mkdir -v ../glibc-build mkdir -v ../glibc-build
cd ../glibc-build cd ../glibc-build