Source: apt Source-Version: 1.8.0~alpha2 Severity: wishlist User: debian-d...@lists.debian.org Usertags: dpkg-db-access-interface
Hi! The dpkg database will be changing formats in the near future, and one of the blockers is all the code accessing it directly w/o going via a supported interface. These include packages already using libapt, and others using python-apt. So adding an interface in libapt would make it possible for python-apt to do the same, and all their users to use that properly. A supported interface can be libdpkg-dev, which recently got support for the file database, moved from the core dpkg code. Even though the library is a static one, it should be built as PIC to support PIE nowadays, so that should make it linkable for libapt. And even though using a static library with a volatile API is not desirable, it's probably better than any of the alternatives. Of course, I'm happy to improve the libdpkg API to help with needs coming from apt, just let me know. Thanks, Guillem