Hello everyone,
There is an syntax error with the usage of sed
command in poky/meta/recipes-core/systemd/systemd-serialgetty.bb, fixed it
and attached the patch file.
Regards,
-Madhu.
---------- Forwarded message ---------
From: Madhu B <[email protected]>
Date: Tue, Feb 12, 2019 at 4:20 PM
Subject: Re: [poky] Getting an syntax error with 'sed' in
systemd-serialgetty.bb
To: Burton, Ross <[email protected]>, <
[email protected]>
Cc: Poky Project <[email protected]>
Hi Ross,
Attached the patch file.
Regards,
-Madhu.
On Tue, Feb 12, 2019 at 3:52 PM Burton, Ross <[email protected]> wrote:
> That looks reasonable to me, can you send it as a proper patch
> (git-send-email, nice commit message, signed-off-by tag) to
> [email protected]?
>
> Ross
>
> On Tue, 12 Feb 2019 at 06:42, Madhu B <[email protected]> wrote:
> >
> > Hello everyone,
> > While trying to build the AGL image, I am getting
> an syntax error lik e "sed: -e expression #1, char 19: unterminated `s'
> command".
> >
> > With the below patch, I resolved that syntax error.
> > diff --git a/meta/recipes-core/systemd/systemd-serialgetty.bb
> b/meta/recipes-core/systemd/systemd-serialgetty.bb
> > index d934716..78b07c2 100644
> > --- a/meta/recipes-core/systemd/systemd-serialgetty.bb
> > +++ b/meta/recipes-core/systemd/systemd-serialgetty.bb
> > @@ -17,7 +17,7 @@ do_install() {
> > install -d ${D}${systemd_unitdir}/system/
> > install -d
> ${D}${sysconfdir}/systemd/system/getty.target.wants/
> > install -m 0644 ${WORKDIR}/[email protected]
> ${D}${systemd_unitdir}/system/
> > - sed -i -e s/\@BAUDRATE\@/$default_baudrate/g
> ${D}${systemd_unitdir}/system/[email protected]
> > + sed -i -e 's/\@BAUDRATE\@/$default_baudrate/g'
> ${D}${systemd_unitdir}/system/[email protected]
> >
> > tmp="${SERIAL_CONSOLES}"
> > for entry in $tmp ; do
> >
> > Is it really missed or am I missing anything?
> >
> > Regards,
> > -Madhu.
> >
> > --
> > _______________________________________________
> > poky mailing list
> > [email protected]
> > https://lists.yoctoproject.org/listinfo/poky
>
From e74a1931af9c5b883345345a03a6a9ebf6821cb0 Mon Sep 17 00:00:00 2001
From: Madhu <[email protected]>
Date: Tue, 12 Feb 2019 16:03:47 +0530
Subject: [PATCH] systemd-serialgetty.bb: Fix the syntax error related to sed
The current syntax of sed is not correct, it will report an compile
time error as below:
"sed: -e expression #1, char 19: unterminated `s' command"
Signed-off-by: Madhu <[email protected]>
---
meta/recipes-core/systemd/systemd-serialgetty.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/systemd/systemd-serialgetty.bb b/meta/recipes-core/systemd/systemd-serialgetty.bb
index d934716..78b07c2 100644
--- a/meta/recipes-core/systemd/systemd-serialgetty.bb
+++ b/meta/recipes-core/systemd/systemd-serialgetty.bb
@@ -17,7 +17,7 @@ do_install() {
install -d ${D}${systemd_unitdir}/system/
install -d ${D}${sysconfdir}/systemd/system/getty.target.wants/
install -m 0644 ${WORKDIR}/[email protected] ${D}${systemd_unitdir}/system/
- sed -i -e s/\@BAUDRATE\@/$default_baudrate/g ${D}${systemd_unitdir}/system/[email protected]
+ sed -i -e 's/\@BAUDRATE\@/$default_baudrate/g' ${D}${systemd_unitdir}/system/[email protected]
tmp="${SERIAL_CONSOLES}"
for entry in $tmp ; do
--
1.9.1
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core