Patchwork [meta-oe,5/6] foxtrotgps: rename configure.in only if it still exists

login
register
mail settings
Submitter Martin Jansa
Date Oct. 1, 2012, 2:38 p.m.
Message ID <78b75773e1968d4311c12e92b2d80c6194685f82.1349102278.git.Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/37537/
State Accepted
Commit 44b3c94232301bbfa97fe967635615ea91c77055
Headers show

Comments

Martin Jansa - Oct. 1, 2012, 2:38 p.m.
* it was failing when do_configure was reexecuted in same workdir

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta-oe/recipes-navigation/foxtrotgps/foxtrotgps_1.1.1.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Patch

diff --git a/meta-oe/recipes-navigation/foxtrotgps/foxtrotgps_1.1.1.bb b/meta-oe/recipes-navigation/foxtrotgps/foxtrotgps_1.1.1.bb
index 4572b8f..0cafdde 100644
--- a/meta-oe/recipes-navigation/foxtrotgps/foxtrotgps_1.1.1.bb
+++ b/meta-oe/recipes-navigation/foxtrotgps/foxtrotgps_1.1.1.bb
@@ -12,8 +12,12 @@  SRC_URI[sha256sum] = "ae9706285510554cc0813ac92522e0d1672b0ddb065307bfacfcff3c32
 
 inherit autotools pkgconfig perlnative
 
+PR = "r1"
+
 do_configure_prepend() {
-  mv ${S}/configure.in ${S}/configure.ac
+  if [ -f ${S}/configure.in ] ; then
+    mv ${S}/configure.in ${S}/configure.ac
+  fi
 }
 
 RRECOMMENDS_${PN} = "gpsd"