package/sqlite: fix build issue since bump to 3.49.0
PATCH 1/1 package/sqlite: fix build issue since bump to 3.49.0
As of release 3.49.0, the author has replaced the configure script used in the precompiled amalgamation tarball with Autosetup instead of Autotools.
Fixes:
https://autobuild.buildroot.org/?reason=sqlite-3.49.0
--- package/sqlite/sqlite.mk | 59 ++++++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 23 deletions(-)
package/sqlite/sqlite.mk +36 -23
@@ -21,14 +21,6 @@ ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_COLUMN_METADATA endif -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_FTS3 -endif - -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_JSON1 -endif - ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY endif
@@ -50,30 +42,51 @@ else SQLITE_CFLAGS += $(subst -Ofast,-O3,$(TARGET_CFLAGS)) endif -SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" - -ifeq ($(BR2_STATIC_LIBS),y) -SQLITE_CONF_OPTS += --enable-dynamic-extensions=no -else -SQLITE_CONF_OPTS += --disable-static-shell -endif - ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) -SQLITE_CONF_OPTS += --enable-threadsafe +SQLITE_CFLAGS += -DSQLITE_THREADSAFE=1 else SQLITE_CONF_OPTS += --disable-threadsafe -SQLITE_CFLAGS += -DSQLITE_THREADSAFE=0 endif ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_READLINE),yy) SQLITE_DEPENDENCIES += ncurses readline -SQLITE_CONF_OPTS += --disable-editline --enable-readline else ifeq ($(BR2_PACKAGE_LIBEDIT),y) SQLITE_DEPENDENCIES += libedit -SQLITE_CONF_OPTS += --enable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline --editline else -SQLITE_CONF_OPTS += --disable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline endif -$(eval $(autotools-package)) -$(eval $(host-autotools-package)) +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) +SQLITE_CONF_OPTS += --fts3 +endif + +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),) +SQLITE_CONF_OPTS += --disable-json +endif + +SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" + +define SQLITE_CONFIGURE_CMDS + (cd $(@D); $(TARGET_CONFIGURE_OPTS) $(SQLITE_CONF_ENV) ./configure \ + --prefix=/usr \ + --host="$(GNU_TARGET_NAME)" \ + --build="$(GNU_HOST_NAME)" \ + --sysroot="$(STAGING_DIR)" \ + $(SQLITE_CONF_OPTS) \ + ) +endef + +define SQLITE_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define SQLITE_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D) install +endef + +define SQLITE_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install +endef + +$(eval $(generic-package))
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Scott,
Quoted 87 lines · Scott Fan
As of release 3.49.0, the author has replaced the configure script used in the precompiled amalgamation tarball with Autosetup instead of Autotools.
Fixes:
https://autobuild.buildroot.org/?reason=sqlite-3.49.0Signed-off-by Scott Fan <[email protected]>--- package/sqlite/sqlite.mk | 59 ++++++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 23 deletions(-)package/sqlite/sqlite.mk +26
-23@@ -21,14 +21,6 @@ ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_COLUMN_METADATA endif -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_FTS3 -endif - -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_JSON1 -endif - ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY endif@@ -50,30 +42,51 @@ else SQLITE_CFLAGS += $(subst -Ofast,-O3,$(TARGET_CFLAGS)) endif -SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" - -ifeq ($(BR2_STATIC_LIBS),y) -SQLITE_CONF_OPTS += --enable-dynamic-extensions=no -else -SQLITE_CONF_OPTS += --disable-static-shell -endif - ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) -SQLITE_CONF_OPTS += --enable-threadsafe +SQLITE_CFLAGS += -DSQLITE_THREADSAFE=1 else SQLITE_CONF_OPTS += --disable-threadsafe -SQLITE_CFLAGS += -DSQLITE_THREADSAFE=0 endif ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_READLINE),yy) SQLITE_DEPENDENCIES += ncurses readline -SQLITE_CONF_OPTS += --disable-editline --enable-readline else ifeq ($(BR2_PACKAGE_LIBEDIT),y) SQLITE_DEPENDENCIES += libedit -SQLITE_CONF_OPTS += --enable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline --editline else -SQLITE_CONF_OPTS += --disable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline endif -$(eval $(autotools-package)) -$(eval $(host-autotools-package)) +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) +SQLITE_CONF_OPTS += --fts3 +endif + +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),) +SQLITE_CONF_OPTS += --disable-json +endif + +SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" + +define SQLITE_CONFIGURE_CMDS + (cd $(@D); $(TARGET_CONFIGURE_OPTS) $(SQLITE_CONF_ENV) ./configure \ + --prefix=/usr \ + --host="$(GNU_TARGET_NAME)" \ + --build="$(GNU_HOST_NAME)" \ + --sysroot="$(STAGING_DIR)" \ + $(SQLITE_CONF_OPTS) \ + ) +endef + +define SQLITE_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endef
package/sqlite/sqlite.mk else · line 92
Quoted 10 lines
package/sqlite/sqlite.mk +10
-0+ +define SQLITE_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D) install +endef + +define SQLITE_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install +endef + +$(eval $(generic-package))
We also need host-generic-package to replace the host-autotools-package removed above.
baruch
Signature · 7 lines
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildrootHi Scott, Baruch!
Am 12.02.25 um 15:24 schrieb Baruch Siach via buildroot:
Quoted 10 lines
Hi Scott,
Quoted 7 lines · Scott Fan
As of release 3.49.0, the author has replaced the configure script used in the precompiled amalgamation tarball with Autosetup instead of Autotools.
Fixes:
https://autobuild.buildroot.org/?reason=sqlite-3.49.0Signed-off-by Scott Fan <[email protected]>
Together with the "host-generic-package" Baruch pointed out this fixed my build, thanks! One thing looks odd though, see below.
Best regards,
Fiona
Quoted 27 lines
Quoted 27 lines
--- package/sqlite/sqlite.mk | 59 ++++++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 23 deletions(-)package/sqlite/sqlite.mk +0
-8@@ -21,14 +21,6 @@ ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_COLUMN_METADATA endif -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_FTS3 -endif - -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_JSON1 -endif - ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY endif@@ -50,30 +42,51 @@ else SQLITE_CFLAGS += $(subst -Ofast,-O3,$(TARGET_CFLAGS)) endif
Quoted 15 lines
Quoted 5 lines
package/sqlite/sqlite.mk +0
-5-SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" - -ifeq ($(BR2_STATIC_LIBS),y) -SQLITE_CONF_OPTS += --enable-dynamic-extensions=no -elsepackage/sqlite/sqlite.mk else · line 49
Quoted 10 lines
package/sqlite/sqlite.mk +1
-5-SQLITE_CONF_OPTS += --disable-static-shell -endif - ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) -SQLITE_CONF_OPTS += --enable-threadsafe +SQLITE_CFLAGS += -DSQLITE_THREADSAFE=1 else SQLITE_CONF_OPTS += --disable-threadsafe -SQLITE_CFLAGS += -DSQLITE_THREADSAFE=0 endif
Why does --disable-threadsafe remain, while --enable-threadsafe is removed in the other branch, and -DSQLITE_THREADSAFE=0 removed while -DSQLITE_THREADSAFE=1 is added in the other branch? That seems inconsistent. My setup has BR2_TOOLCHAIN_HAS_THREADS=y, so I can only confirm the branch with threads works.
Quoted 51 lines
Quoted 37 lines
package/sqlite/sqlite.mk +25
-5ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_READLINE),yy) SQLITE_DEPENDENCIES += ncurses readline -SQLITE_CONF_OPTS += --disable-editline --enable-readline else ifeq ($(BR2_PACKAGE_LIBEDIT),y) SQLITE_DEPENDENCIES += libedit -SQLITE_CONF_OPTS += --enable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline --editline else -SQLITE_CONF_OPTS += --disable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline endif -$(eval $(autotools-package)) -$(eval $(host-autotools-package)) +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) +SQLITE_CONF_OPTS += --fts3 +endif + +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),) +SQLITE_CONF_OPTS += --disable-json +endif + +SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" + +define SQLITE_CONFIGURE_CMDS + (cd $(@D); $(TARGET_CONFIGURE_OPTS) $(SQLITE_CONF_ENV) ./configure \ + --prefix=/usr \ + --host="$(GNU_TARGET_NAME)" \ + --build="$(GNU_HOST_NAME)" \ + --sysroot="$(STAGING_DIR)" \ + $(SQLITE_CONF_OPTS) \ + ) +endef + +define SQLITE_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endefpackage/sqlite/sqlite.mk else · line 92
Quoted 10 lines
package/sqlite/sqlite.mk +10
-0+ +define SQLITE_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D) install +endef + +define SQLITE_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install +endef + +$(eval $(generic-package))We also need host-generic-package to replace the host-autotools-package removed above.
Quoted 2 lines
baruch
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi
Quoted 10 lines · Fiona Klute via buildroot
Hi Scott, Baruch!
Am 12.02.25 um 15:24 schrieb Baruch Siach via buildroot:
Quoted 6 lines
Hi Scott,
Quoted 3 lines · Scott Fan
As of release 3.49.0, the author has replaced the configure script used in the precompiled amalgamation tarball with Autosetup instead of Autotools.
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Fixes:
https://autobuild.buildroot.org/?reason=sqlite-3.49.0Signed-off-by Scott Fan <[email protected]>Together with the "host-generic-package" Baruch pointed out this fixed my build, thanks! One thing looks odd though, see below.
I will add the missing configurations for the "host-generic-package".
Quoted 44 lines
Best regards,
FionaQuoted 40 lines
Quoted 40 lines
--- package/sqlite/sqlite.mk | 59 ++++++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 23 deletions(-)package/sqlite/sqlite.mk +1
-17@@ -21,14 +21,6 @@ ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_COLUMN_METADATA endif -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_FTS3 -endif - -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_JSON1 -endif - ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY endif@@ -50,30 +42,51 @@ else SQLITE_CFLAGS += $(subst -Ofast,-O3,$(TARGET_CFLAGS)) endif -SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" - -ifeq ($(BR2_STATIC_LIBS),y) -SQLITE_CONF_OPTS += --enable-dynamic-extensions=no -else -SQLITE_CONF_OPTS += --disable-static-shell -endif - ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) -SQLITE_CONF_OPTS += --enable-threadsafe +SQLITE_CFLAGS += -DSQLITE_THREADSAFE=1 else SQLITE_CONF_OPTS += --disable-threadsafe
Quoted 8 lines
Quoted 2 lines
package/sqlite/sqlite.mk else · line 49
Quoted 2 lines
package/sqlite/sqlite.mk +0
-1-SQLITE_CFLAGS += -DSQLITE_THREADSAFE=0 endifWhy does --disable-threadsafe remain, while --enable-threadsafe is removed in the other branch, and -DSQLITE_THREADSAFE=0 removed while -DSQLITE_THREADSAFE=1 is added in the other branch? That seems inconsistent. My setup has BR2_TOOLCHAIN_HAS_THREADS=y, so I can only confirm the branch with threads works.
When using the ./configure --help command in the release 3.49.0 to view the usage, you can only see the --disable-threadsafe option, but not the --enable-threadsafe option. Autosetup will automatically detect whether threads are supported and set SQLITE_THREADSAFE to 1 or
0. If threads are supported, SQLITE_THREADSAFE=1 is automatically set by default, but you can force SQLITE_THREADSAFE=0 with the --disable-threadsafe option.
In my opinion, Autosetup has already done what it should do. I will delete the lines related to thread safety options in the sqlite.mk file.
Quoted 52 lines
Quoted 52 lines
Quoted 38 lines
package/sqlite/sqlite.mk +25
-5ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_READLINE),yy) SQLITE_DEPENDENCIES += ncurses readline -SQLITE_CONF_OPTS += --disable-editline --enable-readline else ifeq ($(BR2_PACKAGE_LIBEDIT),y) SQLITE_DEPENDENCIES += libedit -SQLITE_CONF_OPTS += --enable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline --editline else -SQLITE_CONF_OPTS += --disable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline endif -$(eval $(autotools-package)) -$(eval $(host-autotools-package)) +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) +SQLITE_CONF_OPTS += --fts3 +endif + +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),) +SQLITE_CONF_OPTS += --disable-json +endif + +SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" + +define SQLITE_CONFIGURE_CMDS + (cd $(@D); $(TARGET_CONFIGURE_OPTS) $(SQLITE_CONF_ENV) ./configure \ + --prefix=/usr \ + --host="$(GNU_TARGET_NAME)" \ + --build="$(GNU_HOST_NAME)" \ + --sysroot="$(STAGING_DIR)" \ + $(SQLITE_CONF_OPTS) \ + ) +endef + +define SQLITE_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endefpackage/sqlite/sqlite.mk else · line 92
Quoted 10 lines
package/sqlite/sqlite.mk +10
-0+ +define SQLITE_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D) install +endef + +define SQLITE_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install +endef + +$(eval $(generic-package))We also need host-generic-package to replace the host-autotools-package removed above.
Quoted 7 lines
Quoted 2 lines
baruch
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Roy Kollen Svendsen
Tested-byHi,
Fixes:
2025-02-13T06:48:18 >>> sqlite 3.49.0 Configuring ... 2025-02-13T06:48:19 Error: Unknown option --target
tor. 13. feb. 2025 kl. 04:59 skrev Scott Fan <[email protected]>:
Quoted 152 lines
Hi
Quoted 8 lines · Fiona Klute via buildroot
Hi Scott, Baruch!
Am 12.02.25 um 15:24 schrieb Baruch Siach via buildroot:
Quoted 4 lines
Hi Scott,
Quoted 1 line · Scott Fan
As of release 3.49.0, the author has replaced the configure script
used in
Quoted 1 line
Quoted 1 line
Quoted 1 line
the precompiled amalgamation tarball with Autosetup instead of
Autotools.
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Fixes:
https://autobuild.buildroot.org/?reason=sqlite-3.49.0Signed-off-by Scott Fan <[email protected]>Together with the "host-generic-package" Baruch pointed out this fixed my build, thanks! One thing looks odd though, see below.
I will add the missing configurations for the "host-generic-package".
Quoted 6 lines
Best regards,
FionaQuoted 2 lines
Quoted 2 lines
--- package/sqlite/sqlite.mk | 59++++++++++++++++++++++++----------------
Quoted 7 lines
Quoted 7 lines
package/sqlite/sqlite.mk ifeq
Quoted 7 lines
1 file changed, 36 insertions(+), 23 deletions(-)package/sqlite/sqlite.mk +0
-0@@ -21,14 +21,6 @@ ifeq($(BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA),y)
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
package/sqlite/sqlite.mk +1
-17SQLITE_CFLAGS += -DSQLITE_ENABLE_COLUMN_METADATA endif -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_FTS3 -endif - -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_JSON1 -endif - ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY endif@@ -50,30 +42,51 @@ else SQLITE_CFLAGS += $(subst -Ofast,-O3,$(TARGET_CFLAGS)) endif -SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" - -ifeq ($(BR2_STATIC_LIBS),y) -SQLITE_CONF_OPTS += --enable-dynamic-extensions=no -else -SQLITE_CONF_OPTS += --disable-static-shell -endif - ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) -SQLITE_CONF_OPTS += --enable-threadsafe +SQLITE_CFLAGS += -DSQLITE_THREADSAFE=1 else SQLITE_CONF_OPTS += --disable-threadsafeQuoted 8 lines
Quoted 2 lines
package/sqlite/sqlite.mk else · line 49
Quoted 2 lines
package/sqlite/sqlite.mk +0
-1-SQLITE_CFLAGS += -DSQLITE_THREADSAFE=0 endifWhy does --disable-threadsafe remain, while --enable-threadsafe is removed in the other branch, and -DSQLITE_THREADSAFE=0 removed while -DSQLITE_THREADSAFE=1 is added in the other branch? That seems inconsistent. My setup has BR2_TOOLCHAIN_HAS_THREADS=y, so I can only confirm the branch with threads works.
When using the ./configure --help command in the release 3.49.0 to view the usage, you can only see the --disable-threadsafe option, but not the --enable-threadsafe option. Autosetup will automatically detect whether threads are supported and set
SQLITE_THREADSAFEto 1 or
0. If threads are supported, SQLITE_THREADSAFE=1 is automatically set by default, but you can force SQLITE_THREADSAFE=0 with the --disable-threadsafe option.In my opinion, Autosetup has already done what it should do. I will delete the lines related to thread safety options in the sqlite.mk file.
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
package/sqlite/sqlite.mk +2
-3ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_READLINE),yy) SQLITE_DEPENDENCIES += ncurses readline -SQLITE_CONF_OPTS += --disable-editline --enable-readline else ifeq ($(BR2_PACKAGE_LIBEDIT),y) SQLITE_DEPENDENCIES += libedit -SQLITE_CONF_OPTS += --enable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline --editline else -SQLITE_CONF_OPTS += --disable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline endifQuoted 14 lines
Quoted 6 lines
Quoted 6 lines
package/sqlite/sqlite.mk +4
-2-$(eval $(autotools-package)) -$(eval $(host-autotools-package)) +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) +SQLITE_CONF_OPTS += --fts3 +endif +Quoted 8 lines
package/sqlite/sqlite.mk else
Quoted 8 lines
package/sqlite/sqlite.mk +8
-0+ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),) +SQLITE_CONF_OPTS += --disable-json +endif + +SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" + +define SQLITE_CONFIGURE_CMDS + (cd $(@D); $(TARGET_CONFIGURE_OPTS) $(SQLITE_CONF_ENV)./configure \
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
package/sqlite/sqlite.mk +6
-0+ --prefix=/usr \ + --host="$(GNU_TARGET_NAME)" \ + --build="$(GNU_HOST_NAME)" \ + --sysroot="$(STAGING_DIR)" \ + $(SQLITE_CONF_OPTS) \ + )Quoted 8 lines
Quoted 8 lines
package/sqlite/sqlite.mk else
Quoted 8 lines
package/sqlite/sqlite.mk +8
-0+endef + +define SQLITE_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define SQLITE_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D)install
Quoted 4 lines
Quoted 4 lines
package/sqlite/sqlite.mk else
Quoted 4 lines
package/sqlite/sqlite.mk +4
-0+endef + +define SQLITE_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D)install
Quoted 10 lines
Quoted 9 lines
package/sqlite/sqlite.mk else · line 92
Quoted 3 lines
package/sqlite/sqlite.mk +3
-0+endef + +$(eval $(generic-package))We also need host-generic-package to replace the host-autotools-package removed above.
baruch
Quoted 9 lines
Quoted 4 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi,
I had tested the patch v2 with the defconfig:
$ cat defconfig BR2_aarch64=y BR2_TOOLCHAIN_BUILDROOT_CXX=y BR2_PACKAGE_NFS_UTILS=y
Everything is OK. The "sqlite" and "host-sqlite" targets that the nfs_utils package depends on are both compiled and passed.
Scott Fan
Quoted 4 lines · Roy Kollen Svendsen
Hi,
Fixes:
Quoted 162 lines
2025-02-13T06:48:18 >>> sqlite 3.49.0 Configuring ... 2025-02-13T06:48:19 Error: Unknown option --targetTested-by Roy Kollen Svendsen <[email protected]>tor. 13. feb. 2025 kl. 04:59 skrev Scott Fan <[email protected]>:
Quoted 154 lines
Hi
Quoted 10 lines · Fiona Klute via buildroot
Hi Scott, Baruch!
Am 12.02.25 um 15:24 schrieb Baruch Siach via buildroot:
Quoted 6 lines
Hi Scott,
Quoted 3 lines · Scott Fan
As of release 3.49.0, the author has replaced the configure script used in the precompiled amalgamation tarball with Autosetup instead of Autotools.
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Fixes:
https://autobuild.buildroot.org/?reason=sqlite-3.49.0Signed-off-by Scott Fan <[email protected]>Together with the "host-generic-package" Baruch pointed out this fixed my build, thanks! One thing looks odd though, see below.
I will add the missing configurations for the "host-generic-package".
Quoted 44 lines
Best regards,
FionaQuoted 40 lines
Quoted 40 lines
--- package/sqlite/sqlite.mk | 59 ++++++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 23 deletions(-)package/sqlite/sqlite.mk +1
-17@@ -21,14 +21,6 @@ ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_COLUMN_METADATA endif -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_FTS3 -endif - -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_JSON1 -endif - ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY endif@@ -50,30 +42,51 @@ else SQLITE_CFLAGS += $(subst -Ofast,-O3,$(TARGET_CFLAGS)) endif -SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" - -ifeq ($(BR2_STATIC_LIBS),y) -SQLITE_CONF_OPTS += --enable-dynamic-extensions=no -else -SQLITE_CONF_OPTS += --disable-static-shell -endif - ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) -SQLITE_CONF_OPTS += --enable-threadsafe +SQLITE_CFLAGS += -DSQLITE_THREADSAFE=1 else SQLITE_CONF_OPTS += --disable-threadsafeQuoted 8 lines
Quoted 2 lines
package/sqlite/sqlite.mk else · line 49
Quoted 2 lines
package/sqlite/sqlite.mk +0
-1-SQLITE_CFLAGS += -DSQLITE_THREADSAFE=0 endifWhy does --disable-threadsafe remain, while --enable-threadsafe is removed in the other branch, and -DSQLITE_THREADSAFE=0 removed while -DSQLITE_THREADSAFE=1 is added in the other branch? That seems inconsistent. My setup has BR2_TOOLCHAIN_HAS_THREADS=y, so I can only confirm the branch with threads works.
When using the ./configure --help command in the release 3.49.0 to view the usage, you can only see the --disable-threadsafe option, but not the --enable-threadsafe option. Autosetup will automatically detect whether threads are supported and set
SQLITE_THREADSAFEto 1 or
0. If threads are supported, SQLITE_THREADSAFE=1 is automatically set by default, but you can force SQLITE_THREADSAFE=0 with the --disable-threadsafe option.In my opinion, Autosetup has already done what it should do. I will delete the lines related to thread safety options in the sqlite.mk file.
Quoted 52 lines
Quoted 52 lines
Quoted 38 lines
package/sqlite/sqlite.mk +25
-5ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_READLINE),yy) SQLITE_DEPENDENCIES += ncurses readline -SQLITE_CONF_OPTS += --disable-editline --enable-readline else ifeq ($(BR2_PACKAGE_LIBEDIT),y) SQLITE_DEPENDENCIES += libedit -SQLITE_CONF_OPTS += --enable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline --editline else -SQLITE_CONF_OPTS += --disable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline endif -$(eval $(autotools-package)) -$(eval $(host-autotools-package)) +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) +SQLITE_CONF_OPTS += --fts3 +endif + +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),) +SQLITE_CONF_OPTS += --disable-json +endif + +SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" + +define SQLITE_CONFIGURE_CMDS + (cd $(@D); $(TARGET_CONFIGURE_OPTS) $(SQLITE_CONF_ENV) ./configure \ + --prefix=/usr \ + --host="$(GNU_TARGET_NAME)" \ + --build="$(GNU_HOST_NAME)" \ + --sysroot="$(STAGING_DIR)" \ + $(SQLITE_CONF_OPTS) \ + ) +endef + +define SQLITE_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endefpackage/sqlite/sqlite.mk else · line 92
Quoted 10 lines
package/sqlite/sqlite.mk +10
-0+ +define SQLITE_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D) install +endef + +define SQLITE_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install +endef + +$(eval $(generic-package))We also need host-generic-package to replace the host-autotools-package removed above.
Quoted 7 lines
Quoted 2 lines
baruch
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi,
I also tested the following defconfig:
$ cat defconfig BR2_x86_64=y BR2_TOOLCHAIN_BUILDROOT_CXX=y BR2_PACKAGE_NFS_UTILS=y
Scott Fan
Quoted 9 lines · Scott Fan
Hi,
I had tested the patch v2 with the defconfig:
$ cat defconfig BR2_aarch64=y BR2_TOOLCHAIN_BUILDROOT_CXX=y BR2_PACKAGE_NFS_UTILS=y
Quoted 20 lines
Everything is OK. The "sqlite" and "host-sqlite" targets that the
nfs_utilspackage depends on are both compiled and passed.Scott Fan
Quoted 12 lines · Roy Kollen Svendsen
Hi,
Fixes:
2025-02-13T06:48:18 >>> sqlite 3.49.0 Configuring ... 2025-02-13T06:48:19 Error: Unknown option --targetTested-by Roy Kollen Svendsen <[email protected]>tor. 13. feb. 2025 kl. 04:59 skrev Scott Fan <[email protected]>:
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 1/1 package/sqlite: fix build issue since bump to 3.49.0
In reply to Scott FanAs of release 3.49.0, the author has replaced the configure script used in the precompiled amalgamation tarball with Autosetup instead of Autotools.
The "autotools-package" and "host-autotools-package" lines are no longer available, so those have to be replaced by the "generic-package" and "host-generic-package" lines in the .mk file.
The Autosetup configuration script does not support the "enable-dynamic-extensions" and "disable-static-shell" options, so the relevant lines in the .mk file are removed.
The Autosetup configuration script can automatically detect whether threads are supported and set the relevant SQLITE_THREADSAFE flag, so the relevant lines in the .mk file are removed.
Fixes:
https://autobuild.buildroot.org/?reason=sqlite-3.49.0
---
Changes v1 -> v2:
- add the 'host-generic-package' configurations in the .mk file
- remove the thread-safe related configurations in the .mk file
- update commit message
--- package/sqlite/sqlite.mk | 82 ++++++++++++++++++++++++++-------------- 1 file changed, 54 insertions(+), 28 deletions(-)
package/sqlite/sqlite.mk +54 -28
@@ -21,14 +21,6 @@ ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_COLUMN_METADATA endif -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_FTS3 -endif - -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_JSON1 -endif - ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY endif
@@ -50,30 +42,64 @@ else SQLITE_CFLAGS += $(subst -Ofast,-O3,$(TARGET_CFLAGS)) endif -SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" - -ifeq ($(BR2_STATIC_LIBS),y) -SQLITE_CONF_OPTS += --enable-dynamic-extensions=no -else -SQLITE_CONF_OPTS += --disable-static-shell -endif - -ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) -SQLITE_CONF_OPTS += --enable-threadsafe -else -SQLITE_CONF_OPTS += --disable-threadsafe -SQLITE_CFLAGS += -DSQLITE_THREADSAFE=0 -endif - ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_READLINE),yy) SQLITE_DEPENDENCIES += ncurses readline -SQLITE_CONF_OPTS += --disable-editline --enable-readline else ifeq ($(BR2_PACKAGE_LIBEDIT),y) SQLITE_DEPENDENCIES += libedit -SQLITE_CONF_OPTS += --enable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline --editline else -SQLITE_CONF_OPTS += --disable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline endif -$(eval $(autotools-package)) -$(eval $(host-autotools-package)) +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) +SQLITE_CONF_OPTS += --fts3 +endif + +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),) +SQLITE_CONF_OPTS += --disable-json +endif + +SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" + +define SQLITE_CONFIGURE_CMDS + (cd $(@D); $(TARGET_CONFIGURE_OPTS) $(SQLITE_CONF_ENV) ./configure \ + --prefix=/usr \ + --host="$(GNU_TARGET_NAME)" \ + --build="$(GNU_HOST_NAME)" \ + --sysroot="$(STAGING_DIR)" \ + $(SQLITE_CONF_OPTS) \ + ) +endef + +define SQLITE_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define SQLITE_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D) install +endef + +define SQLITE_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install +endef + +define HOST_SQLITE_CONFIGURE_CMDS + (cd $(@D); $(HOST_CONFIGURE_OPTS) $(SQLITE_CONF_ENV) ./configure \ + --prefix=/usr \ + --host="$(GNU_HOST_NAME)" \ + --build="$(GNU_HOST_NAME)" \ + --sysroot="$(HOST_DIR)" \ + $(SQLITE_CONF_OPTS) \ + ) +endef + +define HOST_SQLITE_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define HOST_SQLITE_INSTALL_CMDS + $(HOST_MAKE_ENV) $(MAKE) DESTDIR="$(HOST_DIR)" -C $(@D) install +endef + +$(eval $(generic-package)) +$(eval $(host-generic-package))
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Am 13.02.25 um 05:50 schrieb Scott Fan:
Quoted 11 lines
As of release 3.49.0, the author has replaced the configure script used in the precompiled amalgamation tarball with Autosetup instead of Autotools.
The "autotools-package" and "host-autotools-package" lines are no longer available, so those have to be replaced by the "generic-package" and "host-generic-package" lines in the .mk file.
The Autosetup configuration script does not support the "enable-dynamic-extensions" and "disable-static-shell" options, so the relevant lines in the .mk file are removed.
Quoted 8 lines
The Autosetup configuration script can automatically detect whether threads are supported and set the relevant
SQLITE_THREADSAFEflag, so the relevant lines in the .mk file are removed.Fixes:
https://autobuild.buildroot.org/?reason=sqlite-3.49.0Signed-off-by Scott Fan <[email protected]>
Target package works fine, thank you!
Fiona
Quoted 103 lines
---
Changes v1 -> v2:
- add the 'host-generic-package' configurations in the .mk file
- remove the thread-safe related configurations in the .mk file
- update commit message--- package/sqlite/sqlite.mk | 82 ++++++++++++++++++++++++++-------------- 1 file changed, 54 insertions(+), 28 deletions(-)package/sqlite/sqlite.mk +44
-28@@ -21,14 +21,6 @@ ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_COLUMN_METADATA endif -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_FTS3 -endif - -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),y) -SQLITE_CFLAGS += -DSQLITE_ENABLE_JSON1 -endif - ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY endif@@ -50,30 +42,64 @@ else SQLITE_CFLAGS += $(subst -Ofast,-O3,$(TARGET_CFLAGS)) endif -SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" - -ifeq ($(BR2_STATIC_LIBS),y) -SQLITE_CONF_OPTS += --enable-dynamic-extensions=no -else -SQLITE_CONF_OPTS += --disable-static-shell -endif - -ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) -SQLITE_CONF_OPTS += --enable-threadsafe -else -SQLITE_CONF_OPTS += --disable-threadsafe -SQLITE_CFLAGS += -DSQLITE_THREADSAFE=0 -endif - ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_READLINE),yy) SQLITE_DEPENDENCIES += ncurses readline -SQLITE_CONF_OPTS += --disable-editline --enable-readline else ifeq ($(BR2_PACKAGE_LIBEDIT),y) SQLITE_DEPENDENCIES += libedit -SQLITE_CONF_OPTS += --enable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline --editline else -SQLITE_CONF_OPTS += --disable-editline --disable-readline +SQLITE_CONF_OPTS += --disable-readline endif -$(eval $(autotools-package)) -$(eval $(host-autotools-package)) +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) +SQLITE_CONF_OPTS += --fts3 +endif + +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),) +SQLITE_CONF_OPTS += --disable-json +endif + +SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" + +define SQLITE_CONFIGURE_CMDS + (cd $(@D); $(TARGET_CONFIGURE_OPTS) $(SQLITE_CONF_ENV) ./configure \ + --prefix=/usr \ + --host="$(GNU_TARGET_NAME)" \ + --build="$(GNU_HOST_NAME)" \ + --sysroot="$(STAGING_DIR)" \ + $(SQLITE_CONF_OPTS) \ + ) +endef + +define SQLITE_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define SQLITE_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D) install +endef + +define SQLITE_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install +endef + +define HOST_SQLITE_CONFIGURE_CMDS + (cd $(@D); $(HOST_CONFIGURE_OPTS) $(SQLITE_CONF_ENV) ./configure \ + --prefix=/usr \ + --host="$(GNU_HOST_NAME)" \ + --build="$(GNU_HOST_NAME)" \ + --sysroot="$(HOST_DIR)" \ + $(SQLITE_CONF_OPTS) \ + ) +endef +
package/sqlite/sqlite.mk else · line 105
Quoted 10 lines
package/sqlite/sqlite.mk +10
-0+define HOST_SQLITE_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define HOST_SQLITE_INSTALL_CMDS + $(HOST_MAKE_ENV) $(MAKE) DESTDIR="$(HOST_DIR)" -C $(@D) install +endef + +$(eval $(generic-package)) +$(eval $(host-generic-package))
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 11 lines · Scott Fan
As of release 3.49.0, the author has replaced the configure script used in the precompiled amalgamation tarball with Autosetup instead of Autotools.
The "autotools-package" and "host-autotools-package" lines are no longer available, so those have to be replaced by the "generic-package" and "host-generic-package" lines in the .mk file.
The Autosetup configuration script does not support the "enable-dynamic-extensions" and "disable-static-shell" options, so the relevant lines in the .mk file are removed.
Quoted 8 lines
The Autosetup configuration script can automatically detect whether threads are supported and set the relevant
SQLITE_THREADSAFEflag, so the relevant lines in the .mk file are removed.Fixes:
https://autobuild.buildroot.org/?reason=sqlite-3.49.0Signed-off-by Scott Fan <[email protected]>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Scott,
Julien Olivain wrote,
Quoted 18 lines · Scott Fan
Quoted 17 lines
As of release 3.49.0, the author has replaced the configure script used in
the precompiled amalgamation tarball with Autosetup instead of Autotools.The "autotools-package" and "host-autotools-package" lines are no longer available, so those have to be replaced by the "generic-package" and "host-generic-package" lines in the .mk file.
The Autosetup configuration script does not support the "enable-dynamic-extensions" and "disable-static-shell" options, so the relevant lines in the .mk file are removed.
The Autosetup configuration script can automatically detect whether threads are supported and set the relevant
SQLITE_THREADSAFEflag, so the relevant lines in the .mk file are removed.
Quoted 6 lines
Quoted 4 lines
Fixes:
https://autobuild.buildroot.org/?reason=sqlite-3.49.0Signed-off-by Scott Fan <[email protected]>Applied to master, thanks.
On master I still get:
ERROR: Explicit --editline failed to find a matching library.
With BR2_PACKAGE_LIBEDIT=y instead of readline support.
Any idea? I am trying to build asterisk.
best regards
Waldemar
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Waldemar,
Thank you for your feedback.
I have sent a new patch to fix it, see the link below:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
Could you take a moment to test this patch for your work? thanks.
Scott Fan
Quoted 32 lines · Waldemar Brodkorb
Hi Scott,
Julien Olivain wrote,Quoted 18 lines · Scott Fan
Quoted 17 lines
As of release 3.49.0, the author has replaced the configure script used in
the precompiled amalgamation tarball with Autosetup instead of Autotools.The "autotools-package" and "host-autotools-package" lines are no longer available, so those have to be replaced by the "generic-package" and "host-generic-package" lines in the .mk file.
The Autosetup configuration script does not support the "enable-dynamic-extensions" and "disable-static-shell" options, so the relevant lines in the .mk file are removed.
The Autosetup configuration script can automatically detect whether threads are supported and set the relevant
SQLITE_THREADSAFEflag, so the relevant lines in the .mk file are removed.Quoted 6 lines
Quoted 4 lines
Fixes:
https://autobuild.buildroot.org/?reason=sqlite-3.49.0Signed-off-by Scott Fan <[email protected]>Applied to master, thanks.
On master I still get:
ERROR: Explicit --editline failed to find a matching library.
Quoted 6 lines
With BR2_PACKAGE_LIBEDIT=y instead of readline support.
Any idea? I am trying to build asterisk.
best regards
Waldemar
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Scott,
Scott Fan wrote,
Quoted 8 lines
Hi Waldemar,
Thank you for your feedback.
I have sent a new patch to fix it, see the link below:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/Could you take a moment to test this patch for your work? thanks.
Thanks for the fast patch. But it now fails when compiling shell.c:
/home/wbx/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-gcc -o sqlite3 \
shell.c sqlite3.c \
-I. -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_OMIT_JSON -DSQLITE_THREADSAFE=1 -DHAVE_READLINE=1 -DSQLITE_HAVE_ZLIB=1 -DSQLITE_OMIT_READLINE_COMPLETION \
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g0 -D_FORTIFY_SOURCE=1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/wbx/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include \
-Wl,-rpath,/usr/lib -lm -lz -ledit -lncurses
shell.c:151:11: fatal error: readline/readline.h: No such file or directory
151 | # include <readline/readline.h>
| ^~~~~~~~~~~~~~~~~~~~~compilation terminated.
The configure command puts out:
NOTE: the local libedit but uses <readline/readline.h> so we
will compile with -DHAVE_READLINE=1 but will link with libedit.
thanks for working on it.
best regards
Waldemar
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Waldemar,
I have sent a new patch (v2), see the link below:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
With this patch, I tested the following defconfig, it's ok.
$ cat defconfig BR2_aarch64=y BR2_TOOLCHAIN_BUILDROOT_CXX=y BR2_PACKAGE_ASTERISK=y
Could you take a moment to test this patch for your work? thanks.
Scott Fan
Quoted 29 lines · Waldemar Brodkorb
Hi Scott,
Scott Fan wrote,Quoted 8 lines
Hi Waldemar,
Thank you for your feedback.
I have sent a new patch to fix it, see the link below:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/Could you take a moment to test this patch for your work? thanks.
Thanks for the fast patch. But it now fails when compiling
shell.c:/home/wbx/buildroot/output/host/bin/aarch64-buildroot-linux-gnu-gcc -o sqlite3 \ shell.c sqlite3.c \ -I. -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_OMIT_JSON -DSQLITE_THREADSAFE=1 -DHAVE_READLINE=1 -DSQLITE_HAVE_ZLIB=1 -DSQLITE_OMIT_READLINE_COMPLETION \ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g0 -D_FORTIFY_SOURCE=1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/wbx/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include \ -Wl,-rpath,/usr/lib -lm -lz -ledit -lncurses shell.c:151:11: fatal error: readline/readline.h: No such file or directory 151 | # include <readline/readline.h> | ^~~~~~~~~~~~~~~~~~~~~compilation terminated.
The configure command puts out:
NOTE: the local libedit but uses <readline/readline.h> so we
will compile with -DHAVE_READLINE=1 but will link with libedit.
Quoted 4 lines
thanks for working on it.
best regards
Waldemar
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Scott,
Quoted 7 lines · Scott Fan
As of release 3.49.0, the author has replaced the configure script used in the precompiled amalgamation tarball with Autosetup instead of Autotools.
Fixes:
https://autobuild.buildroot.org/?reason=sqlite-3.49.0Signed-off-by Scott Fan <[email protected]>
This sqlite bump still generates runtime errors. See for example:
https://gitlab.com/buildroot.org/buildroot/-/jobs/9153298472
For info, you can run this test with the command:
utils/docker-run support/testing/run-tests \
-k -d dl -o output_folder \
tests.package.test_projCould you have a look please?
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot