<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">于 2014年11月20日 01:54, Dan McGregor 写道:<br>
</div>
<blockquote
cite="mid:CACS+7ZTbE9Tggdpu2g3CyvtpZmyeGw2p5rzha67xZxyMpP2=Jw@mail.gmail.com"
type="cite">
<pre wrap="">On 14 November 2014 03:43, Jian Liu <a class="moz-txt-link-rfc2396E" href="mailto:jian.liu@windriver.com"><jian.liu@windriver.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">If there is no %config micro before the file in the spec file,
this file will be over-written after updating this package
using rpm.
This will make our settings lost.
Signed-off-by: Jian Liu <a class="moz-txt-link-rfc2396E" href="mailto:jian.liu@windriver.com"><jian.liu@windriver.com></a>
---
meta/recipes-extended/logrotate/logrotate_3.8.7.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/recipes-extended/logrotate/logrotate_3.8.7.bb b/meta/recipes-extended/logrotate/logrotate_3.8.7.bb
index faa8e02..8b39602 100644
--- a/meta/recipes-extended/logrotate/logrotate_3.8.7.bb
+++ b/meta/recipes-extended/logrotate/logrotate_3.8.7.bb
@@ -54,3 +54,5 @@ do_install(){
install -p -m 755 examples/logrotate.cron ${D}${sysconfdir}/cron.daily/logrotate
touch ${D}${localstatedir}/lib/logrotate.status
}
+
+CONFFILES_${PN} += "${localstatedir}/lib/logrotate.status"
</pre>
</blockquote>
<pre wrap="">
Part of me thinks this shouldn't be an installed file at all; instead
it should be created by a post install script if it doesn't already
exist. Thoughts?</pre>
</blockquote>
It does be contained in rpm package and generated during
installation though it is
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
empty. <br>
It is not created when logrotate is running. <br>
I test it on our WRL6.0 and WRL7.0<br>
<br>
So if you update logrotate, logrotate.status will be overwritten
during installation. <br>
All previous status may be lost.<br>
<br>
//Liu Jian<br>
<blockquote
cite="mid:CACS+7ZTbE9Tggdpu2g3CyvtpZmyeGw2p5rzha67xZxyMpP2=Jw@mail.gmail.com"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">--
1.8.5.2.233.g932f7e4
--
_______________________________________________
Openembedded-core mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openembedded.org/mailman/listinfo/openembedded-core">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Jian Liu
Email: <a class="moz-txt-link-abbreviated" href="mailto:jian.liu@windriver.com">jian.liu@windriver.com</a>
Office Phone: 86-10-84778539</pre>
</body>
</html>