Bug 12933 - python-sqlite3 is packaged incorrectly
Summary: python-sqlite3 is packaged incorrectly
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.6
Hardware: x86 Multiple
: Medium+ major
Target Milestone: 2.6 M4
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-09-25 19:42 UTC by Jeroen Hofstee
Modified: 2018-10-01 15:15 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Hofstee 2018-09-25 19:42:42 UTC
On current master e3f5ceec690379 "build-appliance-image: Update to master head revision" /usr/lib/python2.7/sqlite3 ends up in the python-misc package and not
in python-sqlite3. Hence when only installing python-sqlite3, import sqlite3 throws an "ImportError: No module named sqlite3" exception. Importing _sqlite (with an underscore) does work.

get_module_deps2.py does see that python2.7/sqlite3/__init__.pyc is needed and replaces it with ${libdir}/python2.7/sqlite3, but it doesn't get written to the manifest file (also not after regenerating it) and hence ends up in misc.

Simply adding "${libdir}/python2.7/sqlite3" seems to manifest file seems to work, also after regeneration, but that includes then sqlite3/test as well, which doesn't seem to be the intend.

Setting severity to major, since I assume you want this fixed in a release. Feel free to lower it. There is a easy workaround, just install python-misc as well.
Comment 1 Ross Burton 2018-09-26 11:55:44 UTC
Patch on the list. The test thing is already resolved.
Comment 2 Ross Burton 2018-10-01 15:15:41 UTC
Fixed as of oe-core 9c2b1a0bfc8783052b5dda344cc334b9c13736f5.