summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/gcc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/gcc/PKGBUILD')
-rw-r--r--abs/core-testing/gcc/PKGBUILD57
1 files changed, 28 insertions, 29 deletions
diff --git a/abs/core-testing/gcc/PKGBUILD b/abs/core-testing/gcc/PKGBUILD
index 40fd4b6..1cec41a 100644
--- a/abs/core-testing/gcc/PKGBUILD
+++ b/abs/core-testing/gcc/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 82472 2010-06-11 13:12:15Z allan $
+# $Id: PKGBUILD 87242 2010-08-11 12:46:24Z allan $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Maintainer: Allan McRae <allan@archlinux.org>
@@ -6,31 +6,30 @@
# NOTE: libtool requires rebuilt with each new gcc version
pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc' 'gcc-ada')
-pkgver=4.5.0
-pkgrel=6
-_snapshot=4.5-20100610
-_libstdcppmanver=20100312 # Note: check source directory name when updating this
+pkgver=4.5.1
+pkgrel=2
+#_snapshot=4.5-20100610
+_libstdcppmanver=20100719 # Note: check source directory name when updating this
pkgdesc="The GNU Compiler Collection"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'custom')
url="http://gcc.gnu.org"
-makedepends=('binutils>=2.20.1' 'libmpc>=0.8.2-2' 'cloog-ppl>=0.15.8' 'libelf' 'gcc-ada')
+makedepends=('binutils>=2.20.1' 'libmpc>=0.8.2-2' 'cloog-ppl>=0.15.9-2' 'elfutils' 'gcc-ada')
options=('!libtool' '!emptydirs')
-source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,fortran,objc,ada}-${pkgver}.tar.bz2
- ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-{core,g++,fortran,objc,ada}-${_snapshot}.tar.bz2
- ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man.${_libstdcppmanver}.tar.bz2
+source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,fortran,objc,ada}-${pkgver}.tar.bz2
+ #ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-{core,g++,fortran,objc,ada}-${_snapshot}.tar.bz2
+ ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-api.${_libstdcppmanver}.man.tar.bz2
gcc_pure64.patch
- gcc-hash-style-both.patch
- r160561.patch)
-md5sums=('d0c6573f18e61d0a6c6fe742066346cd'
- '4c5369d27b8cb4c4e447553f064d0f16'
- '2c191ab600e600c774a65674c542e210'
- 'a569128d6daf741b242e39f5c24debe4'
- 'a7527896c33759ccc40bb82173f8f27f'
- 'f9a21b9dfc174f49a09ddaacfd3ac78f'
+ gcc-hash-style-both.patch)
+md5sums=('dc8959e31b01a65ce10d269614815054'
+ 'b294953ff0bb2f20c7acb2bf005d832a'
+ '7567c2f8df8a8bf61b48fe414b88de65'
+ '3c11b7037896e967eddf8178af2ddd98'
+ 'c92111e2e22fc60d1e0adb1b5c7fa4f9'
+ '226ae0c6364cfe2c1f7ac88d06088d5a'
'4030ee1c08dd1e843c0225b772360e76'
- '6fd395bacbd7b6e47c7b74854b478363'
- '79cb26e66eb2502171ef69438fa8666d')
+ '6fd395bacbd7b6e47c7b74854b478363')
+
if [ -n "${_snapshot}" ]; then
_basedir="${srcdir}/gcc-${_snapshot}"
@@ -46,6 +45,9 @@ build() {
cd ${_basedir}
+ # "Add" ppl-0.11 compatibility
+ sed -i "/ppl_minor_version=/s#10#11#" configure
+
# Do not install libiberty
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
@@ -53,12 +55,9 @@ build() {
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
if [ "${CARCH}" = "x86_64" ]; then
- patch -Np1 -i ../gcc_pure64.patch || return 1
+ patch -Np1 -i ../gcc_pure64.patch
fi
- patch -Np0 -i ${srcdir}/gcc-hash-style-both.patch || return 1
-
- # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44258
- patch -Np1 -i ${srcdir}/r160561.patch || return 1
+ patch -Np0 -i ${srcdir}/gcc-hash-style-both.patch
echo ${pkgver} > gcc/BASE-VER
@@ -71,14 +70,14 @@ build() {
--with-system-zlib --with-ppl --with-cloog \
--libdir=/usr/lib --libexecdir=/usr/lib \
--mandir=/usr/share/man --infodir=/usr/share/info
- make || return 1
+ make
}
package_gcc-libs()
{
pkgdesc="Runtime libraries shipped by GCC for C and C++ languages"
groups=('base')
- depends=('glibc>=2.12-4')
+ depends=('glibc>=2.11.1-2')
install=gcc-libs.install
cd ${_basedir}/build
@@ -105,14 +104,14 @@ package_gcc-libs()
package_gcc()
{
- depends=('binutils>=2.20.1' 'libmpc>=0.8.1-2' 'cloog-ppl>=0.15.8' 'libelf')
+ depends=('binutils>=2.20.1' 'libmpc>=0.8.1-2' 'cloog-ppl>=0.15.9-2' 'elfutils')
groups=('base-devel')
install=gcc.install
cd ${_basedir}/build
# much, much easier to install the lot and clean-up the mess
- make -j1 DESTDIR=${pkgdir} install || return 1
+ make -j1 DESTDIR=${pkgdir} install
rm $pkgdir/usr/bin/{*gfortran,gnat*}
rm $pkgdir/usr/lib/gcc/$CHOST/${pkgver}/{ada{include,lib},finclude,include/objc}/*
rm $pkgdir/usr/lib/gcc/$CHOST/${pkgver}/{cc1obj{,plus},f951,gnat1,libgfortranbegin.a}
@@ -158,7 +157,7 @@ EOF
# install the libstdc++ man pages
install -dm755 ${pkgdir}/usr/share/man/man3
- install -m644 ${srcdir}/libstdc++-man.${_libstdcppmanver}/man3/* \
+ install -m644 ${srcdir}/libstdc++-api-${_libstdcppmanver}.man/man3/* \
${pkgdir}/usr/share/man/man3/
# deal with conflicts...
rm -f ${pkgdir}/usr/share/man/man3/{ctime,queue,random,regex,string}.3