Patchwork [meta-oe,v2,1/1] sqlite: cp instead of mv in do_configure

login
register
mail settings
Submitter Anders Darander
Date April 11, 2012, 6:17 a.m.
Message ID <73d31a874262a0853376d76dd925b5f2fb025d8b.1334124991.git.anders@chargestorm.se>
Download mbox | patch
Permalink /patch/25573/
State Accepted
Headers show

Comments

Anders Darander - April 11, 2012, 6:17 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(-)

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() {