diff options
Diffstat (limited to 'meta/recipes-devtools/rpm')
-rw-r--r-- | meta/recipes-devtools/rpm/rpm/rpm-db-reduce.patch | 19 | ||||
-rw-r--r-- | meta/recipes-devtools/rpm/rpm_5.4.0.bb | 3 |
2 files changed, 21 insertions, 1 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/rpm-db-reduce.patch b/meta/recipes-devtools/rpm/rpm/rpm-db-reduce.patch new file mode 100644 index 0000000000..e063e86c44 --- /dev/null +++ b/meta/recipes-devtools/rpm/rpm/rpm-db-reduce.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | Change cache size to reduce the usage of disk space from 62MB to 26MB. | ||
4 | |||
5 | Signed-off-by: Mei Lei <lei.mei@intel.com> | ||
6 | |||
7 | diff --git a/rpmdb/DB_CONFIG.in b/rpmdb/DB_CONFIG.in | ||
8 | index e0b4689..b64e3a9 100644 | ||
9 | --- a/rpmdb/DB_CONFIG.in | ||
10 | +++ b/rpmdb/DB_CONFIG.in | ||
11 | @@ -29,7 +29,7 @@ set_thread_count 64 | ||
12 | |||
13 | # ================ Memory Pool | ||
14 | #XXX initializing dbenv with set_cachesize has unimplemented prerequsites | ||
15 | -#set_cachesize 0 1048576 0 | ||
16 | +set_cachesize 0 1048576 0 | ||
17 | set_mp_mmapsize 268435456 | ||
18 | |||
19 | # ================ Locking | ||
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb b/meta/recipes-devtools/rpm/rpm_5.4.0.bb index 122d3a922a..aae59eca5c 100644 --- a/meta/recipes-devtools/rpm/rpm_5.4.0.bb +++ b/meta/recipes-devtools/rpm/rpm_5.4.0.bb | |||
@@ -45,12 +45,13 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" | |||
45 | DEPENDS = "bzip2 zlib db openssl elfutils expat libpcre attr acl popt ${extrarpmdeps}" | 45 | DEPENDS = "bzip2 zlib db openssl elfutils expat libpcre attr acl popt ${extrarpmdeps}" |
46 | extrarpmdeps = "python perl" | 46 | extrarpmdeps = "python perl" |
47 | extrarpmdeps_virtclass-native = "file-native" | 47 | extrarpmdeps_virtclass-native = "file-native" |
48 | PR = "r27" | 48 | PR = "r28" |
49 | 49 | ||
50 | # rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed | 50 | # rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed |
51 | # in order to extract the distribution SRPM into a format we can extract... | 51 | # in order to extract the distribution SRPM into a format we can extract... |
52 | SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.0-0.20101229.src.rpm;extract=rpm-5.4.0.tar.gz \ | 52 | SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.0-0.20101229.src.rpm;extract=rpm-5.4.0.tar.gz \ |
53 | file://rpm-log-auto-rm.patch \ | 53 | file://rpm-log-auto-rm.patch \ |
54 | file://rpm-db-reduce.patch \ | ||
54 | file://perfile_rpmdeps.sh \ | 55 | file://perfile_rpmdeps.sh \ |
55 | file://rpm-autogen.patch \ | 56 | file://rpm-autogen.patch \ |
56 | file://rpm-libsql-fix.patch \ | 57 | file://rpm-libsql-fix.patch \ |