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 <madhu13...@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.bur...@intel.com>, < openembedded-core@lists.openembedded.org> Cc: Poky Project <p...@yoctoproject.org> Hi Ross, Attached the patch file. Regards, -Madhu. On Tue, Feb 12, 2019 at 3:52 PM Burton, Ross <ross.bur...@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@lists.openembedded.org? > > Ross > > On Tue, 12 Feb 2019 at 06:42, Madhu B <madhu13...@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@.service > ${D}${systemd_unitdir}/system/ > > - sed -i -e s/\@BAUDRATE\@/$default_baudrate/g > ${D}${systemd_unitdir}/system/serial-getty@.service > > + sed -i -e 's/\@BAUDRATE\@/$default_baudrate/g' > ${D}${systemd_unitdir}/system/serial-getty@.service > > > > tmp="${SERIAL_CONSOLES}" > > for entry in $tmp ; do > > > > Is it really missed or am I missing anything? > > > > Regards, > > -Madhu. > > > > -- > > _______________________________________________ > > poky mailing list > > p...@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/poky >
From e74a1931af9c5b883345345a03a6a9ebf6821cb0 Mon Sep 17 00:00:00 2001 From: Madhu <madhu1313b@gmail.com> 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 <madhu1313b@gmail.com> --- 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}/serial-getty@.service ${D}${systemd_unitdir}/system/ - sed -i -e s/\@BAUDRATE\@/$default_baudrate/g ${D}${systemd_unitdir}/system/serial-getty@.service + sed -i -e 's/\@BAUDRATE\@/$default_baudrate/g' ${D}${systemd_unitdir}/system/serial-getty@.service tmp="${SERIAL_CONSOLES}" for entry in $tmp ; do -- 1.9.1
-- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core