On Wed, Dec 20, 2023 at 10:42 PM Khem Raj <raj.k...@gmail.com> wrote:

> On Wed, Dec 20, 2023 at 7:53 AM Ross Burton <ross.bur...@arm.com> wrote:
> >
> > From: Ross Burton <ross.bur...@arm.com>
> >
> > Lemon is packaged as part of sqlite, and sqlite 3.7.3 was released back
> > in 2010[1].
> >
> > As the small source tarballs no longer include the tools, fetch the
> > sqlite github mirror instead.
> >
> > Don't bother installing a pretty minimal manpage, as very few projects
> > use lemon (sqlite itself, and libpbnjson).
> >
> > [1] https://www.sqlite.org/releaselog/3_7_3.html
> >
> ...

> diff --git a/meta-oe/recipes-devtools/lemon/lemon.inc
> b/meta-oe/recipes-devtools/lemon/lemon.inc
> > deleted file mode 100644
> > index 57b9fb710e..0000000000
> > --- a/meta-oe/recipes-devtools/lemon/lemon.inc
> > +++ /dev/null
> > @@ -1,25 +0,0 @@
> > -DESCRIPTION = "The Lemon Parser Generator"
> > -HOMEPAGE = "http://www.hwaci.com/sw/lemon/";
> > -LICENSE = "PD"
> > -SECTION = "devel"
> > -
> > -SRC_URI = "http://www.sqlite.org/sqlite-${PV}.tar.gz \
> > -           file://lemon.1"
> > -
> > -S = "${WORKDIR}/sqlite-${PV}/tool"
> > -
> > -do_compile() {
> > -    ${CC} ${CFLAGS} lemon.c -c -o lemon.o
> > -    ${CCLD} ${LDFLAGS} lemon.o -o lemon
> > -}
> > -
> > -do_install() {
> > -    install -d ${D}${bindir}
> > -    install -m 0755 lemon ${D}${bindir}
> > -    install -m 0644 lempar.c ${D}${bindir}
> > -    install -d ${D}${mandir}/man1
> > -    install -m 0644 ${WORKDIR}/lemon.1 ${D}${mandir}/man1/
> > -}
> > -
> > -BBCLASSEXTEND = "native"
> > -
> > diff --git a/meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb
> b/meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb
> > new file mode 100644
> > index 0000000000..1b849922a6
> > --- /dev/null
> > +++ b/meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb
> > @@ -0,0 +1,24 @@
> > +DESCRIPTION = "The Lemon Parser Generator"
> > +HOMEPAGE = "https://sqlite.org/src/file/doc/lemon.html";
> > +LICENSE = "PD"
> > +SECTION = "devel"
> > +
> > +LIC_FILES_CHKSUM =
> "file://tool/lemon.c;endline=8;md5=c7551a78fa3fdecd96d1ad6761d205ee"
> > +
> > +SRC_URI = "git://
> github.com/sqlite/sqlite;protocol=https;branch=branch-3.44"
> > +
> > +SRCREV = "c8f9803dc32bfee78a9ca2b1abbe39499729219b"
> > +
> > +S = "${WORKDIR}/git"
> > +
> > +do_compile() {
> > +    ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} tool/lemon.c -o lemon
>
> why do we need CPPFLAGS here ?
>
> > +}
> > +
> > +do_install() {
> > +    install -d ${D}${bindir}
> > +    install -m 0755 lemon ${D}${bindir}
> > +    install -m 0644 tool/lempar.c ${D}${bindir}
>
> .c file in bindir seems odd.
>

I was wondering about it as well, but looks like lemon binary looks for
this as a default template next to lemon binary in:
https://github.com/sqlite/sqlite/blob/master/tool/lemon.c#L3654

that's why it's in bindir and was there before this upgrade as well.

> +}
> > +
> > +BBCLASSEXTEND = "native nativesdk"
> > diff --git a/meta-oe/recipes-devtools/lemon/lemon_3.7.3.bb
> b/meta-oe/recipes-devtools/lemon/lemon_3.7.3.bb
> > deleted file mode 100644
> > index 354db17e6e..0000000000
> > --- a/meta-oe/recipes-devtools/lemon/lemon_3.7.3.bb
> > +++ /dev/null
> > @@ -1,7 +0,0 @@
> > -require lemon.inc
> > -
> > -LIC_FILES_CHKSUM =
> "file://lemon.c;endline=8;md5=c7551a78fa3fdecd96d1ad6761d205ee"
> > -
> > -SRC_URI[md5sum] = "5437978aae90350cf984993091e0d695"
> > -SRC_URI[sha256sum] =
> "dbf352e8fbb74829f5e7a88f9f6ceeb80a709537f668c36e4b6cdfb271309ef6"
> > -
> > --
> > 2.34.1
> >
> >
> >
> >
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#107677): 
https://lists.openembedded.org/g/openembedded-devel/message/107677
Mute This Topic: https://lists.openembedded.org/mt/103283009/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to