Patchwork [1/1] autotools.bbclass: force copy Makefile.in.in to ${S}/po/

login
register
mail settings
Submitter rongqing.li@windriver.com
Date June 26, 2013, 1:58 a.m.
Message ID <161dea7f4ad42cd73dcff020462d69e394fe5e39.1372208464.git.rongqing.li@windriver.com>
Download mbox | patch
Permalink /patch/52339/
State Accepted
Commit 6e1b17f19411ed897c53ae0ef41a2d2972a9c113
Headers show

Comments

rongqing.li@windriver.com - June 26, 2013, 1:58 a.m.
From: "Roy.Li" <rongqing.li@windriver.com>

If a Makefile.in.in has existed under ${S}/po/ and is read-only, cp will fail.

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
---
 meta/classes/autotools.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 66c0f5d..4e4ef98 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -201,7 +201,7 @@  autotools_do_configure() {
 			# We'd call gettextize here if it wasn't so broken...
 				cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${AUTOTOOLS_AUXDIR}/
 				if [ -d ${S}/po/ ]; then
-					cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/po/
+					cp -f ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/po/
 					if [ ! -e ${S}/po/remove-potcdate.sin ]; then
 						cp ${STAGING_DATADIR_NATIVE}/gettext/po/remove-potcdate.sin ${S}/po/
 					fi