[arch-commits] Commit in gdb/repos (extra-x86_64 extra-x86_64/PKGBUILD)

Allan McRae allan at archlinux.org
Sun Jan 31 05:16:00 EST 2010


    Date: Sunday, January 31, 2010 @ 05:15:59
  Author: allan
Revision: 66472

Merged revisions 66470 via svnmerge from 
svn+ssh://gerolde.archlinux.org/srv/svn-packages/gdb/trunk

........
  r66470 | allan | 2010-01-31 20:09:33 +1000 (Sun, 31 Jan 2010) | 2 lines
  
  upgpkg: gdb 7.0.1-2
      add global gcbinit (FS#18041)
........

Modified:
  gdb/repos/extra-x86_64/	(properties)
  gdb/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)


Property changes on: gdb/repos/extra-x86_64
___________________________________________________________________
Modified: svnmerge-integrated
   - /gdb/trunk:1-62833
   + /gdb/trunk:1-66471

Modified: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2010-01-31 10:10:32 UTC (rev 66471)
+++ extra-x86_64/PKGBUILD	2010-01-31 10:15:59 UTC (rev 66472)
@@ -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