lemon: upgrade to 3.44.2
PATCH 1/2 lemon: upgrade to 3.44.2
From: Ross Burton <[email protected]>
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
--- meta-oe/recipes-devtools/lemon/files/lemon.1 | 63 ------------------- meta-oe/recipes-devtools/lemon/lemon.inc | 25 -------- .../recipes-devtools/lemon/lemon_3.44.2.bb | 24 +++++++ meta-oe/recipes-devtools/lemon/lemon_3.7.3.bb | 7 --- 4 files changed, 24 insertions(+), 95 deletions(-) delete mode 100644 meta-oe/recipes-devtools/lemon/files/lemon.1 delete mode 100644 meta-oe/recipes-devtools/lemon/lemon.inc create mode 100644 meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb delete mode 100644 meta-oe/recipes-devtools/lemon/lemon_3.7.3.bb
meta-oe/recipes-devtools/lemon/files/lemon.1 deleted +0 -63
@@ -1,63 +0,0 @@ -.Dd 2002-10-04 -.Dt LEMON 1 -.Os "Debian GNU/Linux" -.\" Manual page created by Guus Sliepen <[email protected]> -.Sh NAME -.Nm lemon -.Nd The Lemon Parser Generator -.Sh SYNOPSIS -.Nm -.Op Fl bcgmqsx -.Ar input -.Sh DESCRIPTION -.Nm -is an LALR(1) parser generator for C or C++. -It does the same job as bison and yacc. -But -.Nm -is not another bison or yacc clone. -It uses a different grammar syntax which is designed to reduce the number of coding errors. -.Nm -also uses a more sophisticated parsing engine that is faster than yacc and bison -and which is both reentrant and thread-safe. -Furthermore, -.Nm -implements features that can be used to eliminate resource leaks, -making is suitable for use in long-running programs such as graphical user interfaces or embedded controllers. -.Pp -.Nm -will read the grammer from -.Ar input -and write out a parser for that grammar in the C language. -.Sh OPTIONS -.Bl -tag -width indent -.It Fl b -Print only the basis in report. -.It Fl c -Don't compress the action table. -.It Fl g -Print grammar without actions. -.It Fl m -Output a makeheaders compatible file. -.It Fl q -(Quiet) Don't print the report file. -.It Fl s -Print parser stats to standard output. -.It Fl x -Print the version number. -.El -.Sh FILES -.Bl -tag -width indent -.It Pa /usr/share/lemon/lempar.c -Driver template for the -.Nm -parser generator. -.El -.Sh AUTHOR -.Nm -has been written by -.An D. Richard Hipp Aq [email protected] . -.Pp -This manual page was written by -.An Guus Sliepen Aq [email protected] -for the Debian GNU/Linux system.
meta-oe/recipes-devtools/lemon/lemon.inc deleted +0 -25
@@ -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" -
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb new file +24 -0
@@ -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 +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 lemon ${D}${bindir} + install -m 0644 tool/lempar.c ${D}${bindir} +} + +BBCLASSEXTEND = "native nativesdk"
meta-oe/recipes-devtools/lemon/lemon_3.7.3.bb deleted +0 -7
@@ -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" -
Signature · 1 line
2.34.1
PATCH 2/2 php: remove lemon-native build dependency
From: Ross Burton <[email protected]>
This was required by the sqlite2 extension, which was removed from PHP in 2010[1].
[1] https://github.com/php/php-src/commit/6c76f3606cddeb010cf1fc5ea28b47456ea9639e
--- meta-oe/recipes-devtools/php/php_8.2.9.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/php/php_8.2.9.bb +1 -1
@@ -6,7 +6,7 @@ LICENSE = "PHP-3.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=5ebd5be8e2a89f634486445bd164bef0" BBCLASSEXTEND = "native" -DEPENDS = "zlib bzip2 libxml2 virtual/libiconv php-native lemon-native" +DEPENDS = "zlib bzip2 libxml2 virtual/libiconv php-native" DEPENDS:append:libc-musl = " libucontext" DEPENDS:class-native = "zlib-native libxml2-native"
Signature · 1 line
2.34.1
Quoted 137 lines · Ross Burton
From: Ross Burton <[email protected]>
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
Signed-off-by Ross Burton <[email protected]>--- meta-oe/recipes-devtools/lemon/files/lemon.1 | 63 ------------------- meta-oe/recipes-devtools/lemon/lemon.inc | 25 -------- .../recipes-devtools/lemon/lemon_3.44.2.bb | 24 +++++++ meta-oe/recipes-devtools/lemon/lemon_3.7.3.bb | 7 --- 4 files changed, 24 insertions(+), 95 deletions(-) delete mode 100644 meta-oe/recipes-devtools/lemon/files/lemon.1 delete mode 100644 meta-oe/recipes-devtools/lemon/lemon.inc create mode 100644 meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb delete mode 100644 meta-oe/recipes-devtools/lemon/lemon_3.7.3.bbmeta-oe/recipes-devtools/lemon/files/lemon.1 deleted +0
-63@@ -1,63 +0,0 @@ -.Dd 2002-10-04 -.Dt LEMON 1 -.Os "Debian GNU/Linux" -.\" Manual page created by Guus Sliepen <[email protected]> -.Sh NAME -.Nm lemon -.Nd The Lemon Parser Generator -.Sh SYNOPSIS -.Nm -.Op Fl bcgmqsx -.Ar input -.Sh DESCRIPTION -.Nm -is an LALR(1) parser generator for C or C++. -It does the same job as bison and yacc. -But -.Nm -is not another bison or yacc clone. -It uses a different grammar syntax which is designed to reduce the number of coding errors. -.Nm -also uses a more sophisticated parsing engine that is faster than yacc and bison -and which is both reentrant and thread-safe. -Furthermore, -.Nm -implements features that can be used to eliminate resource leaks, -making is suitable for use in long-running programs such as graphical user interfaces or embedded controllers. -.Pp -.Nm -will read the grammer from -.Ar input -and write out a parser for that grammar in the C language. -.Sh OPTIONS -.Bl -tag -width indent -.It Fl b -Print only the basis in report. -.It Fl c -Don't compress the action table. -.It Fl g -Print grammar without actions. -.It Fl m -Output a makeheaders compatible file. -.It Fl q -(Quiet) Don't print the report file. -.It Fl s -Print parser stats to standard output. -.It Fl x -Print the version number. -.El -.Sh FILES -.Bl -tag -width indent -.It Pa /usr/share/lemon/lempar.c -Driver template for the -.Nm -parser generator. -.El -.Sh AUTHOR -.Nm -has been written by -.An D. Richard Hipp Aq [email protected] . -.Pp -This manual page was written by -.An Guus Sliepen Aq [email protected] -for the Debian GNU/Linux system.meta-oe/recipes-devtools/lemon/lemon.inc deleted +0
-25@@ -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" -meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb new file +5
-0@@ -0,0 +1,24 @@ +DESCRIPTION = "The Lemon Parser Generator" +HOMEPAGE = "https://sqlite.org/src/file/doc/lemon.html" +LICENSE = "PD" +SECTION = "devel" +
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb line 15
Quoted 10 lines
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb new file +10
-0+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 ?
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb line 21
Quoted 6 lines
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb new file +6
-0+} + +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.
Quoted 28 lines
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb new file +3
-0+} + +BBCLASSEXTEND = "native nativesdk"meta-oe/recipes-devtools/lemon/lemon_3.7.3.bb deleted +0
-8@@ -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 (#107664): https://lists.openembedded.org/g/openembedded-devel/message/107664
Mute This Topic: https://lists.openembedded.org/mt/103283009/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 76 lines · Khem Raj
Quoted 14 lines · Ross Burton
From: Ross Burton <[email protected]>
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).
...
meta-oe/recipes-devtools/lemon/lemon.inc +0
-0Review
Quoted 31 lines
deleted file mode 100644
index 57b9fb710e..0000000000meta-oe/recipes-devtools/lemon/lemon.inc deleted +0
-25@@ -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" -(quoted diff) +0
-0b/meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb line 6
Quoted 11 lines
new file mode 100644
index 0000000000..1b849922a6meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb new file +6
-0@@ -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"
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb line 8
Quoted 2 lines
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb new file +2
-0+ +SRC_URI = "git://github.com/sqlite/sqlite;protocol=https;branch=branch-3.44"
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb line 15
Quoted 7 lines
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb new file +7
-0+ +SRCREV = "c8f9803dc32bfee78a9ca2b1abbe39499729219b" + +S = "${WORKDIR}/git" + +do_compile() { + ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} tool/lemon.c -o lemonwhy do we need CPPFLAGS here ?
Quoted 9 lines
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb line 21
Quoted 6 lines
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb new file +6
-0+} + +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.
Quoted 37 lines
+}
Review
Quoted 3 lines
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb new file +2
-0+ +BBCLASSEXTEND = "native nativesdk"(quoted diff) +0
-0b/meta-oe/recipes-devtools/lemon/lemon_3.7.3.bb
meta-oe/recipes-devtools/lemon/lemon_3.7.3.bb line 3
Quoted 8 lines
deleted file mode 100644
index 354db17e6e..0000000000meta-oe/recipes-devtools/lemon/lemon_3.7.3.bb deleted +0
-3@@ -1,7 +0,0 @@ -require lemon.inc - -LIC_FILES_CHKSUM ="file://lemon.c;endline=8;md5=c7551a78fa3fdecd96d1ad6761d205ee"
meta-oe/recipes-devtools/lemon/lemon_3.7.3.bb
Quoted 3 lines
meta-oe/recipes-devtools/lemon/lemon_3.7.3.bb deleted +0
-3- -SRC_URI[md5sum] = "5437978aae90350cf984993091e0d695" -SRC_URI[sha256sum] ="
dbf352e8fbb74829f5e7a88f9f6ceeb80a709537f668c36e4b6cdfb271309ef6"Quoted 7 lines
meta-oe/recipes-devtools/lemon/lemon_3.7.3.bb deleted +0
-2- --2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#107675):
https://lists.openembedded.org/g/openembedded-devel/message/107675
Mute This Topic: https://lists.openembedded.org/mt/103283009/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 87 lines · Martin Jansa
Quoted 73 lines · Khem Raj
Quoted 14 lines · Ross Burton
From: Ross Burton <[email protected]>
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).
...
Quoted 42 lines
meta-oe/recipes-devtools/lemon/lemon.inc deleted +0
-25@@ -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" -meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb new file +5
-0@@ -0,0 +1,24 @@ +DESCRIPTION = "The Lemon Parser Generator" +HOMEPAGE = "https://sqlite.org/src/file/doc/lemon.html" +LICENSE = "PD" +SECTION = "devel" +meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb line 15
Quoted 10 lines
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb new file +10
-0+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 lemonwhy do we need CPPFLAGS here ?
Quoted 8 lines
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb line 21
Quoted 6 lines
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb new file +6
-0+} + +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.
Quoted 4 lines
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#L3654that's why it's in bindir and was there before this upgrade as well.
Cool. Makes sense. Thanks Martin
Quoted 32 lines
Quoted 32 lines
Quoted 18 lines
meta-oe/recipes-devtools/lemon/lemon_3.44.2.bb new file +3
-0+} + +BBCLASSEXTEND = "native nativesdk"meta-oe/recipes-devtools/lemon/lemon_3.7.3.bb deleted +0
-8@@ -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" - --Quoted 5 lines
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#107675): https://lists.openembedded.org/g/openembedded-devel/message/107675
Mute This Topic: https://lists.openembedded.org/mt/103283009/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 3 lines · Khem Raj via lists.openembedded.org
Quoted 1 line
+ ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}
tool/lemon.c-o lemonwhy do we need CPPFLAGS here ?
I’ve just realised that CFLAGS includes CPPFLAGS. I wonder how many times I’ve done this. :)
Ross
Khem Raj
AppliedQuoted 10 lines · On Wed, 20 Dec 2023 15:53:33 +0000, [email protected] wrote:
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).
[...]
Applied, thanks!
[1/2] lemon: upgrade to 3.44.2
commit: c3ac5cf180f960dbbf6e3a3e76d6d44094873c72
[2/2] php: remove lemon-native build dependency
commit: 668ba95ea7d1d5a9ea37e2a725f152eaf5eebd94Best regards,
Signature · 1 line
Khem Raj <[email protected]>