[arch-commits] Commit in gcc34/repos (extra-i686 extra-i686/PKGBUILD)

Jan de Groot jgc at archlinux.org
Fri Jul 18 18:42:26 EDT 2008


    Date: Friday, July 18, 2008 @ 18:42:25
  Author: jgc
Revision: 5605

Merged revisions 2-5603 via svnmerge from 
svn+ssh://svn.archlinux.org/home/svn-packages/gcc34/trunk

........
  r356 | aaron | 2008-04-18 22:56:27 +0000 (Fri, 18 Apr 2008) | 1 line
  
  Added svn:keywords to all PKGBUILDs
........
  r2310 | paul | 2008-05-31 15:15:19 +0000 (Sat, 31 May 2008) | 2 lines
  
  Added more licenses.
........
  r5603 | jgc | 2008-07-18 22:42:12 +0000 (Fri, 18 Jul 2008) | 2 lines
  
  upgpkg: gcc34 3.4.6-2
      Fix libexecdir, fix dependencies, fix mandir, check locales
........

Modified:
  gcc34/repos/extra-i686/	(properties)
  gcc34/repos/extra-i686/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++++------------
 1 file changed, 19 insertions(+), 12 deletions(-)


Property changes on: gcc34/repos/extra-i686
___________________________________________________________________
Name: svnmerge-integrated
   - /gcc34/trunk:1
   + /gcc34/trunk:1-5603

Modified: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD	2008-07-18 22:42:22 UTC (rev 5604)
+++ extra-i686/PKGBUILD	2008-07-18 22:42:25 UTC (rev 5605)
@@ -2,22 +2,30 @@
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 pkgname=gcc34
 pkgver=3.4.6
-pkgrel=1
-#_snapshot=4.1-20060519
+pkgrel=2
 pkgdesc="The GNU Compiler Collection"
 arch=(i686 x86_64)
 url="http://gcc.gnu.org"
-depends=('libstdc++5' 'gcc')
+license=('GPL') # with exception, per fsf.org
+depends=('libstdc++5' 'gcc-libs')
 options=('!libtool')
 source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++}-${pkgver}.tar.bz2 \
-	gcc-localeversion.patch gcc-3.3-pure64.patch)
+	gcc-localeversion.patch
+	gcc-3.3-pure64.patch)
+md5sums=('5324ace5145b12afd9ca867af7ec084d'
+         'ef81fd74bc9fd964120af47243a1360f'
+         'e93d6f49b254dc2879a4e181603599b0'
+         'eb834abd7620a5f11492ee2c243b8346')
 
 build() {
-  export MAKEFLAGS="-j1"
-  # use "defaults" CFLAGS and CXXFLAGS
-  export CFLAGS="-march=i686 -O2 -pipe"
-  export CXXFLAGS="-march=i686 -O2 -pipe"
+  if ! locale -a | grep ^de_DE; then
+    echo "You need the de_DE locale to build gcc."
+    return 1
+  fi
 
+  export CFLAGS="${CFLAGS/-mtune=generic/}"
+  export CXXFLAGS="${CXXFLAGS/-mtune=generic/}"
+
   cd ${startdir}/src/gcc-${pkgver}
 
   patch -Np0 -i ${startdir}/src/gcc-localeversion.patch || return 1
@@ -35,15 +43,14 @@
   cd ../gcc-build
   ../gcc-${pkgver}/configure --prefix=/usr --enable-shared \
       --enable-languages=c,c++ --enable-threads=posix \
+      --mandir=/usr/share/man --libexecdir=/usr/lib \
       --enable-__cxa_atexit  --disable-multilib --libdir=/usr/lib \
       --enable-clocale=gnu --program-suffix=-3.4
 
   make bootstrap || return 1
-  make DESTDIR=${startdir}/pkg install || return 1
+  make -j1 DESTDIR=${startdir}/pkg install || return 1
 
   rm -f ${startdir}/pkg/usr/lib/lib{stdc++,supc++,gcc_s}.*
   rm -f ${startdir}/pkg/usr/share/locale/*/LC_MESSAGES/libstdc++.mo
-  rm -rf ${startdir}/pkg/usr/man/man7
-  #mv ${startdir}/pkg/usr/man/man1/cpp.1 ${startdir}/pkg/usr/man/man1/cpp-3.4.1
-  #mv ${startdir}/pkg/usr/man/man1/gcov.1 ${startdir}/pkg/usr/man/man1/gcov-3.4.1
+  rm -rf ${startdir}/pkg/usr/share/man/man7
 }





More information about the arch-commits mailing list