From: | "Vadim A. Misbakh-Soloviov" <gentoo@×××.name> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] UFO: 'No. You make ME a sandwich.' | ||
Date: | Mon, 30 Oct 2017 13:44:54 | ||
Message-Id: | 1656831.tvWqQ77X6i@note | ||
In Reply to: | Re: [gentoo-user] UFO: 'No. You make ME a sandwich.' by Alexander Kapshuk |
1 | > check-if-root: |
2 | > @if test `id -u` = 0 && ! grep -q 'lxc\|docker' /proc/self/cgroup; then \ |
3 | > echo; \ |
4 | > echo 'No. You make ME a sandwich.'; \ |
5 | > echo; \ |
6 | > exit 1; \ |
7 | > fi |
8 | |
9 | That code means "if current user is root and it is not a docker/lxc container |
10 | then fail". |
11 | |
12 | Libreoffice maintainers just warns you that you shouldn't run build process |
13 | under root (so, add "userpriv sandbox usersandbox" and so on to the FEATURES). |
14 | |
15 | and the sandwitch is just reference to the https://www.xkcd.com/149/ |