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

Evangelos Foutras foutrelis at archlinux.org
Mon Sep 7 19:42:38 UTC 2015


    Date: Monday, September 7, 2015 @ 21:42:38
  Author: foutrelis
Revision: 139534

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

Added:
  arm-none-eabi-gdb/repos/community-staging-i686/
  arm-none-eabi-gdb/repos/community-staging-i686/PKGBUILD
    (from rev 139533, arm-none-eabi-gdb/trunk/PKGBUILD)
  arm-none-eabi-gdb/repos/community-staging-x86_64/
  arm-none-eabi-gdb/repos/community-staging-x86_64/PKGBUILD
    (from rev 139533, arm-none-eabi-gdb/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   56 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   56 ++++++++++++++++++++++++++++++++++++
 2 files changed, 112 insertions(+)

Copied: arm-none-eabi-gdb/repos/community-staging-i686/PKGBUILD (from rev 139533, arm-none-eabi-gdb/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-07 19:42:38 UTC (rev 139534)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Martin Schmölzer <mschmoelzer at gmail.com>
+
+_target=arm-none-eabi
+pkgname=$_target-gdb
+pkgver=7.10
+pkgrel=2
+pkgdesc='The GNU Debugger for the ARM EABI (bare-metal) target'
+arch=(i686 x86_64)
+url='http://www.gnu.org/software/gdb/'
+license=(GPL3)
+depends=(xz ncurses expat python2 guile)
+optdepends=('openocd: for debugging JTAG targets'
+            'stlink: for debugging over STLINK')
+options=(!emptydirs)
+source=(ftp://ftp.gnu.org/gnu/gdb/gdb-$pkgver.tar.xz{,.sig})
+sha256sums=('7ebdaa44f9786ce0c142da4e36797d2020c55fa091905ac5af1846b5756208a8'
+            'SKIP')
+validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker <brobecker at adacore.com>
+
+prepare() {
+  cd gdb-$pkgver
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+}
+
+build() {
+  cd gdb-$pkgver
+
+  ./configure \
+    --target=$_target \
+    --prefix=/usr \
+    --enable-languages=c,c++ \
+    --enable-multilib \
+    --enable-interwork \
+    --with-system-readline \
+    --disable-nls \
+    --with-python=/usr/bin/python2 \
+    --with-system-gdbinit=/etc/gdb/gdbinit
+
+  make
+}
+
+package() {
+  cd gdb-$pkgver
+
+  make DESTDIR="$pkgdir" install
+
+  # Following files conflict with 'gdb' package
+  rm -r "$pkgdir"/usr/share/info
+  # TOTHINK: we remove python module used for debugging. It means arm-*-gdb alone will not be able to debug and 'gdb' package
+  # should be installed. File a bug upstream - ask a separate python module folder for cross tools.
+  rm -r "$pkgdir"/usr/share/gdb
+  rm -r "$pkgdir"/usr/include/gdb
+  rm -r "$pkgdir"/usr/share/man/man5
+}

Copied: arm-none-eabi-gdb/repos/community-staging-x86_64/PKGBUILD (from rev 139533, arm-none-eabi-gdb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-07 19:42:38 UTC (rev 139534)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Martin Schmölzer <mschmoelzer at gmail.com>
+
+_target=arm-none-eabi
+pkgname=$_target-gdb
+pkgver=7.10
+pkgrel=2
+pkgdesc='The GNU Debugger for the ARM EABI (bare-metal) target'
+arch=(i686 x86_64)
+url='http://www.gnu.org/software/gdb/'
+license=(GPL3)
+depends=(xz ncurses expat python2 guile)
+optdepends=('openocd: for debugging JTAG targets'
+            'stlink: for debugging over STLINK')
+options=(!emptydirs)
+source=(ftp://ftp.gnu.org/gnu/gdb/gdb-$pkgver.tar.xz{,.sig})
+sha256sums=('7ebdaa44f9786ce0c142da4e36797d2020c55fa091905ac5af1846b5756208a8'
+            'SKIP')
+validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker <brobecker at adacore.com>
+
+prepare() {
+  cd gdb-$pkgver
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+}
+
+build() {
+  cd gdb-$pkgver
+
+  ./configure \
+    --target=$_target \
+    --prefix=/usr \
+    --enable-languages=c,c++ \
+    --enable-multilib \
+    --enable-interwork \
+    --with-system-readline \
+    --disable-nls \
+    --with-python=/usr/bin/python2 \
+    --with-system-gdbinit=/etc/gdb/gdbinit
+
+  make
+}
+
+package() {
+  cd gdb-$pkgver
+
+  make DESTDIR="$pkgdir" install
+
+  # Following files conflict with 'gdb' package
+  rm -r "$pkgdir"/usr/share/info
+  # TOTHINK: we remove python module used for debugging. It means arm-*-gdb alone will not be able to debug and 'gdb' package
+  # should be installed. File a bug upstream - ask a separate python module folder for cross tools.
+  rm -r "$pkgdir"/usr/share/gdb
+  rm -r "$pkgdir"/usr/include/gdb
+  rm -r "$pkgdir"/usr/share/man/man5
+}



More information about the arch-commits mailing list