gdb-cross: fix issue where patch has already been applied to 6.6
authorShane Volpe <shanevolpe@gmail.com>
Wed, 7 Feb 2007 20:28:39 +0000 (20:28 +0000)
committerCliff Brake <cbrake@bec-systems.com>
Wed, 7 Feb 2007 20:28:39 +0000 (20:28 +0000)
gdb-cross version 6.6 fails the patch process because the sim-install.patch
tries to apply patches to Makefile-common which have already been merged into
gdm mainstream.
Attached is a patch for OE that seperates the two patches in sim-install.patch
so that gdb-cross 6.6 only applies the first one while gdb-cross 6.3 (which
also uses the sim-install.patch applies both.

packages/gdb/files/sim-install-makefile-common.patch [moved from packages/gdb/files/sim-install.patch with 75% similarity]
packages/gdb/files/sim-install-makefile.patch [new file with mode: 0644]
packages/gdb/gdb-cross_6.3.bb
packages/gdb/gdb-cross_6.6.bb

similarity index 75%
rename from packages/gdb/files/sim-install.patch
rename to packages/gdb/files/sim-install-makefile-common.patch
index 3c88c4c..24550ed 100644 (file)
@@ -1,15 +1,3 @@
---- gdb-6.1/sim/common/Makefile.in~    2004-01-15 21:25:06.000000000 +0000
-+++ gdb-6.1/sim/common/Makefile.in     2004-07-22 17:07:46.237809032 +0100
-@@ -34,7 +34,7 @@
- datadir = @datadir@
- mandir = @mandir@
--man1dir = $(mandir)/man1
-+man1dir = $(DESTDIR)$(mandir)/man1
- infodir = @infodir@
- includedir = @includedir@
-
 --- gdb-6.1/sim/common/Make-common.in~sim-install.patch        2003-09-08 18:24:59.000000000 +0100
 +++ gdb-6.1/sim/common/Make-common.in  2004-07-22 17:56:18.947423032 +0100
 @@ -581,14 +581,14 @@
diff --git a/packages/gdb/files/sim-install-makefile.patch b/packages/gdb/files/sim-install-makefile.patch
new file mode 100644 (file)
index 0000000..7ac6749
--- /dev/null
@@ -0,0 +1,11 @@
+--- gdb-6.6~org/sim/common/Makefile.in 2007-01-30 09:23:31.000000000 -0500
++++ gdb-6.6/sim/common/Makefile.in     2007-01-30 09:25:32.000000000 -0500
+@@ -34,7 +34,7 @@
+ datadir = @datadir@
+ mandir = @mandir@
+-man1dir = $(mandir)/man1
++man1dir = $(DESTDIR)$(mandir)/man1
+ infodir = @infodir@
+ includedir = @includedir@
index 9cc72cc..5dd5cf5 100644 (file)
@@ -5,9 +5,12 @@ DEPENDS = "ncurses-native"
 
 inherit autotools sdk
 
+PR = "r1"
+
 S = "${WORKDIR}/gdb-${PV}"
 SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \
-       file://sim-install.patch;patch=1"
+       file://sim-install-makefile.patch;patch=1 \
+       file://sim-install-makefile-common.patch;patch=1"
 
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gdb-${PV}"
 
index 32076b5..03d9cda 100644 (file)
@@ -6,9 +6,11 @@ DEPENDS = "ncurses-native"
 
 inherit autotools sdk
 
+PR = "r1"
+
 S = "${WORKDIR}/gdb-${PV}"
 SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \
-       file://sim-install.patch;patch=1"
+       file://sim-install-makefile.patch;patch=1"
 
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gdb-${PV}"