Bug 626

Summary: RPM is much larger than it needs to be
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Richard Purdie <richard.purdie>
Component: devtools / tool chainAssignee: Mark Hatle <mark.hatle>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: aleksandr.koltsoff, meta.mr.watcher, meta.watcher, sgw
Version: unspecified   
Target Milestone: 1.0 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Richard Purdie 2011-01-05 03:59:51 UTC
rpm contains various db utilities. These are statically linked against a libdb.a and this results in 12 binaries using ~15MB of space as /usr/lib/rpm/db_* even when stripped. This is a significant chunk of image size for an embedded system.

It would make much more sense to put a dynamic libdb.do into /usr/lib/rpm and link these utils against that library. The actual difference between the binaries is small, just a few tens of kb in different main() functions. An alternative would be one busybox style binary that adapts to the name its run as.
Comment 1 Mark Hatle 2011-02-01 09:49:58 UTC
This has been corrected in the latest uprev of RPM.

The major change was to remove the statically referenced berkleyDB integration, as well as change the overall package split.