[arch-commits] Commit in gdb/trunk (PKGBUILD)
Allan McRae
allan at archlinux.org
Sun Jan 31 10:09:33 UTC 2010
Date: Sunday, January 31, 2010 @ 05:09:33
Author: allan
Revision: 66470
upgpkg: gdb 7.0.1-2
add global gcbinit (FS#18041)
Modified:
gdb/trunk/PKGBUILD
----------+
PKGBUILD | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-01-31 09:50:03 UTC (rev 66469)
+++ PKGBUILD 2010-01-31 10:09:33 UTC (rev 66470)
@@ -4,13 +4,14 @@
pkgname=gdb
pkgver=7.0.1
-pkgrel=1
+pkgrel=2
pkgdesc="The GNU Debugger"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/gdb/"
license=('GPL3')
depends=('ncurses' 'expat' 'python')
makedepends=('texinfo')
+backup=('etc/gdb/gdbinit')
options=('!libtool')
install=gdb.install
source=(http://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.bz2
@@ -22,10 +23,16 @@
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np1 -i $srcdir/gdb-readline-6.0.patch
- ./configure --prefix=/usr --disable-nls --with-system-readline
+ ./configure --prefix=/usr --disable-nls \
+ --with-system-readline \
+ --with-system-gdbinit=/etc/gdbinit
make || return 1
make DESTDIR=${pkgdir} install || return 1
+ # install "custom" system gdbinit
+ install -dm755 $pkgdir/etc/gdb
+ touch $pkgdir/etc/gdb/gdbinit
+
# resolve conflicts with binutils
rm -f ${pkgdir}/usr/include/{bfd,dis-asm,symcat,ansidecl,bfdlink}.h
rm -f ${pkgdir}/usr/lib/{libiberty,libbfd,libopcodes}.a
More information about the arch-commits
mailing list