aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm
diff options
context:
space:
mode:
authorMei Lei <lei.mei@intel.com>2011-11-17 14:57:56 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-24 22:09:20 +0000
commite2c4dff079722f256ddcab9630b5b3f8f6421cc9 (patch)
treebc5af8b80a507b309925432f67afdbf4da4ec908 /meta/recipes-devtools/rpm/rpm
parente364b04a34d7c2a95145799773821e82b8677e78 (diff)
downloadopenembedded-core-e2c4dff079722f256ddcab9630b5b3f8f6421cc9.tar.gz
rpm: Flush old logs by change the DB_CONFIG
Fixes [YOCTO #1174] Rpm logs will grow indefinitely, so change the config to flush those old logs. Signed-off-by: Mei Lei <lei.mei@intel.com>
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm')
-rw-r--r--meta/recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch b/meta/recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch
new file mode 100644
index 0000000000..aafa416881
--- /dev/null
+++ b/meta/recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch
@@ -0,0 +1,12 @@
+diff --git a/rpmdb/DB_CONFIG.in b/rpmdb/DB_CONFIG.in
+index 8b94c94..e0b4689 100644
+--- a/rpmdb/DB_CONFIG.in
++++ b/rpmdb/DB_CONFIG.in
+@@ -4,6 +4,7 @@ set_data_dir .
+ set_create_dir .
+ set_lg_dir ./log
+ set_tmp_dir ./tmp
++set_flags db_log_autoremove on
+
+ # -- thread_count must be >= 8
+ set_thread_count 64