diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-10-23 10:14:13 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-10-23 10:14:13 +0000 |
commit | bbb5b98876a4b299c0af11ebdd3dcb66888af322 (patch) | |
tree | b2ab4704217dca6e8d7f5d13453d8c598787576e /main/gdb/APKBUILD | |
parent | d666f38c767db33ee765c73fba530d15574effc0 (diff) | |
download | aports-bbb5b98876a4b299c0af11ebdd3dcb66888af322.tar.bz2 aports-bbb5b98876a4b299c0af11ebdd3dcb66888af322.tar.xz |
Revert "Revert "main/gdb: upgrade to 7.2""
This reverts commit d666f38c767db33ee765c73fba530d15574effc0.
Diffstat (limited to 'main/gdb/APKBUILD')
-rw-r--r-- | main/gdb/APKBUILD | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/main/gdb/APKBUILD b/main/gdb/APKBUILD index 67bb5d19de..71ca88ecda 100644 --- a/main/gdb/APKBUILD +++ b/main/gdb/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=gdb -pkgver=6.8 -pkgrel=4 +pkgver=7.2 +pkgrel=0 pkgdesc="The GNU Debugger" url="http://sources.redhat.com/gdb/" license="GPL3" @@ -9,19 +9,25 @@ depends= makedepends="ncurses-dev expat-dev" subpackages="$pkgname-doc" source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.bz2 - 50_all_gdb-pie-1.patch - 50_all_gdb-pie-2.patch + 80_all_gdb-6.5-dwarf-stack-overflow.patch " # patches were found here: -# http://distfiles.gentoo.org/distfiles/$pkgname-$pkgver-patches-1.3.tar.lzma - -build () { - cd "$srcdir/$pkgname-$pkgver" - for i in ../*.patch; do - msg "Applying $i" - patch -p1 < $i || return 1 +# http://distfiles.gentoo.org/distfiles/gdb-7.2-patches-1.tar.xz +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) + msg "Applying $i" + patch -p1 -i "$srcdir"/$i || return 1 + ;; + esac done +} +build () { + cd "$_builddir" ./configure --prefix=/usr \ --disable-nls \ --without-system-readline \ @@ -29,6 +35,10 @@ build () { --mandir=/usr/share/man \ --infodir=/usr/share/info make || return 1 +} + +package() { + cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/share/info/dir # those are provided by binutils @@ -36,6 +46,5 @@ build () { rm -rf "$pkgdir"/usr/lib } -md5sums="c9da266b884fb8fa54df786dfaadbc7a gdb-6.8.tar.bz2 -7d5bcb23ffbadb9ce6ac24f37003f619 50_all_gdb-pie-1.patch -33992db76732d26c6d1a3703b52e2c94 50_all_gdb-pie-2.patch" +md5sums="64260e6c56979ee750a01055f16091a5 gdb-7.2.tar.bz2 +eb81ee111ba23682d4257dad50e01de0 80_all_gdb-6.5-dwarf-stack-overflow.patch" |