[arch-commits] Commit in gdb/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Sun Sep 27 13:31:34 UTC 2020


    Date: Sunday, September 27, 2020 @ 13:31:33
  Author: anthraxx
Revision: 396712

upgpkg: gdb 9.2-2: simplify package() and declare first level deps

Modified:
  gdb/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++-----------------
 1 file changed, 7 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-27 12:32:46 UTC (rev 396711)
+++ PKGBUILD	2020-09-27 13:31:33 UTC (rev 396712)
@@ -8,12 +8,13 @@
 # of gdb (for arm/avr/...)
 pkgname=(gdb gdb-common)
 pkgver=9.2
-pkgrel=1
+pkgrel=2
 pkgdesc='The GNU Debugger'
 arch=(x86_64)
 url='https://www.gnu.org/software/gdb/'
 license=(GPL3)
-makedepends=(texinfo python guile2.0 ncurses expat xz mpfr source-highlight)
+makedepends=(glibc gcc-libs texinfo python guile2.0 ncurses expat xz mpfr source-highlight
+             readline)
 source=(https://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.xz{,.sig})
 sha1sums=('356ee474a24bfb2f133894730916557dfea9da2e'
           'SKIP')
@@ -48,28 +49,17 @@
   depends=(python guile2.0)
 
   cd gdb-$pkgver/build
-
-  make DESTDIR="$pkgdir" install
-  # resolve conflicts with binutils
-  rm "$pkgdir"/usr/include/{ansidecl,bfd,bfdlink,dis-asm,plugin-api,symcat,ctf,ctf-api,bfd_stdint,diagnostics}.h
-  rm "$pkgdir"/usr/share/info/bfd.info
-  rm "$pkgdir"/usr/lib/{libbfd,libopcodes,libctf,libctf-nobfd}.a
-
-  rm -r "$pkgdir"/usr/{bin,include,lib,share/info,share/man}
+  make -C gdb/data-directory DESTDIR="$pkgdir" install
 }
 
 package_gdb() {
-  depends=(ncurses expat xz mpfr source-highlight gdb-common=$pkgver)
+  depends=(glibc ncurses libncursesw.so gcc-libs expat xz mpfr source-highlight gdb-common=$pkgver
+           readline libreadline.so guile2.0 python)
   backup=(etc/gdb/gdbinit)
 
   cd gdb-$pkgver/build
-  make DESTDIR="$pkgdir" install
+  make -C gdb DESTDIR="$pkgdir" install
 
-  # resolve conflicts with binutils
-  rm "$pkgdir"/usr/include/{ansidecl,bfd,bfdlink,dis-asm,plugin-api,symcat,ctf,ctf-api,bfd_stdint,diagnostics}.h
-  rm "$pkgdir"/usr/share/info/bfd.info
-  rm "$pkgdir"/usr/lib/{libbfd,libopcodes,libctf,libctf-nobfd}.a
-
   # install "custom" system gdbinit
   install -dm 755 "$pkgdir/etc/gdb"
   touch "$pkgdir/etc/gdb/gdbinit"



More information about the arch-commits mailing list