* [PATCH 0/1] Fix a program with ".." in a DB patch's path.
@ 2011-03-18 18:39 Mark Hatle
2011-03-18 18:39 ` [PATCH 1/1] db: Fix path of arm-thumb patch Mark Hatle
2011-03-18 23:26 ` [PATCH 0/1] Fix a program with ".." in a DB patch's path Richard Purdie
0 siblings, 2 replies; 3+ messages in thread
From: Mark Hatle @ 2011-03-18 18:39 UTC (permalink / raw)
To: poky
Fix a problem with ".." in a DB patch's path.
Likely this is not the final technically correct fix.. but we need it ASAP to avoid
build problems on Fedora 14.
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: mhatle/bernard/fixes
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=mhatle/bernard/fixes
Thanks,
Mark Hatle <mark.hatle@windriver.com>
---
Mark Hatle (1):
db: Fix path of arm-thumb patch
.../db/db/arm-thumb-mutex_db5.patch | 4 ++--
meta/recipes-support/db/db_5.1.19.bb | 9 ++++++---
2 files changed, 8 insertions(+), 5 deletions(-)
--
1.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] db: Fix path of arm-thumb patch
2011-03-18 18:39 [PATCH 0/1] Fix a program with ".." in a DB patch's path Mark Hatle
@ 2011-03-18 18:39 ` Mark Hatle
2011-03-18 23:26 ` [PATCH 0/1] Fix a program with ".." in a DB patch's path Richard Purdie
1 sibling, 0 replies; 3+ messages in thread
From: Mark Hatle @ 2011-03-18 18:39 UTC (permalink / raw)
To: poky
Newer versions of patch, such as in Fedora 14, don't like ".." within
the middle of the file to be patched path.
In order to fix the issue we have to hand apply the patch instead of using
the normal mechanisms. Only flaw with the os.system(...) approach is if it
fails we don't get any notification or a resolver failure.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
.../db/db/arm-thumb-mutex_db5.patch | 4 ++--
meta/recipes-support/db/db_5.1.19.bb | 9 ++++++---
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/meta/recipes-support/db/db/arm-thumb-mutex_db5.patch b/meta/recipes-support/db/db/arm-thumb-mutex_db5.patch
index 37d0d93..51d4854 100644
--- a/meta/recipes-support/db/db/arm-thumb-mutex_db5.patch
+++ b/meta/recipes-support/db/db/arm-thumb-mutex_db5.patch
@@ -1,5 +1,5 @@
---- db-5.1.19/../src/dbinc/mutex_int.h.orig 2011-01-05 19:21:42.181805366 -0600
-+++ db-5.1.19/../src/dbinc/mutex_int.h 2011-01-05 19:24:53.141853117 -0600
+--- db-5.1.19/src/dbinc/mutex_int.h.orig 2011-01-05 19:21:42.181805366 -0600
++++ db-5.1.19/src/dbinc/mutex_int.h 2011-01-05 19:24:53.141853117 -0600
@@ -474,6 +474,25 @@
#ifdef LOAD_ACTUAL_MUTEX_CODE
diff --git a/meta/recipes-support/db/db_5.1.19.bb b/meta/recipes-support/db/db_5.1.19.bb
index 919e532..94ce180 100644
--- a/meta/recipes-support/db/db_5.1.19.bb
+++ b/meta/recipes-support/db/db_5.1.19.bb
@@ -14,11 +14,10 @@ HOMEPAGE = "http://www.oracle.com/technology/products/berkeley-db/db/index.html"
LICENSE = "BSD Sleepycat"
VIRTUAL_NAME ?= "virtual/db"
CONFLICTS = "db3"
-PR = "r1"
+PR = "r2"
SRC_URI = "http://download.oracle.com/berkeley-db/db-${PV}.tar.gz"
-#SRC_URI_MD5 = "http://downloads.sleepycat.com/db-${PV}.tar.gz.md5"
-SRC_URI += "file://arm-thumb-mutex_db5.patch;patch=1"
+SRC_URI += "file://arm-thumb-mutex_db5.patch;apply=no"
SRC_URI[md5sum] = "76fcbfeebfcd09ba0b4d96bfdf8d884d"
SRC_URI[sha256sum] = "0194d4ca9266ba1a1c0bfbc233b18bfd05f63163453c81ebcdfdc7112d5ac850"
@@ -80,6 +79,10 @@ do_configure() {
oe_runconf
}
+do_patch_append() {
+ os.system("cd ${S}/.. ; patch -p1 -i ${WORKDIR}/arm-thumb-mutex_db5.patch")
+}
+
do_install_append() {
mkdir -p ${D}/${includedir}/db51
#mv ${D}/${includedir}/db_185.h ${D}/${includedir}/db51/.
--
1.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 0/1] Fix a program with ".." in a DB patch's path.
2011-03-18 18:39 [PATCH 0/1] Fix a program with ".." in a DB patch's path Mark Hatle
2011-03-18 18:39 ` [PATCH 1/1] db: Fix path of arm-thumb patch Mark Hatle
@ 2011-03-18 23:26 ` Richard Purdie
1 sibling, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2011-03-18 23:26 UTC (permalink / raw)
To: Mark Hatle; +Cc: poky
On Fri, 2011-03-18 at 13:39 -0500, Mark Hatle wrote:
> Fix a problem with ".." in a DB patch's path.
>
> Likely this is not the final technically correct fix.. but we need it ASAP to avoid
> build problems on Fedora 14.
>
> Pull URL: git://git.pokylinux.org/poky-contrib.git
> Branch: mhatle/bernard/fixes
> Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=mhatle/bernard/fixes
>
> Thanks,
> Mark Hatle <mark.hatle@windriver.com>
> ---
>
>
> Mark Hatle (1):
> db: Fix path of arm-thumb patch
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-18 23:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-18 18:39 [PATCH 0/1] Fix a program with ".." in a DB patch's path Mark Hatle
2011-03-18 18:39 ` [PATCH 1/1] db: Fix path of arm-thumb patch Mark Hatle
2011-03-18 23:26 ` [PATCH 0/1] Fix a program with ".." in a DB patch's path Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.