https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297345
Bug ID: 297345
Summary: databases/py-sqlite3: Cannot load extensions
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: [email protected]
Reporter: [email protected]
Flags: maintainer-feedback?([email protected])
Assignee: [email protected]
Created attachment 273539
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=273539&action=edit
Patch to fix it by defining PY_SQLITE_ENABLE_LOAD_EXTENSION at build time
I was playing with this port and I found it doesn't allow loading sqlite
extension .so files. This is easily verifiable even without an extension by
the following snippet throwing exceptions:
import sqlite3
conn = sqlite3.connect(":memory:")
conn.enable_load_extension(True)
Looking at the port I found that nothing was setting the C macro
PY_SQLITE_ENABLE_LOAD_EXTENSION. This is normally set by the python configure
script, which gets bypassed for this port.
I was able to fix it in my own use with the attached patch.
--
You are receiving this mail because:
You are the assignee for the bug.