You are not logged in.

#1 Yesterday 16:21:16

anonpenguin
Member
Registered: 2025-05-14
Posts: 1

[duckdb 2.0.1] Not autoloading for sqlite

Hello,

I'm not sure if this is a Pacman issue or a duckdb bug related to the official duckdb 2.0.1 package from the extra repository. When I try to load sqlite the first time after upgrading to this version, DuckDB fails because the default extension repository path is hardcoded to the build server's local directory:

/build/duckdb/src/build/repository


Steps to reproduce:
1. Install duckdb (2.0.1) via pacman.
2. Open the duckdb CLI.
3. Run:

LOAD sqlite;

Actual result:

IO Error:
Failed to install local extension "sqlite_scanner", no access to the file at PATH "/build/duckdb/src/build/repository/v2.0.1/linux_amd64/sqlite_scanner.duckdb_extension"

Expected result:
According to DuckDB documentation:

The sqlite extension will be transparently autoloaded on first use from the official extension repository.

Workaround:
Install the extension manually:

INSTALL sqlite;
LOAD sqlite;

Thanks!

Offline

#2 Yesterday 22:33:21

loqs
Member
Registered: 2014-03-06
Posts: 19,176

Re: [duckdb 2.0.1] Not autoloading for sqlite

Does the applying the following diff to the PKGBUILD followed by a rebuild fix the issue?:

diff --git a/PKGBUILD b/PKGBUILD
index ad8a546..e9b7990 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -46,8 +46,7 @@ build() {
     -D CMAKE_BUILD_TYPE=Release
     -D CMAKE_INSTALL_PREFIX=/usr
     -D OVERRIDE_GIT_DESCRIBE="v$pkgver"
-    -D ENABLE_EXTENSION_AUTOLOADING=1
-    -D ENABLE_EXTENSION_AUTOINSTALL=1
+    -D DUCKDB_CAPABILITIES="httplib;loadable_extensions"
   )
   cmake "${cmake_options[@]}"
 

Offline

Board footer

Powered by FluxBB