[OE-core] Fwd: [poky] Getting an syntax error with 'sed' in systemd-serialgetty.bb

Madhu B madhu1313b at gmail.com
Tue Feb 12 10:56:11 UTC 2019


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 <madhu1313b at gmail.com>
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 <ross.burton at intel.com>, <
openembedded-core at lists.openembedded.org>
Cc: Poky Project <poky at yoctoproject.org>


Hi Ross,
                Attached the patch file.

Regards,
-Madhu.

On Tue, Feb 12, 2019 at 3:52 PM Burton, Ross <ross.burton at intel.com> 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
> openembedded-core at lists.openembedded.org?
>
> Ross
>
> On Tue, 12 Feb 2019 at 06:42, Madhu B <madhu1313b at gmail.com> 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}/serial-getty at .service
> ${D}${systemd_unitdir}/system/
> > -               sed -i -e s/\@BAUDRATE\@/$default_baudrate/g
> ${D}${systemd_unitdir}/system/serial-getty at .service
> > +               sed -i -e 's/\@BAUDRATE\@/$default_baudrate/g'
> ${D}${systemd_unitdir}/system/serial-getty at .service
> >
> >                 tmp="${SERIAL_CONSOLES}"
> >                 for entry in $tmp ; do
> >
> > Is it really missed or am I missing anything?
> >
> > Regards,
> > -Madhu.
> >
> > --
> > _______________________________________________
> > poky mailing list
> > poky at yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/poky
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20190212/8a101e8f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-systemd-serialgetty.bb-Fix-the-syntax-error-related-.patch
Type: application/x-patch
Size: 1274 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20190212/8a101e8f/attachment.bin>


More information about the Openembedded-core mailing list