Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#22122 - [python2] Enable built-in SQLite3 module to load extensions
Attached to Project:
Arch Linux
Opened by Xyne (Xyne) - Thursday, 16 December 2010, 20:16 GMT
Last edited by Stéphane Gaudreault (stephane) - Monday, 20 December 2010, 12:12 GMT
Opened by Xyne (Xyne) - Thursday, 16 December 2010, 20:16 GMT
Last edited by Stéphane Gaudreault (stephane) - Monday, 20 December 2010, 12:12 GMT
|
DetailsDescription:
A line in setup.py (currently line 1059) needs to be commented out to enable the built-in SQLite3 module to load extensions: # Comment this out if you want the sqlite3 module to be able to load extensions. sqlite_defines.append(("SQLITE_OMIT_LOAD_EXTENSION", "1")) I have attached a new version of the included "python-2.7-db51.diff" patch to comment out this line. No changes to the PKGBUILD are necessary. There is a related Gentoo bug report (note that the line number has changed): http://bugs.gentoo.org/show_bug.cgi?id=346817 Related information: http://docs.python.org/library/sqlite3.html#sqlite3.Connection.enable_load_extension |
This task depends upon
Closed by Stéphane Gaudreault (stephane)
Monday, 20 December 2010, 12:12 GMT
Reason for closing: Implemented
Additional comments about closing: Fixed in python2-2.7.1-3.
Monday, 20 December 2010, 12:12 GMT
Reason for closing: Implemented
Additional comments about closing: Fixed in python2-2.7.1-3.
python-2.7-db51.diff
Um... that really does not belong in the db-5.1 compatibility patch...
Choices are:
1) sed to remove that line (I assume deleting the line is affective as commenting)
2) backport the configure option patch from python-3.2: http://bugs.python.org/issue10268
I think the sed one liner is the way to go.