[OE-core] [PATCH 1/1] autotools.bbclass: force copy Makefile.in.in to ${S}/po/

rongqing.li at windriver.com rongqing.li at windriver.com
Wed Jun 26 01:58:35 UTC 2013


From: "Roy.Li" <rongqing.li at 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 at windriver.com>
---
 meta/classes/autotools.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
1.7.10.4




More information about the Openembedded-core mailing list