[OE-core] [PATCH] man: use '#' instead of ', ' as separator in configure
rongqing.li at windriver.com
rongqing.li at windriver.com
Wed May 21 02:16:40 UTC 2014
From: yzhu1 <yanjun.zhu at windriver.com>
$CC is able to has ',', when $CC includes some flags, which will trigger error,
like:
| Creating Makefile from Makefile.in
| sed: -e expression #1, char 72: unknown option to `s'
|
| sed: -e expression #1, char 72: unknown option to `s'
So use '#' instead of ',' as separator, it is more safe for the case.
Signed-off-by: yzhu1 <yanjun.zhu at windriver.com>
Signed-off-by: Roy Li <rongqing.li at windriver.com>
---
meta/recipes-extended/man/man/man-configure.patch | 23 +++++++++++++++++++++
meta/recipes-extended/man/man_1.6g.bb | 1 +
2 files changed, 24 insertions(+)
create mode 100644 meta/recipes-extended/man/man/man-configure.patch
diff --git a/meta/recipes-extended/man/man/man-configure.patch b/meta/recipes-extended/man/man/man-configure.patch
new file mode 100644
index 0000000..edef7d4
--- /dev/null
+++ b/meta/recipes-extended/man/man/man-configure.patch
@@ -0,0 +1,23 @@
+Upstream-Status: Pending
+
+$CC is able to has ',', when $CC includes some flags, which will trigger error,
+like:
+ | Creating Makefile from Makefile.in
+ | sed: -e expression #1, char 72: unknown option to `s'
+ |
+ | sed: -e expression #1, char 72: unknown option to `s'
+
+So use '#' instead of ',' as separator
+
+Signed-off-by: yzhu1 <yanjun.zhu at windriver.com>
+--- a/configure
++++ b/configure
+@@ -1321,7 +1321,7 @@ do
+ echo "Creating $infile from $infile.in"
+ sed -e '
+ s, at version@,$version,
+-s, at CC@,$CC,
++s#@CC@#$CC#
+ s, at EXEEXT@,$EXEEXT,
+ s, at BUILD_CC@,$BUILD_CC,
+ s, at INSTALL@,$INSTALL,
diff --git a/meta/recipes-extended/man/man_1.6g.bb b/meta/recipes-extended/man/man_1.6g.bb
index a66e01c..a2b16d2 100644
--- a/meta/recipes-extended/man/man_1.6g.bb
+++ b/meta/recipes-extended/man/man_1.6g.bb
@@ -34,6 +34,7 @@ SRC_URI = "http://primates.ximian.com/~flucifredi/${BPN}/${BPN}-${PV}.tar.gz \
file://man-1.5m2-sigpipe.patch \
file://man-1.6e-i18n_whatis.patch \
file://man-1.6e-new_sections.patch \
+ file://man-configure.patch \
file://man.1.gz;unpack=false \
file://man.7.gz;unpack=false \
file://man.conf \
--
1.7.10.4
More information about the Openembedded-core
mailing list