Core PKG fixes

This commit is contained in:
Mike Staszel 2010-02-09 08:19:06 -06:00
parent df19dcfd0a
commit 97fb4112f3
3 changed files with 81 additions and 80 deletions

View file

@ -1,4 +1,4 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com> # Maintainer: Mike Staszel <mikestaszel@plugapps.com>
pkgbase=gcc pkgbase=gcc
pkgname=('gcc' 'gcc-libs') pkgname=('gcc' 'gcc-libs')

View file

@ -1,34 +1,41 @@
# Maintainer: Mike Staszel <mikestaszel@plugapps.com> # Maintainer: Mike Staszel <mikestaszel@plugapps.com>
# toolchain build order: kernel-headers->glibc->binutils->gcc->binutils->glibc
# NOTE: valgrind requires rebuilt with each new glibc version
pkgname=glibc pkgname=glibc
pkgver=2.11 pkgver=2.11
pkgrel=2 pkgrel=4
install=glibc.install
backup=(etc/locale.gen
etc/nscd.conf)
pkgdesc="GNU C Library" pkgdesc="GNU C Library"
arch=('arm') arch=('arm')
license=('GPL' 'LGPL')
url="http://www.gnu.org/software/libc" url="http://www.gnu.org/software/libc"
groups=('base' 'small-base') license=('GPL' 'LGPL')
depends=('kernel-headers>=2.6.29' 'tzdata') groups=('base')
makedepends=('gcc>=4.4.0') depends=('kernel-headers>=2.6.32' 'tzdata')
source=(http://ftp.gnu.org/gnu/glibc/glibc-ports-$pkgver.tar.gz makedepends=('gcc>=4.4')
http://ftp.gnu.org/gnu/glibc/glibc-$pkgver.tar.gz replaces=('glibc-xen')
backup=(etc/locale.gen
etc/nscd.conf)
install=glibc.install
source=(http://ftp.gnu.org/gnu/glibc/$pkgname-$pkgver.tar.gz
http://ftp.gnu.org/gnu/glibc/$pkgname-ports-$pkgver.tar.gz
nscd nscd
locale.gen.txt locale.gen.txt
locale-gen) locale-gen)
md5sums=('55d50abb2d7c366bde6fb5e35e681f9b'
'7100d8ba81c52e90e7fb4795d2f736c9'
'b587ee3a70c9b3713099295609afde49'
'1dfde0f12c99c7ec4d4054caf8ee5373'
'476e9113489f93b348b21e144b6a8fcf')
build() { build() {
cd $srcdir/glibc-$pkgver ln -s $srcdir/glibc-2.11 $srcdir/glibc
ln -s $srcdir/glibc-ports-$pkgver . cd ${srcdir}/glibc
ln -s $srcdir/glibc-ports-2.11 $srcdir/glibc
install -dm755 $pkgdir/etc install -dm755 ${pkgdir}/etc
touch $pkgdir/etc/ld.so.conf touch ${pkgdir}/etc/ld.so.conf
# Remove timezone from build targets. This is supplied by the tzdata
# package.
sed -i '/^all-subdirs =/,/^$/s/timezone //' Makeconfig
mkdir glibc-build mkdir glibc-build
cd glibc-build cd glibc-build
@ -39,7 +46,7 @@ build() {
--host=arm-unknown-linux-gnueabi \ --host=arm-unknown-linux-gnueabi \
--build=arm-unknown-linux-gnueabi \ --build=arm-unknown-linux-gnueabi \
--enable-add-ons \ --enable-add-ons \
--enable-kernel=2.6.18 \ --enable-kernel=2.6.20 \
--enable-bind-now \ --enable-bind-now \
--disable-profile \ --disable-profile \
--disable-debug \ --disable-debug \
@ -52,36 +59,30 @@ build() {
--without-cvs \ --without-cvs \
--without-gd \ --without-gd \
--without-fp \ --without-fp \
--without-selinux || return 1 --without-selinux
make || return 1 make || return 1
make install_root="$pkgdir" install || return 1 make install_root=${pkgdir} install || return 1
rm -f "$pkgdir/etc/ld.so.cache" "$pkgdir/etc/ld.so.conf" \ # provided by kernel-headers
"$pkgdir/etc/localtime" rm ${pkgdir}/usr/include/scsi/scsi.h
rm ${pkgdir}/etc/ld.so.cache ${pkgdir}/etc/ld.so.conf ${pkgdir}/etc/localtime
install -dm755 ${pkgdir}/etc/rc.d install -dm755 ${pkgdir}/etc/rc.d
install -dm755 ${pkgdir}/usr/sbin install -dm755 ${pkgdir}/usr/sbin
install -dm755 ${pkgdir}/usr/lib/locale install -dm755 ${pkgdir}/usr/lib/locale
install -Dm644 "$srcdir/glibc-$pkgver/nscd/nscd.conf" \ install -m644 ${srcdir}/glibc/nscd/nscd.conf ${pkgdir}/etc/nscd.conf
"$pkgdir/etc/nscd.conf" install -m755 ${srcdir}/nscd ${pkgdir}/etc/rc.d/nscd
install -Dm755 "$srcdir/nscd" "$pkgdir/etc/rc.d/nscd" install -m755 ${srcdir}/locale-gen ${pkgdir}/usr/sbin
install -Dm755 "$srcdir/locale-gen" "$pkgdir/usr/sbin/locale-gen"
sed -i -e 's/^\tserver-user/#\tserver-user/' \ sed -i -e 's/^\tserver-user/#\tserver-user/' ${pkgdir}/etc/nscd.conf || return 1
"$pkgdir/etc/nscd.conf" || return 1
# Create /etc/locale.gen # create /etc/locale.gen
install -m644 "$srcdir/locale.gen.txt" "$pkgdir/etc/locale.gen" install -m644 ${srcdir}/locale.gen.txt ${pkgdir}/etc/locale.gen
sed -i 's|/| |g' "$srcdir/libc/localedata/SUPPORTED" sed -i "s|/| |g" ${srcdir}/glibc/localedata/SUPPORTED
sed -i 's|\\| |g' "$srcdir/libc/localedata/SUPPORTED" sed -i 's|\\| |g' ${srcdir}/glibc/localedata/SUPPORTED
sed -i 's|SUPPORTED-LOCALES=||' "$srcdir/libc/localedata/SUPPORTED" sed -i "s|SUPPORTED-LOCALES=||" ${srcdir}/glibc/localedata/SUPPORTED
cat "$srcdir/libc/localedata/SUPPORTED" >> "$pkgdir/etc/locale.gen" cat ${srcdir}/glibc/localedata/SUPPORTED >> ${pkgdir}/etc/locale.gen
sed -i 's|^|#|g' "$pkgdir/etc/locale.gen" sed -i "s|^|#|g" ${pkgdir}/etc/locale.gen
} }
md5sums=('7100d8ba81c52e90e7fb4795d2f736c9'
'55d50abb2d7c366bde6fb5e35e681f9b'
'b587ee3a70c9b3713099295609afde49'
'1dfde0f12c99c7ec4d4054caf8ee5373'
'476e9113489f93b348b21e144b6a8fcf')

View file

@ -1,7 +1,7 @@
# Maintainer: Mike Staszel <mikestaszel@openpogo.com> # Maintainer: Mike Staszel <mikestaszel@openpogo.com>
pkgname=kernel-headers pkgname=kernel-headers
pkgver=2.6.32.5 pkgver=2.6.32.7
pkgrel=1 pkgrel=1
pkgdesc="The Linux kernel headers" pkgdesc="The Linux kernel headers"
arch=('arm') arch=('arm')
@ -10,7 +10,7 @@ url="http://sheeva.with-linux.com/sheeva/"
depends=('coreutils' 'module-init-tools') depends=('coreutils' 'module-init-tools')
makedepends=('patch') makedepends=('patch')
source=(http://sheeva.with-linux.com/sheeva/$pkgver/sheeva-$pkgver-KernelHeaders.tar.gz) source=(http://sheeva.with-linux.com/sheeva/$pkgver/sheeva-$pkgver-KernelHeaders.tar.gz)
md5sums=('a0570e3e3cc115db98bb1da3bd69d2d6') md5sums=('622c9bfc4f5e88a4183da52bffa0cf6f')
build() { build() {
cp -R $startdir/src/usr $startdir/pkg/ cp -R $startdir/src/usr $startdir/pkg/