From: Mark Hatle <mark.hatle@windriver.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] package_rpm: Add optional improved directory handling
Date: Sat, 30 Aug 2014 08:35:27 -0500 [thread overview]
Message-ID: <5401D31F.4060601@windriver.com> (raw)
In-Reply-To: <1409351521.29296.210.camel@ted>
On 8/29/14, 5:32 PM, Richard Purdie wrote:
> On Fri, 2014-08-29 at 17:13 -0500, Mark Hatle wrote:
>> On 8/29/14, 5:02 PM, Richard Purdie wrote:
>>> On Fri, 2014-08-29 at 13:36 -0500, Mark Hatle wrote:
>>> Going back in time, I remember us specifically talking about directory
>>> ownership and how we likely should try and reach a point where the
>>> common system directories do become owned by specific packages. With
>>> this kind of DIRFILES support we could move in the direction. The perms
>>> tables obviously help to a point ensuring consistent permissions but
>>> they don't help the ownership problem. Or is this less of an issue since
>>> we last discussed it (which admittedly was a while ago)?
>>
>> No there is currently nothing that says I exclusively own a directory (or link).
>> The fs-perms.txt could be extended to do this (in a transparent way).
>>
>> My concern with the DIRFILES as it appears to be implemented can be shown in the
>> existing example:
>>
>> I create a new recipe that writes:
>>
>> /etc/foo.conf
>> /usr/bin/foo
>>
>> (that's it)
>>
>>
>> In the SMACK case, the /etc and /usr/bin directories shouldn't be included.. so
>> how do we define DIRFILES? If it's blank, they'll be included.. but we don't
>> have any directories to set it to... so do we need to do:
>> DIRFILES = "something_random_so_it_works"
>>
>> That seems very counter intuitive to me.
>>
>> This is why I'm suggesting an inverse relationship.. We include everything
>> other then explicitly listed directories. That way the user can globally define
>> /etc, /usr/bin, ... and individual recipes can augment this with their own
>> custom values if appropriate.
>>
>> and in the default (oe-core) case no change means the directories will continue
>> to be included -- no flag days required.
>
> I'm more thinking that when we reach this stage, the core would end up
> setting:
>
> DIRFILES = ""
>
> as the default (think a core class or conf file), then recipes can
> override as needed. You don't need something_random_so_it_works, I had
> the empty value specifically in mind to trigger this from the core (as
> opposed to None where the variable isn't set at all).
So the switch then is empty value vs not defined?
If so that is what I was missing.
--Mark
> Cheers,
>
> Richard
>
>
>
prev parent reply other threads:[~2014-08-30 13:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-29 17:39 [PATCH] package_rpm: Add optional improved directory handling Richard Purdie
2014-08-29 18:36 ` Mark Hatle
2014-08-29 22:02 ` Richard Purdie
2014-08-29 22:13 ` Mark Hatle
2014-08-29 22:32 ` Richard Purdie
2014-08-30 13:35 ` Mark Hatle [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5401D31F.4060601@windriver.com \
--to=mark.hatle@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.