Want more features on Pastebin? Sign Up, it's FREE!
Guest

gcc42 PKGBUILD for linux-unwind.h 'info' error

By: abitlater on Feb 14th, 2013  |  syntax: Bash  |  size: 2.55 KB  |  views: 59  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
  2. # Maintainer: Martin Peres <martin.peres@ensi-bourges.fr>
  3.  
  4. pkgname=gcc42
  5. pkgver=4.2.4
  6. pkgrel=9
  7. epoch=0
  8. pkgdesc="The GNU Compiler Collection"
  9. arch=('i686' 'x86_64')
  10. url="http://gcc.gnu.org"
  11. license=('GPL')
  12. depends=('glibc' 'mpfr')
  13. makedepends=('binutils' 'mpfr')
  14. provides=('gcc42')
  15. conflicts=('gcc42')
  16. options=('!libtool' '!emptydirs')
  17. source=("ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2" \
  18.         "gcc_pure64.patch" "gcc-hash-style-both.patch")
  19. md5sums=('d79f553e7916ea21c556329eacfeaa16'
  20.          '4030ee1c08dd1e843c0225b772360e76'
  21.          'f3774714fddb0af7b4d85ea5bb5620ca')
  22.  
  23. build() {
  24.   cd "$srcdir/gcc-$pkgver"
  25.  
  26.   # May be necessary but it works for me without this locale
  27.   #if ! locale -a | grep ^de_DE; then
  28.   #  echo "You need the de_DE locale to build gcc."
  29.   #  return 1
  30.   #fi
  31.  
  32.   # ===================ERROR INCOMPLETE TYPE - FIELD 'INF0' ============ #
  33.   # src/gcc-4.6.3/gcc/config/i386/linux-unwind.h
  34.  
  35.   patch $srcdir/gcc-$pkgver/gcc/config/i386/linux-unwind.h < $srcdir/linux-unwind.h.patch
  36.  
  37.   # ===================ERROR INCOMPLETE TYPE - FIELD 'INF0' ============ #
  38.  
  39.  
  40.   if [ "${CARCH}" = "x86_64" ]; then
  41.     patch -Np1 < "$srcdir/gcc_pure64.patch" || true
  42.   fi
  43.   patch -Np0 < "$srcdir/gcc-hash-style-both.patch" || true
  44.  
  45.   # Don't install libiberty
  46.   sed -i 's|install_to_$(INSTALL_DEST) ||' libiberty/Makefile.in
  47.  
  48.   # Don't run fixincludes
  49.   sed -i -e 's|\./fixinc\.sh|-c true|' gcc/Makefile.in
  50.  
  51.   if [ ! -d build ]; then
  52.     mkdir build
  53.   fi
  54.   cd build
  55.  
  56.   unset CFLAGS
  57.   unset CXXFLAGS
  58.   ../configure --prefix=/usr --libdir=/usr/lib \
  59.       --mandir=/usr/share/man --infodir=/usr/share/info \
  60.       --enable-shared --disable-nls \
  61.       --enable-languages=c,c++,fortran --enable-threads=posix \
  62.       --enable-__cxa_atexit  --disable-multilib \
  63.       --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch \
  64.       --with-tune=generic \
  65.       -program-suffix="-4.2" --enable-version-specific-runtime-libs
  66.   make
  67. }
  68.  
  69. package() {
  70.   cd "$srcdir/gcc-$pkgver/build"
  71.   make -j1 DESTDIR="$pkgdir/" install
  72.  
  73.   # remove conflicting files
  74.   rm -rf "$pkgdir/usr/share"
  75.  
  76.   # remove libraries provided by the gcc-libs
  77.   # fixes problems with linking some programs
  78.   if [ "$CARCH" = "x86_64" ]; then
  79.     rm $pkgdir/usr/lib/gcc/x86_64-unknown-linux-gnu/$pkgver/{libgomp,libmudflap,libssp,libstdc++}*
  80.   else
  81.     rm $pkgdir/usr/lib/gcc/i686-pc-linux-gnu/$pkgver/{libgomp,libmudflap,libssp,libstdc++}*
  82.   fi
  83.  
  84. }
  85.  
  86. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data