[oe-commits] Roy.Li : autotools.bbclass: force copy Makefile.in.in to ${S}/po/

git at git.openembedded.org git at git.openembedded.org
Fri Jun 28 08:07:12 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 6e1b17f19411ed897c53ae0ef41a2d2972a9c113
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6e1b17f19411ed897c53ae0ef41a2d2972a9c113

Author: Roy.Li <rongqing.li at windriver.com>
Date:   Wed Jun 26 09:58:35 2013 +0800

autotools.bbclass: force copy Makefile.in.in to ${S}/po/

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>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/classes/autotools.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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



More information about the Openembedded-commits mailing list