Patchwork [1/1] sqlite: cp instead of mv in do_configure

login
register
mail settings
Submitter Anders Darander
Date April 5, 2012, 5:42 a.m.
Message ID <b2c8f6c6ee91d09594c19275e8f1bdba12e2690a.1333604512.git.anders@chargestorm.se>
Download mbox | patch
Permalink /patch/25181/
State Accepted
Commit 21b04f590feb7dbd9e5932153b3ec46e38ecaecb
Headers show

Comments

Anders Darander - April 5, 2012, 5:42 a.m.
The use of mv in do_configure() made bitbake error out if a second run
of do_configure was requested. Copy the file instead.

Signed-off-by: Anders Darander <anders@chargestorm.se>
---
 meta-oe/recipes-support/sqlite/sqlite_2.8.17.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Otavio Salvador - April 5, 2012, 6:01 p.m.
On Thu, Apr 5, 2012 at 02:42, Anders Darander <anders@chargestorm.se> wrote:
> The use of mv in do_configure() made bitbake error out if a second run
> of do_configure was requested. Copy the file instead.
>
> Signed-off-by: Anders Darander <anders@chargestorm.se>

This fixes the build-failures I had :-D I were going to propose same change.

Acked-by: Otavio Salvador <otavio@ossystems.com.br>

Patch

diff --git a/meta-oe/recipes-support/sqlite/sqlite_2.8.17.bb b/meta-oe/recipes-support/sqlite/sqlite_2.8.17.bb
index b8e03c4..733bb9e 100644
--- a/meta-oe/recipes-support/sqlite/sqlite_2.8.17.bb
+++ b/meta-oe/recipes-support/sqlite/sqlite_2.8.17.bb
@@ -22,7 +22,7 @@  inherit autotools pkgconfig
 do_configure() {
     echo "main.mk is patched, no need to configure"
     # make pkgconfig.bbclass pick this up
-    mv ${WORKDIR}/sqlite.pc ${S}
+    cp ${WORKDIR}/sqlite.pc ${S}
 }
 
 do_compile() {