Hi,

On  Di 04 Mär 2025 18:05:41 CET, László Böszörményi (GCS) wrote:

On Tue, Mar 4, 2025 at 2:07 PM Mike Gabriel <sunwea...@debian.org> wrote:
On  So 02 Mär 2025 21:35:27 CET, Mike Gabriel wrote:
Find attached a .debdiff that builds the ICU extension as icu.so and
places it in /usr/lib/*/sqlite/icu.so. So this now matches the
installation style of the csv.so extension.
 Cool, looks right to me.

I tested loading the ICU module. That works when using the full path
to the .so file.
 This is not optimal. :( If someone would like to use this extension,
it's not always easy to find out the actual architecture and thus have
the full path to the .so file. Like basic shell scripts or PHP scripts
over a web server should be restricted to get such information.

I totally agree. Also having the .so in the multi-arch lib path is suboptimal.

Better would be /usr/lib/sqlite/<so-file>, also for other plugins.

As I said, there are sqlite3 plugins that ship their .so files in /usr/lib/<multi-arch>/<.so-file>, but that's not where dyn-loadable plugins belong to, imo, either.

Find .debdiff attached. Can you upload it that way?
 OK, I will do it. Meanwhile I've patched the source to try loading
extensions under sqlite/ as well. Unfortunately it doesn't work and
I've found different information about why it may fail. Either due to
I try to run it as root and/or that dlopen() can't handle
subdirectories itself.

Ok, loading without full path from sqlite/ would be cool. Maybe you find a way to handle that smoothly.

For the qtcontacts-sqlite, it will be ok if we have to know the exact .so file location.

However, as sqlite3 and friends are all multi-arch foreign, we might better ship the modules in /usr/lib/sqlite/<.so-file>? So, without the multi-arch part in the path.

Regards,
Laszlo/GCS

Thanks for cooperating on this. It means a lot!
Mike


--

mike gabriel aka sunweaver (Debian Developer)
mobile: +49 (1520) 1976 148
landline: +49 (4351) 486 14 27

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: sunwea...@debian.org, http://sunweavers.net

Attachment: pgpIvXjXb5MsV.pgp
Description: Digitale PGP-Signatur

Reply via email to