Re: [PATCH 1/4] packaging: allow globs in CONFFILES

Mike Looijmans
2014-12-19T06:42:27Z

﻿On 12/19/2014 07:21 AM, Chen Qi wrote:
> ...
> As almost all files under /etc are basically configuration files, we
> provide a default value for CONFFILES.
>
> CONNFFILES = "${sysconfdir}"

This is going to hurt a lot of recipes. Please do not set this.

The default has always been that CONFFILES is empty. I see no reason
whatsoever to suddenly change this.

> In this way, we don't need to modify every recipe to set the CONFFILES
> variable. Of course, setting CONFFILES in recipes take precedence over
> the CONFFILES. For example, if the recipe author decides that package A
> should only treat files under ${sysconfdir}/default/ as config files,
> he/she can write like this.
>
> CONFFILES_A = "${sysconfdir}/default"
>
> The above situation should not be common. As according to FHS, the /etc
> directory is a place for all system related configuration files.

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.

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.

We'll end up having to patch hundreds of recipes with a CONFFILES="" or
similar line.

Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Systems
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: (+31) (0) 499 33 69 79
Telefax: (+31) (0) 499 33 69 70
E-mail: mike.looijmans@topic.nl
Website: www.topic.nl

Please consider the environment before printing this e-mail

Topic zoekt gedreven (embedded) software specialisten!