From f6244a9d3da7c301f19efc114c2aaf39e5eec299 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Wed, 24 Apr 2013 15:45:42 +0200 Subject: cpan.bbclass: use '|' as sed separator for entry with paths With normal toolchain it works. But fails badly when external Linaro toolchain is used. And this is why: -e "s/^\(CCFLAGS =.*\)/\1 -isystem/home/hrw/devel/canonical/aarch64/openembedded/build/linaro-tcwg/gcc-linaro-aarch64-linux-gnu-4.7-2013.04-20130415_linux//aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types/" \ Signed-off-by: Marcin Juszkiewicz Signed-off-by: Saul Wold --- meta/classes/cpan.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/classes') diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass index 957a6e2bfa..bef9e82685 100644 --- a/meta/classes/cpan.bbclass +++ b/meta/classes/cpan.bbclass @@ -26,7 +26,7 @@ cpan_do_configure () { test -f $f2 || continue sed -i -e "s:\(PERL_ARCHLIB = \).*:\1${PERL_ARCHLIB}:" \ -e 's/perl.real/perl/' \ - -e "s/^\(CCFLAGS =.*\)/\1 ${CFLAGS}/" \ + -e "s|^\(CCFLAGS =.*\)|\1 ${CFLAGS}|" \ $f2 done fi -- cgit v1.2.3