summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-04-28 16:56:01 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-04-28 16:56:01 -0300
commitac3cba40fe593c5e946ddfe2e43b43151eacd5e6 (patch)
tree01da08664f538e2f66166b9d3ca49d8b0c71a639
parentfa720c332b8ed642441b8d8885142e9eac25f460 (diff)
toolchain
-rw-r--r--core/binutils/PKGBUILD25
-rw-r--r--core/glibc/PKGBUILD32
-rw-r--r--core/linux-api-headers/PKGBUILD11
3 files changed, 39 insertions, 29 deletions
diff --git a/core/binutils/PKGBUILD b/core/binutils/PKGBUILD
index 30ac1896f..61010099b 100644
--- a/core/binutils/PKGBUILD
+++ b/core/binutils/PKGBUILD
@@ -4,9 +4,9 @@
# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
pkgname=binutils
-pkgver=2.21
+pkgver=2.21.51
pkgrel=6
-_date=20110326
+_date=20110428
pkgdesc="A set of programs to assemble and manipulate binary and object files"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/binutils/"
@@ -16,8 +16,9 @@ depends=('glibc>=2.13' 'zlib')
makedepends=('dejagnu')
options=('!libtool' '!distcc' '!ccache')
install=binutils.install
-source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
-md5sums=('884dcbc87d4722b152aea72312356da1')
+#source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
+#md5sums=('884dcbc87d4722b152aea72312356da1')
+source=(ftp://sourceware.org/pub/$pkgname/snapshots/$pkgname-$pkgver.tar.bz2)
mksource() {
mkdir ${pkgname}-${_date}
@@ -31,17 +32,19 @@ mksource() {
build() {
cd ${srcdir}
- mkdir binutils-build && cd binutils-build
+ ln -s binutils-$pkgver binutils
+ mkdir binutils-build && cd binutils-build
[[ $CARCH == "x86_64" ]] && CONFIGFLAG="--enable-64-bit-bfd --disable-multilib"
+ [[ $CARCH == "mips64el" ]] && CONFIGFLAG="--disable-nls --disable-multilib"
- ${srcdir}/binutils/configure --prefix=/usr \
- --enable-ld=default --enable-gold \
- --enable-plugins --enable-threads \
- --enable-shared $CONFIGFLAG
+ ${srcdir}/binutils/configure --prefix=/usr \
+ --enable-ld=default --enable-gold \
+ --enable-plugins --enable-threads \
+ --enable-shared $CONFIGFLAG
# This checks the host environment and makes sure all the necessary tools are available to compile Binutils.
- make configure-host
+ make configure-host
make tooldir=${pkgdir}/usr
}
@@ -81,3 +84,5 @@ package() {
echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" >${pkgdir}/usr/lib/libbfd.so
echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" >${pkgdir}/usr/lib/libopcodes.so
}
+
+md5sums=('0d06cb7a0b58ff6108adeacc72be2972')
diff --git a/core/glibc/PKGBUILD b/core/glibc/PKGBUILD
index 1a3dace84..4be9dd5a7 100644
--- a/core/glibc/PKGBUILD
+++ b/core/glibc/PKGBUILD
@@ -20,6 +20,7 @@ backup=(etc/locale.gen
options=('!strip')
install=glibc.install
source=(ftp://ftp.archlinux.org/other/glibc/${pkgname}-${pkgver}_${_glibcdate}.tar.xz
+ ftp://ftp.gnu.org/gnu/glibc/${pkgname}-ports-${pkgver}.tar.bz2
glibc-2.10-dont-build-timezone.patch
glibc-2.10-bz4781.patch
glibc-__i686.patch
@@ -30,17 +31,6 @@ source=(ftp://ftp.archlinux.org/other/glibc/${pkgname}-${pkgver}_${_glibcdate}.t
nscd
locale.gen.txt
locale-gen)
-md5sums=('b7b17d9c6b5b71b5e5322e04ca63c190'
- '4dadb9203b69a3210d53514bb46f41c3'
- '0c5540efc51c0b93996c51b57a8540ae'
- '40cd342e21f71f5e49e32622b25acc52'
- 'a3ac6f318d680347bb6e2805d42b73b2'
- 'b042647ea7d6f22ad319e12e796bd13e'
- '24dfab6fd244f3773523412588ecc52c'
- '7d0154b7e17ea218c9fa953599d24cc4'
- 'b587ee3a70c9b3713099295609afde49'
- '07ac979b6ab5eeb778d55f041529d623'
- '476e9113489f93b348b21e144b6a8fcf')
mksource() {
git clone git://sourceware.org/git/glibc.git
@@ -90,12 +80,18 @@ build() {
export CFLAGS="${CFLAGS} -mno-tls-direct-seg-refs"
fi
+ if [[ ${CARCH} = "mips64el" ]]; then
+ # mips64el is only supported out of tree.
+ mv ${srcdir}/${pkgname}-ports-${pkgver} ${srcdir}/glibc/ports
+ extra_addons=",ports"
+ fi
+
echo "slibdir=/lib" >> configparms
${srcdir}/glibc/configure --prefix=/usr \
--libdir=/usr/lib --libexecdir=/usr/lib \
--with-headers=/usr/include \
- --enable-add-ons=nptl,libidn \
+ --enable-add-ons=nptl,libidn$extra_addons \
--enable-kernel=2.6.27 \
--with-tls --with-__thread \
--enable-bind-now --without-gd \
@@ -166,3 +162,15 @@ package() {
lib/{libmemusage,libpcprofile,libSegFault}.so \
usr/lib/{pt_chown,gconv/*.so}
}
+md5sums=('b7b17d9c6b5b71b5e5322e04ca63c190'
+ '483f37cfdd619e81d8ca9e9d713944b5'
+ '4dadb9203b69a3210d53514bb46f41c3'
+ '0c5540efc51c0b93996c51b57a8540ae'
+ '40cd342e21f71f5e49e32622b25acc52'
+ 'a3ac6f318d680347bb6e2805d42b73b2'
+ 'b042647ea7d6f22ad319e12e796bd13e'
+ '24dfab6fd244f3773523412588ecc52c'
+ '7d0154b7e17ea218c9fa953599d24cc4'
+ 'b587ee3a70c9b3713099295609afde49'
+ '07ac979b6ab5eeb778d55f041529d623'
+ '476e9113489f93b348b21e144b6a8fcf')
diff --git a/core/linux-api-headers/PKGBUILD b/core/linux-api-headers/PKGBUILD
index 44ee659ca..d0d732db9 100644
--- a/core/linux-api-headers/PKGBUILD
+++ b/core/linux-api-headers/PKGBUILD
@@ -14,21 +14,17 @@ license=('GPL2')
provides=("kernel-headers=${pkgver}")
conflicts=('kernel-headers')
replaces=('kernel-headers')
-source=(http://www.kernel.org/pub/linux/kernel/v2.6/linux-${_basever}.tar.bz2
- http://www.kernel.org/pub/linux/kernel/v2.6/patch-${pkgver}.bz2)
-md5sums=('7d471477bfa67546f902da62227fa976'
- 'bd2be4d0465345e4e9355d6773f5f6fe')
+source=(http://www.fsfla.org/svnwiki/selibre/linux-libre/download/releases/${pkgver}-libre/linux-${pkgver}-libre.tar.bz2)
build() {
- cd ${srcdir}/linux-${_basever}
- [[ $pkgver != $_basever ]] && patch -Np1 -i ${srcdir}/patch-${pkgver}
+ cd ${srcdir}/linux-${pkgver}
make mrproper
make headers_check
}
package() {
- cd ${srcdir}/linux-${_basever}
+ cd ${srcdir}/linux-${pkgver}
make INSTALL_HDR_PATH=${pkgdir}/usr headers_install
# use headers from libdrm
@@ -37,3 +33,4 @@ package() {
# clean-up unnecessary files generated during install
find ${pkgdir} -name .install -or -name ..install.cmd | xargs rm -f
}
+md5sums=('343617f67979845d9320b890437af930')