Gentoo Archives: gentoo-dev

From: "Harald van Dijk" <truedfx@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: Package Manager Specification: configuration protection
Date: Sat, 16 Sep 2006 07:00:53
Message-Id: 20060916065610.GA3071@gentoo.org
In Reply to: Re: [gentoo-dev] RFC: Package Manager Specification: configuration protection by Ciaran McCreesh
1 On Fri, Sep 15, 2006 at 07:39:35PM +0100, Ciaran McCreesh wrote:
2 > On Thu, 14 Sep 2006 08:51:09 +0200 Harald van Dijk <truedfx@g.o>
3 > wrote:
4 > | On Mon, Sep 11, 2006 at 11:22:11PM +0100, Ciaran McCreesh wrote:
5 > | > Comments both on the nature and the specifics of the specification
6 > | > would be welcomed. In particular, I'd like to know if people think
7 > | > we're mandating the appropriate degree of specificity and whether
8 > | > we're providing sufficient generality to avoid overly restricting
9 > | > innovation.
10 > |
11 > | I think this is overly restrictive, actually. It's a good idea to
12 > | specify which files and directories will be matched by CONFIG_PROTECT
13 > | and _MASK, since that's something ebuilds end up using, but it may be
14 > | better to leave the details on how they will be protected up to the
15 > | package manager (which can in turn make it configurable for the user).
16 > | For one example of what a package manager, if configured to do so,
17 > | should in my opinion be allowed to do: automatically remove unmodified
18 > | and abandoned configuration files on updates. (This is not the same as
19 > | setting CONFIG_PROTECT=-*.) For another, a package manager, if
20 > | configured to do so, should in my opinion be allowed to store the
21 > | config files on a (possibly local) cvs/svn server in addition to the
22 > | real filesystem, avoiding ._cfg* files altogether. Specifying how
23 > | they will be protected prevents things like this.
24 >
25 > Hm, the specification doesn't preclude additional functionality. It
26 > just describes how things should work when normal configuration
27 > protection is in action.
28
29 Sure, the specification does not prohibit package managers from having
30 behaviour that can be configured to not match what is specified, but
31 that isn't the point. The point is that if configured as such, it isn't
32 a Gentoo package manager anymore.
33 --
34 gentoo-dev@g.o mailing list