summaryrefslogtreecommitdiffstats
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:12:03 +0000
commit32ee63229573eb094c611ce017c59c1e9813f8a5 (patch)
treeae5ef0cd12fd63485f0121ac95529873a71639a0 /meta/recipes-devtools/rpm/rpm
parentd24f8aaf62b1f1e62c5bfb5640e7bcd291f32cf5 (diff)
downloadpoky-32ee63229573eb094c611ce017c59c1e9813f8a5.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. (From OE-Core rev: e2c4dff079722f256ddcab9630b5b3f8f6421cc9) Signed-off-by: Mei Lei <lei.mei@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 @@
1diff --git a/rpmdb/DB_CONFIG.in b/rpmdb/DB_CONFIG.in
2index 8b94c94..e0b4689 100644
3--- a/rpmdb/DB_CONFIG.in
4+++ b/rpmdb/DB_CONFIG.in
5@@ -4,6 +4,7 @@ set_data_dir .
6 set_create_dir .
7 set_lg_dir ./log
8 set_tmp_dir ./tmp
9+set_flags db_log_autoremove on
10
11 # -- thread_count must be >= 8
12 set_thread_count 64