Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1]rpm: Fix rpm log grows indefinitely issue.
@ 2011-11-17  8:32 Mei Lei
  2011-11-17  8:32 ` [PATCH 1/1] rpm: Flush old logs by change the DB_CONFIG Mei Lei
  0 siblings, 1 reply; 4+ messages in thread
From: Mei Lei @ 2011-11-17  8:32 UTC (permalink / raw)
  To: openembedded-core

This patch fixes bug 1174.

Thanks,
Lei

The following changes since commit 300336fc4a310ed16a14ad041744708d54aae189:
  Richard Purdie (1):
        update-alternatives: Various fixes

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib lmei3/bug1174
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=lmei3/bug1174

Mei Lei (1):
  rpm: Flush old logs by change the DB_CONFIG

 .../recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch |   12 ++++++++++++
 meta/recipes-devtools/rpm/rpm_5.4.0.bb             |    5 +++--
 2 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/1] rpm: Flush old logs by change the DB_CONFIG
  2011-11-17  8:32 [PATCH 0/1]rpm: Fix rpm log grows indefinitely issue Mei Lei
@ 2011-11-17  8:32 ` Mei Lei
  2011-11-22 18:09   ` Mark Hatle
  2011-11-25  0:01   ` Richard Purdie
  0 siblings, 2 replies; 4+ messages in thread
From: Mei Lei @ 2011-11-17  8:32 UTC (permalink / raw)
  To: openembedded-core

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>
---
 .../recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch |   12 ++++++++++++
 meta/recipes-devtools/rpm/rpm_5.4.0.bb             |    5 +++--
 2 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch

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 0000000..aafa416
--- /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
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
index f8fe836..d14bce4 100644
--- a/meta/recipes-devtools/rpm/rpm_5.4.0.bb
+++ b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
@@ -45,11 +45,12 @@ 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 = "r23"
+PR = "r24"
 
 # 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://perfile_rpmdeps.sh \
 	   file://rpm-autogen.patch \
 	   file://rpm-libsql-fix.patch \
@@ -192,6 +193,7 @@ FILES_${PN} = "${bindir}/rpm \
 		${libdir}/rpm/bin/rpmrepo \
 		${libdir}/rpm/bin/rpmspecdump \
 		${libdir}/rpm/bin/wget \
+		/var/lib/rpm \
 		"
 
 #		${libdir}/rpm/magic
@@ -208,7 +210,6 @@ FILES_${PN}-dbg += "${libdir}/rpm/.debug \
 FILES_${PN}-common = "${bindir}/rpm2cpio \
 		${bindir}/gendiff \
 		/etc/rpm \
-		/var/lib/rpm \
 		/var/spool/repackage \
 		"
 
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] rpm: Flush old logs by change the DB_CONFIG
  2011-11-17  8:32 ` [PATCH 1/1] rpm: Flush old logs by change the DB_CONFIG Mei Lei
@ 2011-11-22 18:09   ` Mark Hatle
  2011-11-25  0:01   ` Richard Purdie
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Hatle @ 2011-11-22 18:09 UTC (permalink / raw)
  To: openembedded-core

Acked-by:  Mark Hatle <mark.hatle@windriver.com>

(Note: this is the fix suggested by the rpm5 community.)

On 11/17/11 2:32 AM, Mei Lei wrote:
> 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>
> ---
>   .../recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch |   12 ++++++++++++
>   meta/recipes-devtools/rpm/rpm_5.4.0.bb             |    5 +++--
>   2 files changed, 15 insertions(+), 2 deletions(-)
>   create mode 100644 meta/recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch
>
> 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 0000000..aafa416
> --- /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
> diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
> index f8fe836..d14bce4 100644
> --- a/meta/recipes-devtools/rpm/rpm_5.4.0.bb
> +++ b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
> @@ -45,11 +45,12 @@ 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 = "r23"
> +PR = "r24"
>
>   # 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://perfile_rpmdeps.sh \
>   	   file://rpm-autogen.patch \
>   	   file://rpm-libsql-fix.patch \
> @@ -192,6 +193,7 @@ FILES_${PN} = "${bindir}/rpm \
>   		${libdir}/rpm/bin/rpmrepo \
>   		${libdir}/rpm/bin/rpmspecdump \
>   		${libdir}/rpm/bin/wget \
> +		/var/lib/rpm \
>   		"
>
>   #		${libdir}/rpm/magic
> @@ -208,7 +210,6 @@ FILES_${PN}-dbg += "${libdir}/rpm/.debug \
>   FILES_${PN}-common = "${bindir}/rpm2cpio \
>   		${bindir}/gendiff \
>   		/etc/rpm \
> -		/var/lib/rpm \
>   		/var/spool/repackage \
>   		"
>




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] rpm: Flush old logs by change the DB_CONFIG
  2011-11-17  8:32 ` [PATCH 1/1] rpm: Flush old logs by change the DB_CONFIG Mei Lei
  2011-11-22 18:09   ` Mark Hatle
@ 2011-11-25  0:01   ` Richard Purdie
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2011-11-25  0:01 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, 2011-11-17 at 16:32 +0800, Mei Lei wrote:
> 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>
> ---
>  .../recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch |   12 ++++++++++++
>  meta/recipes-devtools/rpm/rpm_5.4.0.bb             |    5 +++--
>  2 files changed, 15 insertions(+), 2 deletions(-)
>  create mode 100644 meta/recipes-devtools/rpm/rpm/rpm-log-auto-rm.patch

Merged to master, thanks.

Richard




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-25  0:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-17  8:32 [PATCH 0/1]rpm: Fix rpm log grows indefinitely issue Mei Lei
2011-11-17  8:32 ` [PATCH 1/1] rpm: Flush old logs by change the DB_CONFIG Mei Lei
2011-11-22 18:09   ` Mark Hatle
2011-11-25  0:01   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox