diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2016-04-04 21:02:29 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-05 15:00:04 +0100 |
commit | d00b2250a6afebd7d1373c04b4006290f0cd4043 (patch) | |
tree | ae0987abc18f32f53e44cd5909c5bab6f48616fe /scripts/lib/devtool/utilcmds.py | |
parent | f81c641022c26a9b89fac769e0f2889eaec5d32f (diff) | |
download | openembedded-core-d00b2250a6afebd7d1373c04b4006290f0cd4043.tar.gz openembedded-core-d00b2250a6afebd7d1373c04b4006290f0cd4043.tar.bz2 openembedded-core-d00b2250a6afebd7d1373c04b4006290f0cd4043.zip |
license.bbclass: fix warnings when run in unprivileged "container" env
An unprivileged "container" environment like this[1] doesn't have root
account (uid 0) which causes tons of "Invalid argument" warnings:
$ bitbake ...
...
WARNING: Could not copy license file [src] to [dest]: [Errno 22] Invalid argument: '[src]'
WARNING: Could not copy license file [src] to [dest]: [Errno 22] Invalid argument: '[src]'
WARNING: Could not copy license file [src] to [dest]: [Errno 22] Invalid argument: '[src]'
...
Fix it by handling EINVAL similar to existing handling of EPERM (which
was added for when not running under pseudo).
[1]: The real environemnt is buildFHSUserEnv from NixOS/nixpkgs, but a
demonstration of the issue can be done like this:
$ touch f
$ unshare --user --mount chown 0:0 f
chown: changing ownership of ‘f’: Invalid argument
Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/utilcmds.py')
0 files changed, 0 insertions, 0 deletions