[arch-commits] CVS update of arch/build/base/gcc (PKGBUILD)

Jan de Groot jgc at archlinux.org
Mon Apr 30 05:43:46 EDT 2007


    Date: Monday, April 30, 2007 @ 05:43:46
  Author: jgc
    Path: /home/cvs-arch/arch/build/base/gcc

Modified: PKGBUILD (1.60 -> 1.61)

upgpkg: gcc 4.1.2-4
Update to latest 4.1 snapshot, add patches from Debian to work with the new gcj-eclipse gcc-gcj package


----------+
 PKGBUILD |   58 +++++++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 43 insertions(+), 15 deletions(-)


Index: arch/build/base/gcc/PKGBUILD
diff -u arch/build/base/gcc/PKGBUILD:1.60 arch/build/base/gcc/PKGBUILD:1.61
--- arch/build/base/gcc/PKGBUILD:1.60	Wed Feb 14 09:53:50 2007
+++ arch/build/base/gcc/PKGBUILD	Mon Apr 30 05:43:46 2007
@@ -1,37 +1,65 @@
-# $Id: PKGBUILD,v 1.60 2007/02/14 14:53:50 jgc Exp $
+# $Id: PKGBUILD,v 1.61 2007/04/30 09:43:46 jgc Exp $
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 pkgname=gcc
 pkgver=4.1.2
-pkgrel=3
+pkgrel=4
+_snapshot=4.1-20070423
 pkgdesc="The GNU Compiler Collection"
 arch=(i686 x86_64)
+license=('GPL' 'LGPL')
 url="http://gcc.gnu.org"
-depends=('glibc' 'binutils>=2.17')
+depends=('glibc>=2.5' 'binutils>=2.17')
 options=('nolibtool')
-source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,objc}-${pkgver}.tar.bz2
+source=(ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-{core,g++,objc}-${_snapshot}.tar.bz2
 	ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man-4.0.0.tar.bz2
-	DW_CFA_val.patch
-	gcc_pure64.patch)
-md5sums=('2af3fb599635219171c6ae1f3034888a' '75c6d5fa3415d614314caf0f509e8933'
-         'abda05c0ab99059e8f9e7a625361fd87' '2be86d2117c8fa7f9ec2845cc0660ab1'
-         '078680c207f7cd490044d4a53edf158d' '1ceaa49e3a1d9f984ecc2893c43f7425')
+	gcc_pure64.patch
+	gcc-expandv.dpatch
+	pr26885.dpatch
+	pr26864.dpatch
+	pr27227.dpatch
+	pr26208.dpatch
+	gcc-dwarf2-h.dpatch
+	pr9861-nojava.dpatch
+	gcc-unwind-r111705.dpatch
+	gcc-unwind-r120406.dpatch
+	gcc-r109242.dpatch
+	gcc-r109581.dpatch
+	gcc-4.1-x86-blended.dpatch
+	gcc-pfrs-2.dpatch)
 
 build() {
   export MAKEFLAGS="-j1"
-  cd ${startdir}/src/gcc-${pkgver}
+  cd ${startdir}/src/gcc-${_snapshot}
   # Don't install libiberty
   sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
 
   if [ "${CARCH}" = "x86_64" ]; then
     patch -Np1 -i ../gcc_pure64.patch || return 1
   fi
-  patch -Np0 -i ${startdir}/src/DW_CFA_val.patch || return 1
-
   # Don't run fixincludes
   sed -i -e 's@\./fixinc\.sh at -c true@' gcc/Makefile.in
-  mkdir ../gcc-build
-  cd ../gcc-build
-  ../gcc-${pkgver}/configure --prefix=/usr --enable-shared \
+
+  chmod +x ${startdir}/src/*.dpatch
+  ${startdir}/src/gcc-expandv.dpatch -patch
+  ${startdir}/src/pr26885.dpatch -patch
+  ${startdir}/src/pr26864.dpatch -patch
+  ${startdir}/src/pr27227.dpatch -patch
+  ${startdir}/src/pr26208.dpatch -patch
+  ${startdir}/src/gcc-dwarf2-h.dpatch -patch
+  ${startdir}/src/pr9861-nojava.dpatch -patch
+  ${startdir}/src/gcc-unwind-r111705.dpatch -patch
+  ${startdir}/src/gcc-unwind-r120406.dpatch -patch
+  ${startdir}/src/gcc-r109242.dpatch -patch
+  ${startdir}/src/gcc-r109581.dpatch -patch
+  ${startdir}/src/gcc-4.1-x86-blended.dpatch -patch
+  ${startdir}/src/gcc-pfrs-2.dpatch -patch
+  
+  echo ${pkgver} > gcc/BASE-VER
+
+  mkdir build
+  cd build
+
+  ../configure --prefix=/usr --enable-shared \
       --enable-languages=c,c++,objc --enable-threads=posix \
       --enable-__cxa_atexit  --disable-multilib --libdir=/usr/lib \
       --libexecdir=/usr/lib --enable-clocale=gnu




More information about the arch-commits mailing list