[arch-commits] Commit in gdb/repos (4 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Sat Dec 24 11:27:24 UTC 2016
Date: Saturday, December 24, 2016 @ 11:27:23
Author: bpiotrowski
Revision: 284611
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
gdb/repos/staging-i686/
gdb/repos/staging-i686/PKGBUILD
(from rev 284610, gdb/trunk/PKGBUILD)
gdb/repos/staging-x86_64/
gdb/repos/staging-x86_64/PKGBUILD
(from rev 284610, gdb/trunk/PKGBUILD)
-------------------------+
staging-i686/PKGBUILD | 70 ++++++++++++++++++++++++++++++++++++++++++++++
staging-x86_64/PKGBUILD | 70 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 140 insertions(+)
Copied: gdb/repos/staging-i686/PKGBUILD (from rev 284610, gdb/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2016-12-24 11:27:23 UTC (rev 284611)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=gdb
+# gdb-common is a package that contains files common for all cross compiled versions
+# of gdb (for arm/avr/...)
+pkgname=(gdb gdb-common)
+pkgver=7.12
+pkgrel=4
+pkgdesc='The GNU Debugger'
+arch=(i686 x86_64)
+url='http://www.gnu.org/software/gdb/'
+license=(GPL3)
+makedepends=(texinfo python guile ncurses expat xz)
+source=(https://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.xz{,.sig})
+sha1sums=('1a6a0f2fe04d6ac9ba85048af35610e0fc217300'
+ '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_gdb-common() {
+ depends=(python guile)
+
+ cd gdb-$pkgver
+ make DESTDIR=$pkgdir install
+
+ # 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
+
+ rm -r $pkgdir/usr/{bin,include,lib,share/info,share/man}
+}
+
+package_gdb() {
+ depends=(ncurses expat xz gdb-common=$pkgver)
+ backup=(etc/gdb/gdbinit)
+
+ 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
+
+ # comes from gdb-common
+ rm -r $pkgdir/usr/share/gdb/
+}
Copied: gdb/repos/staging-x86_64/PKGBUILD (from rev 284610, gdb/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2016-12-24 11:27:23 UTC (rev 284611)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=gdb
+# gdb-common is a package that contains files common for all cross compiled versions
+# of gdb (for arm/avr/...)
+pkgname=(gdb gdb-common)
+pkgver=7.12
+pkgrel=4
+pkgdesc='The GNU Debugger'
+arch=(i686 x86_64)
+url='http://www.gnu.org/software/gdb/'
+license=(GPL3)
+makedepends=(texinfo python guile ncurses expat xz)
+source=(https://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.xz{,.sig})
+sha1sums=('1a6a0f2fe04d6ac9ba85048af35610e0fc217300'
+ '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_gdb-common() {
+ depends=(python guile)
+
+ cd gdb-$pkgver
+ make DESTDIR=$pkgdir install
+
+ # 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
+
+ rm -r $pkgdir/usr/{bin,include,lib,share/info,share/man}
+}
+
+package_gdb() {
+ depends=(ncurses expat xz gdb-common=$pkgver)
+ backup=(etc/gdb/gdbinit)
+
+ 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
+
+ # comes from gdb-common
+ rm -r $pkgdir/usr/share/gdb/
+}
More information about the arch-commits
mailing list