Skip to contentSkip to conversation

sqlite3_3: Update to 3.25.2

PATCH In review Jens Rehsack 3 participants 8 messages Nov 3, 2018 – Nov 5, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sqlite3_3: Update to 3.25.2

Update SQLite3 from 3.23.1 to 3.25.2 for UPSERT, window functions and improved ALTER TABLE support.

For a detailed list of changes since 3.23.1, see
* https://www.sqlite.org/releaselog/3_25_2.html
* https://www.sqlite.org/releaselog/3_24_0.html

---
 meta/recipes-support/sqlite/sqlite3_3.23.1.bb | 10 ----------
 meta/recipes-support/sqlite/sqlite3_3.25.2.bb | 10 ++++++++++
 2 files changed, 10 insertions(+), 10 deletions(-)
 delete mode 100644 meta/recipes-support/sqlite/sqlite3_3.23.1.bb
 create mode 100644 meta/recipes-support/sqlite/sqlite3_3.25.2.bb
meta/recipes-support/sqlite/sqlite3_3.23.1.bb deleted +0 -10
deleted file mode 100644
index 3755761d76..0000000000
@@ -1,10 +0,0 @@
-require sqlite3.inc
-
-LICENSE = "PD"
-LIC_FILES_CHKSUM = "file://sqlite3.h;endline=11;md5=786d3dc581eff03f4fd9e4a77ed00c66"
-
-SRC_URI = "\
-  http://www.sqlite.org/2018/sqlite-autoconf-${SQLITE_PV}.tar.gz \
-  "
-SRC_URI[md5sum] = "99a51b40a66872872a91c92f6d0134fa"
-SRC_URI[sha256sum] = "92842b283e5e744eff5da29ed3c69391de7368fccc4d0ee6bf62490ce555ef25"
meta/recipes-support/sqlite/sqlite3_3.25.2.bb new file +10 -0
new file mode 100644
index 0000000000..31c9a6f2d2
@@ -0,0 +1,10 @@
+require sqlite3.inc
+
+LICENSE = "PD"
+LIC_FILES_CHKSUM = "file://sqlite3.h;endline=11;md5=786d3dc581eff03f4fd9e4a77ed00c66"
+
+SRC_URI = "\
+  http://www.sqlite.org/2018/sqlite-autoconf-${SQLITE_PV}.tar.gz \
+  "
+SRC_URI[md5sum] = "bfade31d59f58badc51aeaa6ae26a5de"
+SRC_URI[sha256sum] = "da9a1484423d524d3ac793af518cdf870c8255d209e369bd6a193e9f9d0e3181"
Signature · 1 line
2.17.1
#1 lore raw
Quoted 7 lines · Jens Rehsack

Update SQLite3 from 3.23.1 to 3.25.2 for UPSERT, window functions and improved ALTER TABLE support.

For a detailed list of changes since 3.23.1, see
* https://www.sqlite.org/releaselog/3_25_2.html
* https://www.sqlite.org/releaselog/3_24_0.html

Quoted 7 lines
---
 meta/recipes-support/sqlite/sqlite3_3.23.1.bb | 10 ----------
 meta/recipes-support/sqlite/sqlite3_3.25.2.bb | 10 ++++++++++
 2 files changed, 10 insertions(+), 10 deletions(-)
 delete mode 100644 meta/recipes-support/sqlite/sqlite3_3.23.1.bb
 create mode 100644 meta/recipes-support/sqlite/sqlite3_3.25.2.bb

How was this tested? pseudo-native fails to build with this:

https://autobuilder.yoctoproject.org/typhoon/#/builders/34/builds/161/steps/7/logs/step1b

and many other similar failures.

Cheers,

Richard

#2 lore raw
Quoted 20 lines

Am 05.11.2018 um 12:39 schrieb Richard Purdie <[email protected]>:

Quoted 7 lines · Jens Rehsack

Update SQLite3 from 3.23.1 to 3.25.2 for UPSERT, window functions and improved ALTER TABLE support.

For a detailed list of changes since 3.23.1, see
* https://www.sqlite.org/releaselog/3_25_2.html
* https://www.sqlite.org/releaselog/3_24_0.html

Quoted 7 lines

---
meta/recipes-support/sqlite/sqlite3_3.23.1.bb | 10 ---------- meta/recipes-support/sqlite/sqlite3_3.25.2.bb | 10 ++++++++++

2 files changed, 10 insertions(+), 10 deletions(-)

delete mode 100644 meta/recipes-support/sqlite/sqlite3_3.23.1.bb create mode 100644 meta/recipes-support/sqlite/sqlite3_3.25.2.bb

Quoted 5 lines

How was this tested? pseudo-native fails to build with this:

https://autobuilder.yoctoproject.org/typhoon/#/builders/34/builds/161/steps/7/logs/step1b

and many other similar failures.

My local test environment fails with lots of other failure due master updates. So my only test at the very moment was to compile python3-sqlite and dbd-sqlite-perl and continue fixing other issues before coming to create an image :(

I'll send a v2 as soon as I get around to it ;)

Cheers
--
Jens Rehsack - [email protected]

#3 lore raw
In reply to Richard Purdie

Mining the list archive shows that we keep on getting sqlite upgrades which fail like this. Maxin reported that it was due to the full-text-search code enabling itself and failing to build, so one solution is to explicitly turn it off.

Ross

Quoted 32 lines · Richard Purdie
Quoted 7 lines · Jens Rehsack

Update SQLite3 from 3.23.1 to 3.25.2 for UPSERT, window functions and improved ALTER TABLE support.

For a detailed list of changes since 3.23.1, see
* https://www.sqlite.org/releaselog/3_25_2.html
* https://www.sqlite.org/releaselog/3_24_0.html

Quoted 7 lines
---
 meta/recipes-support/sqlite/sqlite3_3.23.1.bb | 10 ----------
 meta/recipes-support/sqlite/sqlite3_3.25.2.bb | 10 ++++++++++
 2 files changed, 10 insertions(+), 10 deletions(-)
 delete mode 100644 meta/recipes-support/sqlite/sqlite3_3.23.1.bb
 create mode 100644 meta/recipes-support/sqlite/sqlite3_3.25.2.bb

How was this tested? pseudo-native fails to build with this:

https://autobuilder.yoctoproject.org/typhoon/#/builders/34/builds/161/steps/7/logs/step1b

and many other similar failures.

Cheers,

Richard

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#4 lore raw
Quoted 4 lines · Ross

Mining the list archive shows that we keep on getting sqlite upgrades which fail like this. Maxin reported that it was due to the full-text-search code enabling itself and failing to build, so one solution is to explicitly turn it off.

Did some digging.

FTS5 is enabled by default, this needs log() from libm. If enabled, AC_SEARCH_LIBS is used to find log() and libm.so, and this bonus dependency that is needed if statically linking is recorded in sqlite3.pc. Pseudo then builds, statically links to pseudo, but also hard-codes the link line instead of using pkgconfig so this -lm isn't added, resulting in a link failure on upgrade.

So that explains why the autobuilder explodes when this upgrade happens, but doesn't explain how it builds for everyone who submits the upgrade...

Ross

#5 lore raw
Quoted 19 lines

Am 05.11.2018 um 17:11 schrieb Burton, Ross <[email protected]>:

Quoted 4 lines · Ross

Mining the list archive shows that we keep on getting sqlite upgrades which fail like this. Maxin reported that it was due to the full-text-search code enabling itself and failing to build, so one solution is to explicitly turn it off.

Did some digging.

FTS5 is enabled by default, this needs log() from libm. If enabled, AC_SEARCH_LIBS is used to find log() and libm.so, and this bonus dependency that is needed if statically linking is recorded in sqlite3.pc. Pseudo then builds, statically links to pseudo, but also hard-codes the link line instead of using pkgconfig so this -lm isn't added, resulting in a link failure on upgrade.

Quoted 3 lines

So that explains why the autobuilder explodes when this upgrade happens, but doesn't explain how it builds for everyone who submits the upgrade...

Thanks for the analysis. I have some minor quirks with meta-cpan I have to fix since my last full-build for BBB in Sept 2018 - and my locally overwritten fstab generator for recovery/app partitions fails nowadays I have to analyze.

I think at least end of the week I can build target images again, get more test opportunities and fixup sqlite3 and python3 and submit some other stuff I found in meantime ;)

Cheers
--
Jens Rehsack - [email protected]

#6 lore raw
In reply to Burton, Ross
Quoted 15 lines · Ross
Quoted 4 lines · Ross

Mining the list archive shows that we keep on getting sqlite upgrades which fail like this. Maxin reported that it was due to the full-text-search code enabling itself and failing to build, so one solution is to explicitly turn it off.

Did some digging.

FTS5 is enabled by default, this needs log() from libm. If enabled, AC_SEARCH_LIBS is used to find log() and libm.so, and this bonus dependency that is needed if statically linking is recorded in sqlite3.pc. Pseudo then builds, statically links to pseudo, but also hard-codes the link line instead of using pkgconfig so this -lm isn't added, resulting in a link failure on upgrade.

Quoted 3 lines

So that explains why the autobuilder explodes when this upgrade happens, but doesn't explain how it builds for everyone who submits the upgrade...

This patch I can confirm makes pseudo build:

-PACKAGECONFIG ?= ""
+PACKAGECONFIG ?= "fts5"
PACKAGECONFIG_class-native = ""

PACKAGECONFIG[editline] = "--enable-editline,--disable-editline,libedit" PACKAGECONFIG[readline] =
"--enable-readline,--disable-readline,readline ncurses" +PACKAGECONFIG[fts5] = "--enable-fts5,--disable-fts5"

But that's a little ugly. The alternative is more invasive and would involve teaching pseudo to use pkgconfig to find sqlite3, but I'm not convinced we want to add pkg-config-native to the depends on pseudo, so I'm wondering if the third way is to just make pseudo always link to libm.so.

Ross

#7 lore raw
Quoted 30 lines

Am 05.11.2018 um 17:21 schrieb Burton, Ross <[email protected]>:

Quoted 15 lines · Ross
Quoted 4 lines · Ross

Mining the list archive shows that we keep on getting sqlite upgrades which fail like this. Maxin reported that it was due to the full-text-search code enabling itself and failing to build, so one solution is to explicitly turn it off.

Did some digging.

FTS5 is enabled by default, this needs log() from libm. If enabled, AC_SEARCH_LIBS is used to find log() and libm.so, and this bonus dependency that is needed if statically linking is recorded in sqlite3.pc. Pseudo then builds, statically links to pseudo, but also hard-codes the link line instead of using pkgconfig so this -lm isn't added, resulting in a link failure on upgrade.

Quoted 3 lines

So that explains why the autobuilder explodes when this upgrade happens, but doesn't explain how it builds for everyone who submits the upgrade...

This patch I can confirm makes pseudo build:

(quoted diff) +1 -1
-PACKAGECONFIG ?= ""
+PACKAGECONFIG ?= "fts5"

PACKAGECONFIG_class-native = ""

Quoted 4 lines

PACKAGECONFIG[editline] = "--enable-editline,--disable-editline,libedit" PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline ncurses" +PACKAGECONFIG[fts5] = "--enable-fts5,--disable-fts5"

Excellent \o/

Quoted 5 lines

But that's a little ugly. The alternative is more invasive and would involve teaching pseudo to use pkgconfig to find sqlite3, but I'm not convinced we want to add pkg-config-native to the depends on pseudo, so I'm wondering if the third way is to just make pseudo always link to libm.so.

I don't find that ugly (maybe because I don't understand enough about pseudo) ;)

Will use the chance to dig a bit into it :D

Cheers
--
Jens Rehsack - [email protected]