<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 12/19/2014 02:42 PM, Mike Looijmans
wrote:<br>
</div>
<blockquote cite="mid:5493C8D0.1040907@topic.nl" type="cite">On
12/19/2014 07:21 AM, Chen Qi wrote:
<br>
> ...
<br>
<blockquote type="cite">As almost all files under /etc are
basically configuration files, we
<br>
provide a default value for CONFFILES.
<br>
<br>
CONNFFILES = "${sysconfdir}"
<br>
</blockquote>
<br>
This is going to hurt a lot of recipes. Please do not set this.
<br>
<br>
The default has always been that CONFFILES is empty. I see no
reason whatsoever to suddenly change this.
<br>
<br>
<blockquote type="cite">In this way, we don't need to modify every
recipe to set the CONFFILES
<br>
variable. Of course, setting CONFFILES in recipes take
precedence over
<br>
the CONFFILES. For example, if the recipe author decides that
package A
<br>
should only treat files under ${sysconfdir}/default/ as config
files,
<br>
he/she can write like this.
<br>
<br>
CONFFILES_A = "${sysconfdir}/default"
<br>
<br>
The above situation should not be common. As according to FHS,
the /etc
<br>
directory is a place for all system related configuration files.
<br>
</blockquote>
<br>
FHS may have written that somewhere, but if you just take a quick
look at what is in /etc/, you'll find that actual configuration
files are quite rare, but there are tons of scripts and distro
related files there. Whether or not a file there is supposed to be
edited by the end-user is something of a distro decision.
<br>
<br>
Also, "configuration file" does not necessarily mean that the USER
is in control. A configuration file may also simply distinguish
machine capabilities or software features.
<br>
<br>
We'll end up having to patch hundreds of recipes with a
CONFFILES="" or similar line.
<br>
<br>
</blockquote>
<br>
Hi Mike,<br>
<br>
Sorry for the late reply. I was involved in other work these days.<br>
Please see my explanation below.<br>
<br>
Most files under /etc are configuration files. If we don't default
CONFFILES to ${sysconfdir}, then we have to patch a lot of recipes
with CONFFILES_xxx = "xxxx" lines.<br>
<br>
The fact is that when people write recipes, they often forget about
CONFFILES.<br>
The typical example is the shadow recipe. And I can easily give you
more examples.<br>
<br>
And it's not uncommon that people forget to check CONFFILES when
they update the recipe.<br>
When the recipe is updated to a new version, it's possible that the
CONFFILES should change.<br>
The typical example is the systemd recipe.<br>
<br>
<b>The bad effect of the above? On-target package upgrades override
user changes. That's a really annoying problem, isn't it?</b> <br>
Users of OE based projects have complained about this. There were
patches on OE which fixed several recipes. But the solution doesn't
scale.<br>
<br>
The patchset is an effort to change this situation.<br>
<br>
Best Regards,<br>
Chen Qi<br>
<br>
<blockquote cite="mid:5493C8D0.1040907@topic.nl" type="cite">
<br>
Met vriendelijke groet / kind regards,
<br>
<br>
Mike Looijmans
<br>
System Expert
<br>
<br>
<br>
TOPIC Embedded Systems
<br>
Eindhovenseweg 32-C, NL-5683 KH Best
<br>
Postbus 440, NL-5680 AK Best
<br>
Telefoon: (+31) (0) 499 33 69 79
<br>
Telefax: (+31) (0) 499 33 69 70
<br>
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:mike.looijmans@topic.nl">mike.looijmans@topic.nl</a>
<br>
Website: <a class="moz-txt-link-abbreviated" href="http://www.topic.nl">www.topic.nl</a>
<br>
<br>
Please consider the environment before printing this e-mail
<br>
<br>
Topic zoekt gedreven (embedded) software specialisten!
<br>
<a class="moz-txt-link-freetext" href="http://topic.nl/vacatures/topic-zoekt-software-engineers/">http://topic.nl/vacatures/topic-zoekt-software-engineers/</a>
<br>
<br>
</blockquote>
<br>
</body>
</html>