diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2009-11-24 09:21:56 -0600 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2009-12-12 13:08:16 +0100 |
commit | db1d18657c96cc675596077cb60ef50fbe1947f8 (patch) | |
tree | 14f38c412bb0bee19c0f536fdb22c17b1965a48b /fs/exportfs | |
parent | 05ba4488a51edde95df3f89987fdcdbca7c3cebb (diff) |
scripts/package: deb-pkg: use fakeroot if available
Running "make deb-pkg" requires setting KBUILD_PKG_ROOTCMD or
becoming root oneself or it errors out. Unless already running
as root or KBUILD_PKG_ROOTCMD is already set, use fakeroot as a
good default.
With this patch applied, you can run "make oldconfig deb-pkg" as
an ordinary user to build a binary package for an updated kernel
tree and it should just work.
fakeroot is too zealous by default in treating files as owned by
root. Its wrapped stat() sets st_uid and st_gid to 0 for all
files, which causes Git to go on a wild goose chase if
CONFIG_LOCALVERSION_AUTO is set, checking if any file's content
has changed along with its stat information. Avoid this by
telling fakeroot to use the actual owner and group for
preexisting files, by passing it the -u option.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'fs/exportfs')
0 files changed, 0 insertions, 0 deletions