Bug 626 - RPM is much larger than it needs to be
Summary: RPM is much larger than it needs to be
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.0 M4
Assignee: Mark Hatle
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-01-05 03:59 UTC by Richard Purdie
Modified: 2011-02-01 09:49 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.