[Buildroot] Buildroot "install" wrapper to preserve file permissions

Peter Korsgaard jacmet at uclibc.org
Wed Apr 6 06:59:33 UTC 2011


>>>>> "Daniel" == Daniel Nyström <daniel.nystrom at timeterminal.se> writes:

Hi,

 >> How does this wrapper works ? I'd like to check if it solve my dbus
 >> issue, because I'm not sure that the dbus build system installs it with
 >> the correct ownership (permission will probably be correct, but I'm not
 >> sure about ownership).

 Daniel> There is none yet, but as I think of it, it just adds a line in the
 Daniel> device_table.txt with the path and permission to the installed files.

 Daniel> install -o 1000 -g 1000 -m 755 mybinary /usr/bin/mybinary

Something like that, except it should only do so when called with a
destination directory under $(TARGET_DIR) and only if called with -o or
-g to set owner/group differently than root/root. As a further
complication owner/group can be numeric or names, and names have to get
resolved to the IDs we have in $(TARGET_DIR)/etc/{passwd,group}.

Finally the -o / -g options should get stripped and the request
forwarded to the real install program.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list