[arch-commits] Commit in gdb/repos (4 files)

Anatol Pomozov anatolik at archlinux.org
Wed Jun 1 18:33:45 UTC 2016


    Date: Wednesday, June 1, 2016 @ 20:33:45
  Author: anatolik
Revision: 268829

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

Added:
  gdb/repos/testing-i686/
  gdb/repos/testing-i686/PKGBUILD
    (from rev 268828, gdb/trunk/PKGBUILD)
  gdb/repos/testing-x86_64/
  gdb/repos/testing-x86_64/PKGBUILD
    (from rev 268828, gdb/trunk/PKGBUILD)

-------------------------+
 testing-i686/PKGBUILD   |   49 ++++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD |   49 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 98 insertions(+)

Copied: gdb/repos/testing-i686/PKGBUILD (from rev 268828, gdb/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2016-06-01 18:33:45 UTC (rev 268829)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgname=gdb
+pkgver=7.11.1
+pkgrel=1
+pkgdesc='The GNU Debugger'
+arch=(i686 x86_64)
+url='http://www.gnu.org/software/gdb/'
+license=(GPL3)
+depends=(ncurses expat python xz guile)
+makedepends=(texinfo)
+backup=(etc/gdb/gdbinit)
+source=(http://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.xz{,.sig})
+sha1sums=('df23fde077df1b8555949281bc963596f70de3ec'
+          'SKIP')
+validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker
+
+prepare() {
+  cd gdb-$pkgver
+
+  # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+}
+
+build() {
+  cd gdb-$pkgver
+  
+  ./configure --prefix=/usr --disable-nls \
+    --with-system-readline \
+    --with-python=/usr/bin/python3 \
+    --with-system-gdbinit=/etc/gdb/gdbinit
+  make
+}
+
+package() {
+  cd gdb-$pkgver
+  make DESTDIR=$pkgdir install
+
+  # install "custom" system gdbinit
+  install -dm755 $pkgdir/etc/gdb
+  touch $pkgdir/etc/gdb/gdbinit
+
+  # resolve conflicts with binutils
+  rm $pkgdir/usr/include/{ansidecl,bfd,bfdlink,dis-asm,plugin-api,symcat}.h
+  rm $pkgdir/usr/share/info/bfd.info
+  rm $pkgdir/usr/lib/{libbfd,libopcodes}.a
+}

Copied: gdb/repos/testing-x86_64/PKGBUILD (from rev 268828, gdb/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2016-06-01 18:33:45 UTC (rev 268829)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgname=gdb
+pkgver=7.11.1
+pkgrel=1
+pkgdesc='The GNU Debugger'
+arch=(i686 x86_64)
+url='http://www.gnu.org/software/gdb/'
+license=(GPL3)
+depends=(ncurses expat python xz guile)
+makedepends=(texinfo)
+backup=(etc/gdb/gdbinit)
+source=(http://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.xz{,.sig})
+sha1sums=('df23fde077df1b8555949281bc963596f70de3ec'
+          'SKIP')
+validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker
+
+prepare() {
+  cd gdb-$pkgver
+
+  # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+}
+
+build() {
+  cd gdb-$pkgver
+  
+  ./configure --prefix=/usr --disable-nls \
+    --with-system-readline \
+    --with-python=/usr/bin/python3 \
+    --with-system-gdbinit=/etc/gdb/gdbinit
+  make
+}
+
+package() {
+  cd gdb-$pkgver
+  make DESTDIR=$pkgdir install
+
+  # install "custom" system gdbinit
+  install -dm755 $pkgdir/etc/gdb
+  touch $pkgdir/etc/gdb/gdbinit
+
+  # resolve conflicts with binutils
+  rm $pkgdir/usr/include/{ansidecl,bfd,bfdlink,dis-asm,plugin-api,symcat}.h
+  rm $pkgdir/usr/share/info/bfd.info
+  rm $pkgdir/usr/lib/{libbfd,libopcodes}.a
+}



More information about the arch-commits mailing list