Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Buildroot "install" wrapper to preserve file permissions
Date: Tue, 5 Apr 2011 21:54:47 +0200	[thread overview]
Message-ID: <20110405215447.135159ef@surf> (raw)
In-Reply-To: <BANLkTi=gd8UtSZLpam0=Luyq8dZzcdfO_g@mail.gmail.com>

On Tue, 5 Apr 2011 09:48:22 +0200
Daniel Nystr?m <daniel.nystrom@timeterminal.se> wrote:

> An idea born out of the lately device_table.txt and install issues
> discuessed lately.
> 
> In other tools similar to Buildroot (e.g. Axis SDK) I've seen an
> "install" wrapper which sort of populate an device_table.txt while
> installing each component.
> 
> In that way, it will preserve any setup, owner and permission on every
> file without any global device_table.txt modifications.
> 
> (The Axis SDK actually uses meta files in the target dir, but that
> would require a whole lot of tool patching while a dynamically written
> device_table.txt would work as well)
> 
> How would you like this sort of approach in Buildroot?

Yesterday, I've implemented something that allows each package to add
contents to the device table, so that packages can create additional
device files, or adjust the permissions of the files they install. I
needed this to fix the dbus package, which requires a particular
program to have strict permission and ownership properties.

Basically, each package can do:

define <pkg>_PERMISSION_TABLE
some content exactly similar to a device table fragment
endef

and it will automatically be appended to the device table if the
package is enabled.

Would that match your needs ?

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2011-04-05 19:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-05  7:48 [Buildroot] Buildroot "install" wrapper to preserve file permissions Daniel Nyström
2011-04-05 19:54 ` Thomas Petazzoni [this message]
2011-04-05 19:58   ` Peter Korsgaard
2011-04-05 20:32     ` Daniel Nyström
2011-04-05 21:42       ` Thomas Petazzoni
2011-04-05 22:00         ` Daniel Nyström
2011-04-06  6:59           ` Peter Korsgaard
2011-04-06  7:32             ` Daniel Nyström

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=20110405215447.135159ef@surf \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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