[arch-commits] Commit in gcc/repos (10 files)

2017-08-17 Thread Bartłomiej Piotrowski
Date: Thursday, August 17, 2017 @ 10:46:10
  Author: bpiotrowski
Revision: 302331

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  gcc/repos/staging-i686/
  gcc/repos/staging-i686/PKGBUILD
(from rev 302330, gcc/trunk/PKGBUILD)
  gcc/repos/staging-i686/Revert-eeb6872bf.patch
(from rev 302330, gcc/trunk/Revert-eeb6872bf.patch)
  gcc/repos/staging-i686/c89
(from rev 302330, gcc/trunk/c89)
  gcc/repos/staging-i686/c99
(from rev 302330, gcc/trunk/c99)
  gcc/repos/staging-x86_64/
  gcc/repos/staging-x86_64/PKGBUILD
(from rev 302330, gcc/trunk/PKGBUILD)
  gcc/repos/staging-x86_64/Revert-eeb6872bf.patch
(from rev 302330, gcc/trunk/Revert-eeb6872bf.patch)
  gcc/repos/staging-x86_64/c89
(from rev 302330, gcc/trunk/c89)
  gcc/repos/staging-x86_64/c99
(from rev 302330, gcc/trunk/c99)

---+
 staging-i686/PKGBUILD |  295 
 staging-i686/Revert-eeb6872bf.patch   |   82 
 staging-i686/c89  |   10 +
 staging-i686/c99  |   10 +
 staging-x86_64/PKGBUILD   |  295 
 staging-x86_64/Revert-eeb6872bf.patch |   82 
 staging-x86_64/c89|   10 +
 staging-x86_64/c99|   10 +
 8 files changed, 794 insertions(+)

Copied: gcc/repos/staging-i686/PKGBUILD (from rev 302330, gcc/trunk/PKGBUILD)
===
--- staging-i686/PKGBUILD   (rev 0)
+++ staging-i686/PKGBUILD   2017-08-17 10:46:10 UTC (rev 302331)
@@ -0,0 +1,295 @@
+# $Id$
+# Maintainer:  Bartłomiej Piotrowski 
+# Contributor: Allan McRae 
+
+# toolchain build order: 
linux-api-headers->glibc->binutils->gcc->binutils->glibc
+# NOTE: libtool requires rebuilt with each new gcc version
+
+pkgname=(gcc gcc-libs gcc-fortran gcc-objc gcc-ada gcc-go)
+pkgver=7.2.0
+_pkgver=${pkgver:0:1}
+_islver=0.18
+pkgrel=1
+pkgdesc='The GNU Compiler Collection'
+arch=(i686 x86_64)
+license=(GPL LGPL FDL custom)
+url='http://gcc.gnu.org'
+makedepends=(binutils libmpc gcc-ada doxygen git)
+checkdepends=(dejagnu inetutils)
+options=(!emptydirs)
+_commit=1bd23ca8c30f4827c4bea23deedf7ca33a86ffb5
+source=(git+https://gcc.gnu.org/git/gcc.git#commit=${_commit}
+http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2
+c89 c99
+Revert-eeb6872bf.patch)
+md5sums=('SKIP'
+ '11436d6b205e516635b666090b94ab32'
+ '3d333df77302ed89e06a4a8539943b7d'
+ 'da96f545b863e57c6ab2598c1ea9a740'
+ 'e4c9c8b498b04c0f51d219d025ca8407')
+
+_libdir=usr/lib/gcc/$CHOST/$pkgver
+
+prepare() {
+  cd gcc
+
+  # link isl for in-tree build
+  ln -s ../isl-${_islver} isl
+
+  # Do not run fixincludes
+  sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
+
+  # Arch Linux installs x86_64 libraries /lib
+  [[ $CARCH == "x86_64" ]] && sed -i '/m64=/s/lib64/lib/' 
gcc/config/i386/t-linux64
+
+  # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
+
+  # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80717
+  git apply ../Revert-eeb6872bf.patch
+
+  mkdir -p "$srcdir/gcc-build"
+}
+
+build() {
+  cd gcc-build
+
+  # using -pipe causes spurious test-suite failures
+  # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565
+  CFLAGS=${CFLAGS/-pipe/}
+  CXXFLAGS=${CXXFLAGS/-pipe/}
+
+  "$srcdir/gcc/configure" --prefix=/usr \
+  --libdir=/usr/lib \
+  --libexecdir=/usr/lib \
+  --mandir=/usr/share/man \
+  --infodir=/usr/share/info \
+  --with-bugurl=https://bugs.archlinux.org/ \
+  --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ \
+  --enable-shared \
+  --enable-threads=posix \
+  --enable-libmpx \
+  --with-system-zlib \
+  --with-isl \
+  --enable-__cxa_atexit \
+  --disable-libunwind-exceptions \
+  --enable-clocale=gnu \
+  --disable-libstdcxx-pch \
+  --disable-libssp \
+  --enable-gnu-unique-object \
+  --enable-linker-build-id \
+  --enable-lto \
+  --enable-plugin \
+  --enable-install-libiberty \
+  --with-linker-hash-style=gnu \
+  --enable-gnu-indirect-function \
+  --disable-multilib \
+  --disable-werror \
+  --enable-checking=release \
+  --enable-default-pie \
+  --enable-default-ssp
+
+  make
+
+  # make documentation
+  make -C $CHOST/libstdc++-v3/doc doc-man-doxygen
+}
+
+check() {
+  cd gcc-build
+
+  # increase stack size to prevent test failures
+  # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31827
+  ulimit -s 32768
+
+  # do not abort on error as some are "expected"
+  make -k check || true
+  "$srcdir/gcc/contrib/test_summary"
+}
+
+
+package_gcc-libs() {
+  pkgdesc='Runtime libraries shipped by GCC'
+  groups=('base')
+  depends=('glibc>=2.25')
+  options+=(!strip)
+

[arch-commits] Commit in gcc/repos (10 files)

2012-04-18 Thread Allan McRae
Date: Wednesday, April 18, 2012 @ 02:57:53
  Author: allan
Revision: 156418

db-move: moved gcc from [staging] to [testing] (i686)

Added:
  gcc/repos/testing-i686/
  gcc/repos/testing-i686/PKGBUILD
(from rev 156417, gcc/repos/staging-i686/PKGBUILD)
  gcc/repos/testing-i686/gcc-4.7.0-cloog-0.17.patch
(from rev 156417, gcc/repos/staging-i686/gcc-4.7.0-cloog-0.17.patch)
  gcc/repos/testing-i686/gcc-ada.install
(from rev 156417, gcc/repos/staging-i686/gcc-ada.install)
  gcc/repos/testing-i686/gcc-fortran.install
(from rev 156417, gcc/repos/staging-i686/gcc-fortran.install)
  gcc/repos/testing-i686/gcc-go.install
(from rev 156417, gcc/repos/staging-i686/gcc-go.install)
  gcc/repos/testing-i686/gcc-libs.install
(from rev 156417, gcc/repos/staging-i686/gcc-libs.install)
  gcc/repos/testing-i686/gcc.install
(from rev 156417, gcc/repos/staging-i686/gcc.install)
  gcc/repos/testing-i686/gcc_pure64.patch
(from rev 156417, gcc/repos/staging-i686/gcc_pure64.patch)
Deleted:
  gcc/repos/staging-i686/

+
 PKGBUILD   |  265 +++
 gcc-4.7.0-cloog-0.17.patch |   24 +++
 gcc-ada.install|   20 +++
 gcc-fortran.install|   16 ++
 gcc-go.install |   20 +++
 gcc-libs.install   |   16 ++
 gcc.install|   20 +++
 gcc_pure64.patch   |   26 
 8 files changed, 407 insertions(+)

Copied: gcc/repos/testing-i686/PKGBUILD (from rev 156417, 
gcc/repos/staging-i686/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2012-04-18 06:57:53 UTC (rev 156418)
@@ -0,0 +1,265 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+# NOTE: libtool requires rebuilt with each new gcc version
+
+pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc' 'gcc-ada' 'gcc-go')
+pkgver=4.7.0
+pkgrel=5
+_snapshot=4.7-20120414
+_libstdcppmanver=20120307  # Note: check source directory name 
when updating this
+pkgdesc=The GNU Compiler Collection
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL' 'custom')
+url=http://gcc.gnu.org;
+makedepends=('binutils=2.22' 'libmpc' 'cloog' 'ppl' 'gcc-ada')
+checkdepends=('dejagnu')
+options=('!libtool' '!emptydirs')
+source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
+   
ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.bz2
+   
ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-api.${_libstdcppmanver}.man.tar.bz2
+   gcc_pure64.patch
+   gcc-4.7.0-cloog-0.17.patch)
+md5sums=('9f9d082b64753d5908690500251fc52e'
+ '489d2f5311535800a120efd8d18db719'
+ 'ced48436c1b3c981d721a829f1094de1'
+ '575f7d17b022e609447a590e481b18b5')
+
+
+if [ -n ${_snapshot} ]; then
+  _basedir=${srcdir}/gcc-${_snapshot}
+else
+  _basedir=${srcdir}/gcc-${pkgver}
+fi
+
+build() {
+  cd ${_basedir}
+
+  # Do not install libiberty
+  sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
+
+  # Do not run fixincludes
+  sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
+
+  if [ ${CARCH} = x86_64 ]; then
+patch -p1 -i ${srcdir}/gcc_pure64.patch
+  fi
+
+  # compatibility with latest cloog
+  patch -p1 -i ${srcdir}/gcc-4.7.0-cloog-0.17.patch
+
+  echo ${pkgver}  gcc/BASE-VER
+
+  cd ${srcdir}
+  mkdir gcc-build  cd gcc-build
+
+  ${_basedir}/configure --prefix=/usr \
+  --libdir=/usr/lib --libexecdir=/usr/lib \
+  --mandir=/usr/share/man --infodir=/usr/share/info \
+  --with-bugurl=https://bugs.archlinux.org/ \
+  --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ \
+  --enable-shared --enable-threads=posix \
+  --with-system-zlib --enable-__cxa_atexit \
+  --disable-libunwind-exceptions --enable-clocale=gnu \
+  --disable-libstdcxx-pch --enable-libstdcxx-time \
+  --enable-gnu-unique-object --enable-linker-build-id \
+  --with-ppl --enable-cloog-backend=isl \
+  --enable-lto --enable-gold --enable-ld=default \
+  --enable-plugin --with-plugin-ld=ld.gold \
+  --with-linker-hash-style=gnu \
+  --disable-multilib --disable-libssp \
+  --disable-build-with-cxx --disable-build-poststage1-with-cxx \
+  --enable-checking=release
+  make
+}
+
+check() {
+  cd gcc-build
+
+  # increase stack size to prevent test failures
+  # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31827
+  ulimit -s 32768
+
+  # do not abort on error as some are expected
+  make -k check || true
+  ${_basedir}/contrib/test_summary
+}
+
+package_gcc-libs()
+{
+  pkgdesc=Runtime libraries shipped by GCC
+  groups=('base')
+  depends=('glibc=2.15')
+  install=gcc-libs.install
+
+  cd gcc-build
+  make -j1 -C $CHOST/libgcc DESTDIR=${pkgdir} install-shared
+  for lib in libmudflap libgomp libstdc++-v3/src libitm; do
+make -j1 -C 

[arch-commits] Commit in gcc/repos (10 files)

2012-04-18 Thread Allan McRae
Date: Wednesday, April 18, 2012 @ 02:57:54
  Author: allan
Revision: 156419

db-move: moved gcc from [staging] to [testing] (x86_64)

Added:
  gcc/repos/testing-x86_64/
  gcc/repos/testing-x86_64/PKGBUILD
(from rev 156417, gcc/repos/staging-x86_64/PKGBUILD)
  gcc/repos/testing-x86_64/gcc-4.7.0-cloog-0.17.patch
(from rev 156417, gcc/repos/staging-x86_64/gcc-4.7.0-cloog-0.17.patch)
  gcc/repos/testing-x86_64/gcc-ada.install
(from rev 156417, gcc/repos/staging-x86_64/gcc-ada.install)
  gcc/repos/testing-x86_64/gcc-fortran.install
(from rev 156417, gcc/repos/staging-x86_64/gcc-fortran.install)
  gcc/repos/testing-x86_64/gcc-go.install
(from rev 156417, gcc/repos/staging-x86_64/gcc-go.install)
  gcc/repos/testing-x86_64/gcc-libs.install
(from rev 156417, gcc/repos/staging-x86_64/gcc-libs.install)
  gcc/repos/testing-x86_64/gcc.install
(from rev 156417, gcc/repos/staging-x86_64/gcc.install)
  gcc/repos/testing-x86_64/gcc_pure64.patch
(from rev 156417, gcc/repos/staging-x86_64/gcc_pure64.patch)
Deleted:
  gcc/repos/staging-x86_64/

+
 PKGBUILD   |  265 +++
 gcc-4.7.0-cloog-0.17.patch |   24 +++
 gcc-ada.install|   20 +++
 gcc-fortran.install|   16 ++
 gcc-go.install |   20 +++
 gcc-libs.install   |   16 ++
 gcc.install|   20 +++
 gcc_pure64.patch   |   26 
 8 files changed, 407 insertions(+)

Copied: gcc/repos/testing-x86_64/PKGBUILD (from rev 156417, 
gcc/repos/staging-x86_64/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2012-04-18 06:57:54 UTC (rev 156419)
@@ -0,0 +1,265 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+# NOTE: libtool requires rebuilt with each new gcc version
+
+pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc' 'gcc-ada' 'gcc-go')
+pkgver=4.7.0
+pkgrel=5
+_snapshot=4.7-20120414
+_libstdcppmanver=20120307  # Note: check source directory name 
when updating this
+pkgdesc=The GNU Compiler Collection
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL' 'custom')
+url=http://gcc.gnu.org;
+makedepends=('binutils=2.22' 'libmpc' 'cloog' 'ppl' 'gcc-ada')
+checkdepends=('dejagnu')
+options=('!libtool' '!emptydirs')
+source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
+   
ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.bz2
+   
ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-api.${_libstdcppmanver}.man.tar.bz2
+   gcc_pure64.patch
+   gcc-4.7.0-cloog-0.17.patch)
+md5sums=('9f9d082b64753d5908690500251fc52e'
+ '489d2f5311535800a120efd8d18db719'
+ 'ced48436c1b3c981d721a829f1094de1'
+ '575f7d17b022e609447a590e481b18b5')
+
+
+if [ -n ${_snapshot} ]; then
+  _basedir=${srcdir}/gcc-${_snapshot}
+else
+  _basedir=${srcdir}/gcc-${pkgver}
+fi
+
+build() {
+  cd ${_basedir}
+
+  # Do not install libiberty
+  sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
+
+  # Do not run fixincludes
+  sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
+
+  if [ ${CARCH} = x86_64 ]; then
+patch -p1 -i ${srcdir}/gcc_pure64.patch
+  fi
+
+  # compatibility with latest cloog
+  patch -p1 -i ${srcdir}/gcc-4.7.0-cloog-0.17.patch
+
+  echo ${pkgver}  gcc/BASE-VER
+
+  cd ${srcdir}
+  mkdir gcc-build  cd gcc-build
+
+  ${_basedir}/configure --prefix=/usr \
+  --libdir=/usr/lib --libexecdir=/usr/lib \
+  --mandir=/usr/share/man --infodir=/usr/share/info \
+  --with-bugurl=https://bugs.archlinux.org/ \
+  --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ \
+  --enable-shared --enable-threads=posix \
+  --with-system-zlib --enable-__cxa_atexit \
+  --disable-libunwind-exceptions --enable-clocale=gnu \
+  --disable-libstdcxx-pch --enable-libstdcxx-time \
+  --enable-gnu-unique-object --enable-linker-build-id \
+  --with-ppl --enable-cloog-backend=isl \
+  --enable-lto --enable-gold --enable-ld=default \
+  --enable-plugin --with-plugin-ld=ld.gold \
+  --with-linker-hash-style=gnu \
+  --disable-multilib --disable-libssp \
+  --disable-build-with-cxx --disable-build-poststage1-with-cxx \
+  --enable-checking=release
+  make
+}
+
+check() {
+  cd gcc-build
+
+  # increase stack size to prevent test failures
+  # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31827
+  ulimit -s 32768
+
+  # do not abort on error as some are expected
+  make -k check || true
+  ${_basedir}/contrib/test_summary
+}
+
+package_gcc-libs()
+{
+  pkgdesc=Runtime libraries shipped by GCC
+  groups=('base')
+  depends=('glibc=2.15')
+  install=gcc-libs.install
+
+  cd gcc-build
+  make -j1 -C $CHOST/libgcc DESTDIR=${pkgdir} install-shared
+  for lib in libmudflap libgomp 

[arch-commits] Commit in gcc/repos (10 files)

2011-08-22 Thread Jan Steffens
Date: Monday, August 22, 2011 @ 21:52:20
  Author: heftig
Revision: 136095

db-move: moved gcc from [staging] to [testing] (i686)

Added:
  gcc/repos/testing-i686/
  gcc/repos/testing-i686/PKGBUILD
(from rev 136090, gcc/repos/staging-i686/PKGBUILD)
  gcc/repos/testing-i686/gcc-ada.install
(from rev 136090, gcc/repos/staging-i686/gcc-ada.install)
  gcc/repos/testing-i686/gcc-fortran.install
(from rev 136090, gcc/repos/staging-i686/gcc-fortran.install)
  gcc/repos/testing-i686/gcc-go.install
(from rev 136090, gcc/repos/staging-i686/gcc-go.install)
  gcc/repos/testing-i686/gcc-hash-style-both.patch
(from rev 136090, gcc/repos/staging-i686/gcc-hash-style-both.patch)
  gcc/repos/testing-i686/gcc-libs.install
(from rev 136090, gcc/repos/staging-i686/gcc-libs.install)
  gcc/repos/testing-i686/gcc.install
(from rev 136090, gcc/repos/staging-i686/gcc.install)
  gcc/repos/testing-i686/gcc_pure64.patch
(from rev 136090, gcc/repos/staging-i686/gcc_pure64.patch)
Deleted:
  gcc/repos/staging-i686/

---+
 PKGBUILD  |  254 
 gcc-ada.install   |   20 +++
 gcc-fortran.install   |   16 ++
 gcc-go.install|   20 +++
 gcc-hash-style-both.patch |  122 +
 gcc-libs.install  |   16 ++
 gcc.install   |   20 +++
 gcc_pure64.patch  |   26 
 8 files changed, 494 insertions(+)

Copied: gcc/repos/testing-i686/PKGBUILD (from rev 136090, 
gcc/repos/staging-i686/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2011-08-23 01:52:20 UTC (rev 136095)
@@ -0,0 +1,254 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+# NOTE: libtool requires rebuilt with each new gcc version
+
+pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc' 'gcc-ada' 'gcc-go')
+pkgver=4.6.1
+pkgrel=4
+_snapshot=4.6-20110819
+_libstdcppmanver=20110814  # Note: check source directory name 
when updating this
+pkgdesc=The GNU Compiler Collection
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL' 'custom')
+url=http://gcc.gnu.org;
+makedepends=('binutils=2.21-9' 'libmpc' 'cloog' 'ppl' 'gcc-ada')
+checkdepends=('dejagnu')
+options=('!libtool' '!emptydirs')
+source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
+   
ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_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)
+md5sums=('b14d22730f9085eab7fd927039e68d28'
+ 'ce920d2550ff7e042b9f091d27764d8f'
+ '4030ee1c08dd1e843c0225b772360e76'
+ '4df25b623799b148a0703eaeec8fdf3f')
+
+if [ -n ${_snapshot} ]; then
+  _basedir=${srcdir}/gcc-${_snapshot}
+else
+  _basedir=${srcdir}/gcc-${pkgver}
+fi
+
+build() {
+  cd ${_basedir}
+
+  # Do not install libiberty
+  sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
+
+  # Do not run fixincludes
+  sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
+
+  if [ ${CARCH} = x86_64 ]; then
+patch -Np1 -i ${srcdir}/gcc_pure64.patch
+  fi
+  patch -Np0 -i ${srcdir}/gcc-hash-style-both.patch
+
+  echo ${pkgver}  gcc/BASE-VER
+
+  cd ${srcdir}
+  mkdir gcc-build  cd gcc-build
+
+  ${_basedir}/configure --prefix=/usr \
+  --libdir=/usr/lib --libexecdir=/usr/lib \
+  --mandir=/usr/share/man --infodir=/usr/share/info \
+  --with-bugurl=https://bugs.archlinux.org/ \
+  --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ \
+  --enable-shared --enable-threads=posix \
+  --with-system-zlib --enable-__cxa_atexit \
+  --disable-libunwind-exceptions --enable-clocale=gnu \
+  --enable-gnu-unique-object --enable-linker-build-id \
+  --with-ppl --enable-cloog-backend=isl \
+  --enable-lto --enable-gold --enable-ld=default \
+  --enable-plugin --with-plugin-ld=ld.gold \
+  --disable-multilib --disable-libssp --disable-libstdcxx-pch \
+  --enable-checking=release
+  make
+}
+
+check() {
+  cd gcc-build
+
+  # increase stack size to prevent test failures
+  # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31827
+  ulimit -s 32768
+
+  # do not abort on error as some are expected
+  make -k check || true
+  ${_basedir}/contrib/test_summary
+}
+
+package_gcc-libs()
+{
+  pkgdesc=Runtime libraries shipped by GCC
+  groups=('base')
+  depends=('glibc=2.14')
+  install=gcc-libs.install
+
+  cd gcc-build
+  make -j1 -C $CHOST/libgcc DESTDIR=${pkgdir} install-shared
+  for lib in libmudflap libgomp libstdc++-v3/src; do
+make -j1 -C $CHOST/$lib DESTDIR=${pkgdir} install-toolexeclibLTLIBRARIES
+  done
+  make -j1 -C $CHOST/libstdc++-v3/po DESTDIR=${pkgdir} install
+  make -j1 -C $CHOST/libgomp DESTDIR=${pkgdir} 

[arch-commits] Commit in gcc/repos (10 files)

2011-08-22 Thread Jan Steffens
Date: Monday, August 22, 2011 @ 21:52:22
  Author: heftig
Revision: 136096

db-move: moved gcc from [staging] to [testing] (x86_64)

Added:
  gcc/repos/testing-x86_64/
  gcc/repos/testing-x86_64/PKGBUILD
(from rev 136090, gcc/repos/staging-x86_64/PKGBUILD)
  gcc/repos/testing-x86_64/gcc-ada.install
(from rev 136090, gcc/repos/staging-x86_64/gcc-ada.install)
  gcc/repos/testing-x86_64/gcc-fortran.install
(from rev 136090, gcc/repos/staging-x86_64/gcc-fortran.install)
  gcc/repos/testing-x86_64/gcc-go.install
(from rev 136090, gcc/repos/staging-x86_64/gcc-go.install)
  gcc/repos/testing-x86_64/gcc-hash-style-both.patch
(from rev 136090, gcc/repos/staging-x86_64/gcc-hash-style-both.patch)
  gcc/repos/testing-x86_64/gcc-libs.install
(from rev 136090, gcc/repos/staging-x86_64/gcc-libs.install)
  gcc/repos/testing-x86_64/gcc.install
(from rev 136090, gcc/repos/staging-x86_64/gcc.install)
  gcc/repos/testing-x86_64/gcc_pure64.patch
(from rev 136090, gcc/repos/staging-x86_64/gcc_pure64.patch)
Deleted:
  gcc/repos/staging-x86_64/

---+
 PKGBUILD  |  254 
 gcc-ada.install   |   20 +++
 gcc-fortran.install   |   16 ++
 gcc-go.install|   20 +++
 gcc-hash-style-both.patch |  122 +
 gcc-libs.install  |   16 ++
 gcc.install   |   20 +++
 gcc_pure64.patch  |   26 
 8 files changed, 494 insertions(+)

Copied: gcc/repos/testing-x86_64/PKGBUILD (from rev 136090, 
gcc/repos/staging-x86_64/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2011-08-23 01:52:22 UTC (rev 136096)
@@ -0,0 +1,254 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+# NOTE: libtool requires rebuilt with each new gcc version
+
+pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc' 'gcc-ada' 'gcc-go')
+pkgver=4.6.1
+pkgrel=4
+_snapshot=4.6-20110819
+_libstdcppmanver=20110814  # Note: check source directory name 
when updating this
+pkgdesc=The GNU Compiler Collection
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL' 'custom')
+url=http://gcc.gnu.org;
+makedepends=('binutils=2.21-9' 'libmpc' 'cloog' 'ppl' 'gcc-ada')
+checkdepends=('dejagnu')
+options=('!libtool' '!emptydirs')
+source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
+   
ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_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)
+md5sums=('b14d22730f9085eab7fd927039e68d28'
+ 'ce920d2550ff7e042b9f091d27764d8f'
+ '4030ee1c08dd1e843c0225b772360e76'
+ '4df25b623799b148a0703eaeec8fdf3f')
+
+if [ -n ${_snapshot} ]; then
+  _basedir=${srcdir}/gcc-${_snapshot}
+else
+  _basedir=${srcdir}/gcc-${pkgver}
+fi
+
+build() {
+  cd ${_basedir}
+
+  # Do not install libiberty
+  sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
+
+  # Do not run fixincludes
+  sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
+
+  if [ ${CARCH} = x86_64 ]; then
+patch -Np1 -i ${srcdir}/gcc_pure64.patch
+  fi
+  patch -Np0 -i ${srcdir}/gcc-hash-style-both.patch
+
+  echo ${pkgver}  gcc/BASE-VER
+
+  cd ${srcdir}
+  mkdir gcc-build  cd gcc-build
+
+  ${_basedir}/configure --prefix=/usr \
+  --libdir=/usr/lib --libexecdir=/usr/lib \
+  --mandir=/usr/share/man --infodir=/usr/share/info \
+  --with-bugurl=https://bugs.archlinux.org/ \
+  --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ \
+  --enable-shared --enable-threads=posix \
+  --with-system-zlib --enable-__cxa_atexit \
+  --disable-libunwind-exceptions --enable-clocale=gnu \
+  --enable-gnu-unique-object --enable-linker-build-id \
+  --with-ppl --enable-cloog-backend=isl \
+  --enable-lto --enable-gold --enable-ld=default \
+  --enable-plugin --with-plugin-ld=ld.gold \
+  --disable-multilib --disable-libssp --disable-libstdcxx-pch \
+  --enable-checking=release
+  make
+}
+
+check() {
+  cd gcc-build
+
+  # increase stack size to prevent test failures
+  # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31827
+  ulimit -s 32768
+
+  # do not abort on error as some are expected
+  make -k check || true
+  ${_basedir}/contrib/test_summary
+}
+
+package_gcc-libs()
+{
+  pkgdesc=Runtime libraries shipped by GCC
+  groups=('base')
+  depends=('glibc=2.14')
+  install=gcc-libs.install
+
+  cd gcc-build
+  make -j1 -C $CHOST/libgcc DESTDIR=${pkgdir} install-shared
+  for lib in libmudflap libgomp libstdc++-v3/src; do
+make -j1 -C $CHOST/$lib DESTDIR=${pkgdir} install-toolexeclibLTLIBRARIES
+  done
+  make -j1 -C $CHOST/libstdc++-v3/po DESTDIR=${pkgdir} install
+  make