commit:     723fdafd10de6568b6348ad7233d3dc26757995e
Author:     Marty E. Plummer <hanetzer <AT> startmail <DOT> com>
AuthorDate: Fri Apr 20 15:32:50 2018 +0000
Commit:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Mon Apr 23 14:53:16 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=723fdafd

sys-devel/gdb-apple: epatch->PATCHES=()

Also reworked patches to be -p1 (tricky due to the wierd ${S} setting.

Package-Manager: Portage-2.3.31, Repoman-2.3.9

 .../gdb-apple/files/gdb-apple-1461-darwin8.patch   | 28 +++++++++++-----------
 .../gdb-apple/files/gdb-apple-1461-dyld-info.patch |  4 ++--
 sys-devel/gdb-apple/gdb-apple-1461.ebuild          | 18 +++++++-------
 sys-devel/gdb-apple/gdb-apple-1752.ebuild          | 20 +++++++++-------
 sys-devel/gdb-apple/gdb-apple-768-r1.ebuild        | 15 ++++++------
 sys-devel/gdb-apple/gdb-apple-966.ebuild           | 21 ++++++++--------
 6 files changed, 56 insertions(+), 50 deletions(-)

diff --git a/sys-devel/gdb-apple/files/gdb-apple-1461-darwin8.patch 
b/sys-devel/gdb-apple/files/gdb-apple-1461-darwin8.patch
index 40ef761e8f7..c89c82a0d18 100644
--- a/sys-devel/gdb-apple/files/gdb-apple-1461-darwin8.patch
+++ b/sys-devel/gdb-apple/files/gdb-apple-1461-darwin8.patch
@@ -1,5 +1,5 @@
---- gdb-1461.2/src/gdb/macosx/macosx-nat-inferior.c
-+++ gdb-1461.2/src/gdb/macosx/macosx-nat-inferior.c
+--- a/gdb/macosx/macosx-nat-inferior.c
++++ b/gdb/macosx/macosx-nat-inferior.c
 @@ -60,13 +60,17 @@
  #include <sys/sysctl.h>
  #include <sys/proc.h>
@@ -18,8 +18,8 @@
  
  #include "macosx-nat-dyld.h"
  #include "macosx-nat-inferior.h"
---- gdb-1461.2/src/gdb/macosx/macosx-nat-info.c
-+++ gdb-1461.2/src/gdb/macosx/macosx-nat-info.c
+--- a/gdb/macosx/macosx-nat-info.c
++++ b/gdb/macosx/macosx-nat-info.c
 @@ -45,6 +45,22 @@
  #include "macosx-nat-inferior.h"
  #include "macosx-nat-inferior-debug.h"
@@ -43,8 +43,8 @@
  extern macosx_inferior_status *macosx_status;
  
  #define CHECK_ARGS(what, args) \
---- gdb-1461.2/src/gdb/macosx/macosx-nat-infthread.c
-+++ gdb-1461.2/src/gdb/macosx/macosx-nat-infthread.c
+--- a/gdb/macosx/macosx-nat-infthread.c
++++ b/gdb/macosx/macosx-nat-infthread.c
 @@ -36,8 +36,10 @@
  #include <sys/dir.h>
  #include <inttypes.h>
@@ -56,8 +56,8 @@
  
  #include "macosx-nat-inferior.h"
  #include "macosx-nat-inferior-util.h"
---- gdb-1461.2/src/gdb/macosx/macosx-tdep.c
-+++ gdb-1461.2/src/gdb/macosx/macosx-tdep.c
+--- a/gdb/macosx/macosx-tdep.c
++++ b/gdb/macosx/macosx-tdep.c
 @@ -63,7 +63,6 @@
  #include "gdbcore.h"
  
@@ -66,8 +66,8 @@
  #include <sys/types.h>
  #include <sys/stat.h>
  #include <sys/param.h>
---- gdb-1461.2/src/gdb/remote.c
-+++ gdb-1461.2/src/gdb/remote.c
+--- a/gdb/remote.c
++++ b/gdb/remote.c
 @@ -62,7 +62,6 @@
  #include "macosx-nat-dyld.h"
  #include "macosx-nat-dyld-process.h"
@@ -90,8 +90,8 @@
  }
  
  static void
---- gdb-1461.2/src/gdb/symfile.c
-+++ gdb-1461.2/src/gdb/symfile.c
+--- a/gdb/symfile.c
++++ b/gdb/symfile.c
 @@ -67,7 +67,6 @@
  #include <ctype.h>
  #include <time.h>
@@ -100,8 +100,8 @@
  
  #include <sys/mman.h>
  
---- gdb-1461.2/src/gdb/utils.c
-+++ gdb-1461.2/src/gdb/utils.c
+--- a/gdb/utils.c
++++ b/gdb/utils.c
 @@ -27,7 +27,6 @@
  #include "gdb_string.h"
  #include "event-top.h"

diff --git a/sys-devel/gdb-apple/files/gdb-apple-1461-dyld-info.patch 
b/sys-devel/gdb-apple/files/gdb-apple-1461-dyld-info.patch
index 75b91043227..fb9ca9c7411 100644
--- a/sys-devel/gdb-apple/files/gdb-apple-1461-dyld-info.patch
+++ b/sys-devel/gdb-apple/files/gdb-apple-1461-dyld-info.patch
@@ -1,8 +1,8 @@
 If dyld-info is not available, don't try to compile unreachable code
 using it either.
 
---- gdb-1461.2/src/gdb/macosx/macosx-nat-dyld.c
-+++ gdb-1461.2/src/gdb/macosx/macosx-nat-dyld.c
+--- a/gdb/macosx/macosx-nat-dyld.c
++++ b/gdb/macosx/macosx-nat-dyld.c
 @@ -731,7 +731,7 @@
  {
  #if !defined (TASK_DYLD_INFO) || !defined (NM_NEXTSTEP)

diff --git a/sys-devel/gdb-apple/gdb-apple-1461.ebuild 
b/sys-devel/gdb-apple/gdb-apple-1461.ebuild
index 39484c62c31..7127e61d244 100644
--- a/sys-devel/gdb-apple/gdb-apple-1461.ebuild
+++ b/sys-devel/gdb-apple/gdb-apple-1461.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="6"
+EAPI=6
 
 inherit eutils flag-o-matic
 
@@ -24,16 +24,18 @@ DEPEND="${RDEPEND}
 
 S=${WORKDIR}/gdb-${APPLE_PV}/src
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-no-global-gdbinit.patch
+       "${FILESDIR}"/${PN}-768-texinfo.patch
+       "${FILESDIR}"/${P}-dyld-info.patch
+)
+
 src_prepare() {
-       epatch "${FILESDIR}"/${PN}-no-global-gdbinit.patch
-       epatch "${FILESDIR}"/${PN}-768-texinfo.patch
-       epatch "${FILESDIR}"/${P}-dyld-info.patch
-       [[ ${CHOST} == *-darwin8 ]] && epatch "${FILESDIR}"/${P}-darwin8.patch
+       default
+       [[ ${CHOST} == *-darwin8 ]] && eapply "${FILESDIR}"/${P}-darwin8.patch
 
        # for FSF gcc / gcc-apple:42
        sed -e 's/-Wno-long-double//' -i gdb/config/*/macosx.mh
-
-       eapply_user
 }
 
 src_configure() {

diff --git a/sys-devel/gdb-apple/gdb-apple-1752.ebuild 
b/sys-devel/gdb-apple/gdb-apple-1752.ebuild
index 6a6d6a5c511..f374628fb7d 100644
--- a/sys-devel/gdb-apple/gdb-apple-1752.ebuild
+++ b/sys-devel/gdb-apple/gdb-apple-1752.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="6"
+EAPI=6
 
 inherit eutils flag-o-matic
 
@@ -24,14 +24,16 @@ DEPEND="${RDEPEND}
 
 S=${WORKDIR}/gdb-${APPLE_PV}/src
 
-src_prepare() {
-       epatch "${FILESDIR}"/${PN}-no-global-gdbinit.patch
-       epatch "${FILESDIR}"/${PN}-768-texinfo.patch
-       epatch "${FILESDIR}"/${PN}-1518-darwin8-9.patch
-       epatch "${FILESDIR}"/${PN}-1705-darwin8-10.patch
-       [[ ${CHOST} == *-darwin8 ]] && epatch 
"${FILESDIR}"/${PN}-1518-darwin8.patch
+PATCHES=(
+       "${FILESDIR}"/${PN}-no-global-gdbinit.patch
+       "${FILESDIR}"/${PN}-768-texinfo.patch
+       "${FILESDIR}"/${PN}-1518-darwin8-9.patch
+       "${FILESDIR}"/${PN}-1705-darwin8-10.patch
+)
 
-       eapply_user
+src_prepare() {
+       default
+       [[ ${CHOST} == *-darwin8 ]] && eapply 
"${FILESDIR}"/${PN}-1518-darwin8.patch
 }
 
 src_configure() {

diff --git a/sys-devel/gdb-apple/gdb-apple-768-r1.ebuild 
b/sys-devel/gdb-apple/gdb-apple-768-r1.ebuild
index 1206ecb0b60..e9f84fc168a 100644
--- a/sys-devel/gdb-apple/gdb-apple-768-r1.ebuild
+++ b/sys-devel/gdb-apple/gdb-apple-768-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="6"
+EAPI=6
 
 inherit eutils flag-o-matic
 
@@ -23,14 +23,15 @@ DEPEND="${RDEPEND}
 
 S=${WORKDIR}/gdb-${PV}/src
 
-src_prepare() {
-       epatch "${FILESDIR}"/${P}-texinfo.patch
-       epatch "${FILESDIR}"/${P}-darwin-arch.patch
+PATCHES=(
+       "${FILESDIR}"/${P}-texinfo.patch
+       "${FILESDIR}"/${P}-darwin-arch.patch
+)
 
+src_prepare() {
+       default
        # for FSF gcc / gcc-apple:42
        sed -e 's/-Wno-long-double//' -i gdb/config/*/macosx.mh
-
-       eapply_user
 }
 
 src_configure() {

diff --git a/sys-devel/gdb-apple/gdb-apple-966.ebuild 
b/sys-devel/gdb-apple/gdb-apple-966.ebuild
index 15017df485c..7ffb29ce62a 100644
--- a/sys-devel/gdb-apple/gdb-apple-966.ebuild
+++ b/sys-devel/gdb-apple/gdb-apple-966.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="6"
+EAPI=6
 
 inherit eutils flag-o-matic
 
@@ -23,17 +23,18 @@ DEPEND="${RDEPEND}
 
 S=${WORKDIR}/gdb-${PV}/src
 
-src_prepare() {
-       epatch "${FILESDIR}"/${PN}-768-texinfo.patch
-       epatch "${FILESDIR}"/${PN}-768-darwin-arch.patch
-       epatch "${FILESDIR}"/${PN}-962-darwin8.patch
-       epatch "${FILESDIR}"/${PN}-962-darwin64.patch
-       epatch "${FILESDIR}"/${PN}-962-demangle.patch
+PATCHES=(
+       "${FILESDIR}"/${PN}-768-texinfo.patch
+       "${FILESDIR}"/${PN}-768-darwin-arch.patch
+       "${FILESDIR}"/${PN}-962-darwin8.patch
+       "${FILESDIR}"/${PN}-962-darwin64.patch
+       "${FILESDIR}"/${PN}-962-demangle.patch
+)
 
+src_prepare() {
+       default
        # for FSF gcc / gcc-apple:42
        sed -e 's/-Wno-long-double//' -i gdb/config/*/macosx.mh
-
-       eapply_user
 }
 
 src_configure() {

Reply via email to