* [PATCH 0/1] rpm:fix bug 1769
@ 2011-12-28 6:56 Mei Lei
2011-12-28 6:56 ` [PATCH 1/1] rpm: Fix rpm database files capacity issue Mei Lei
2012-01-03 23:53 ` [PATCH 0/1] rpm:fix bug 1769 Saul Wold
0 siblings, 2 replies; 3+ messages in thread
From: Mei Lei @ 2011-12-28 6:56 UTC (permalink / raw)
To: openembedded-core
Hi all,
This patch will fix bug 1769. The discussion from community can be found here:
http://rpm5.org/community/rpm-devel/5087.html
Please review and merge it.
Thanks,
Lei
The following changes since commit 8f348ccad083d6c02c200652ff6295e701e88f0d:
Saul Wold (1):
coreutils: ensure --color works so DEPEND on libcap
are available in the git repository at:
git://git.pokylinux.org/poky-contrib lmei3/bug1769
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=lmei3/bug1769
Mei Lei (1):
rpm: Fix rpm database files capacity issue.
meta/classes/rootfs_rpm.bbclass | 3 +++
meta/recipes-devtools/rpm/rpm/rpm-db-reduce.patch | 19 +++++++++++++++++++
meta/recipes-devtools/rpm/rpm_5.4.0.bb | 3 ++-
3 files changed, 24 insertions(+), 1 deletions(-)
create mode 100644 meta/recipes-devtools/rpm/rpm/rpm-db-reduce.patch
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH 1/1] rpm: Fix rpm database files capacity issue.
2011-12-28 6:56 [PATCH 0/1] rpm:fix bug 1769 Mei Lei
@ 2011-12-28 6:56 ` Mei Lei
2012-01-03 23:53 ` [PATCH 0/1] rpm:fix bug 1769 Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Mei Lei @ 2011-12-28 6:56 UTC (permalink / raw)
To: openembedded-core
Tune the __db* size in DB_CONFIG.
This will reduce the __db* size from 62MB to 26MB in qemu.
[YOCTO #1769]
Signed-off-by: Mei Lei <lei.mei@intel.com>
---
meta/classes/rootfs_rpm.bbclass | 3 +++
meta/recipes-devtools/rpm/rpm/rpm-db-reduce.patch | 19 +++++++++++++++++++
meta/recipes-devtools/rpm/rpm_5.4.0.bb | 3 ++-
3 files changed, 24 insertions(+), 1 deletions(-)
create mode 100644 meta/recipes-devtools/rpm/rpm/rpm-db-reduce.patch
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 5fd45d7..c7a034a 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -66,6 +66,9 @@ fakeroot rootfs_rpm_do_rootfs () {
mkdir -p ${INSTALL_ROOTFS_RPM}${rpmlibdir}
mkdir -p ${INSTALL_ROOTFS_RPM}${rpmlibdir}/log
+ # After change the __db.* cache size, log file will not be generated automatically,
+ # that will raise some warnings, so touch a bare log for rpm write into it.
+ touch ${INSTALL_ROOTFS_RPM}${rpmlibdir}/log/log.0000000001
cat > ${INSTALL_ROOTFS_RPM}${rpmlibdir}/DB_CONFIG << EOF
# ================ Environment
set_data_dir .
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 0000000..e063e86
--- /dev/null
+++ b/meta/recipes-devtools/rpm/rpm/rpm-db-reduce.patch
@@ -0,0 +1,19 @@
+Upstream-Status: Inappropriate [configuration]
+
+Change cache size to reduce the usage of disk space from 62MB to 26MB.
+
+Signed-off-by: Mei Lei <lei.mei@intel.com>
+
+diff --git a/rpmdb/DB_CONFIG.in b/rpmdb/DB_CONFIG.in
+index e0b4689..b64e3a9 100644
+--- a/rpmdb/DB_CONFIG.in
++++ b/rpmdb/DB_CONFIG.in
+@@ -29,7 +29,7 @@ set_thread_count 64
+
+ # ================ Memory Pool
+ #XXX initializing dbenv with set_cachesize has unimplemented prerequsites
+-#set_cachesize 0 1048576 0
++set_cachesize 0 1048576 0
+ set_mp_mmapsize 268435456
+
+ # ================ Locking
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
index 122d3a9..aae59ec 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"
DEPENDS = "bzip2 zlib db openssl elfutils expat libpcre attr acl popt ${extrarpmdeps}"
extrarpmdeps = "python perl"
extrarpmdeps_virtclass-native = "file-native"
-PR = "r27"
+PR = "r28"
# rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed
# in order to extract the distribution SRPM into a format we can extract...
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 \
file://rpm-log-auto-rm.patch \
+ file://rpm-db-reduce.patch \
file://perfile_rpmdeps.sh \
file://rpm-autogen.patch \
file://rpm-libsql-fix.patch \
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 0/1] rpm:fix bug 1769
2011-12-28 6:56 [PATCH 0/1] rpm:fix bug 1769 Mei Lei
2011-12-28 6:56 ` [PATCH 1/1] rpm: Fix rpm database files capacity issue Mei Lei
@ 2012-01-03 23:53 ` Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-01-03 23:53 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 12/27/2011 10:56 PM, Mei Lei wrote:
> Hi all,
> This patch will fix bug 1769. The discussion from community can be found here:
> http://rpm5.org/community/rpm-devel/5087.html
> Please review and merge it.
> Thanks,
> Lei
>
>
>
> The following changes since commit 8f348ccad083d6c02c200652ff6295e701e88f0d:
> Saul Wold (1):
> coreutils: ensure --color works so DEPEND on libcap
>
> are available in the git repository at:
>
> git://git.pokylinux.org/poky-contrib lmei3/bug1769
> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=lmei3/bug1769
>
> Mei Lei (1):
> rpm: Fix rpm database files capacity issue.
>
> meta/classes/rootfs_rpm.bbclass | 3 +++
> meta/recipes-devtools/rpm/rpm/rpm-db-reduce.patch | 19 +++++++++++++++++++
> meta/recipes-devtools/rpm/rpm_5.4.0.bb | 3 ++-
> 3 files changed, 24 insertions(+), 1 deletions(-)
> create mode 100644 meta/recipes-devtools/rpm/rpm/rpm-db-reduce.patch
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
Merged into OE-Core
Good Luck in your future job and School.
Thanks for your contributions
Sau!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-04 0:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-28 6:56 [PATCH 0/1] rpm:fix bug 1769 Mei Lei
2011-12-28 6:56 ` [PATCH 1/1] rpm: Fix rpm database files capacity issue Mei Lei
2012-01-03 23:53 ` [PATCH 0/1] rpm:fix bug 1769 Saul Wold
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.