Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Mark Hatle <mark.hatle@windriver.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] package_rpm: Add optional improved directory handling
Date: Fri, 29 Aug 2014 23:32:01 +0100	[thread overview]
Message-ID: <1409351521.29296.210.camel@ted> (raw)
In-Reply-To: <5400FAED.8030903@windriver.com>

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).

Cheers,

Richard





  reply	other threads:[~2014-08-29 22:32 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 [this message]
2014-08-30 13:35         ` Mark Hatle

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=1409351521.29296.210.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=mark.hatle@windriver.com \
    --cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox