From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Wed, 06 Apr 2011 08:59:33 +0200 Subject: [Buildroot] Buildroot "install" wrapper to preserve file permissions In-Reply-To: ("Daniel =?utf-8?Q?Nystr=C3=B6m=22's?= message of "Wed, 6 Apr 2011 00:00:50 +0200") References: <20110405215447.135159ef@surf> <87ipuswjux.fsf@macbook.be.48ers.dk> <20110405234253.2d0c2700@surf> Message-ID: <87ei5fx3u2.fsf@macbook.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Daniel" == Daniel Nystr?m 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