Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o, Thomas Deutschmann <whissi@g.o>
Subject: Re: [gentoo-dev] Sanity check: enewuser in binpkg with portage-utils
Date: Thu, 20 Jul 2017 17:17:56
Message-Id: D9ECDB82-2A41-457B-B637-99D574D7CE02@gentoo.org
In Reply to: Re: [gentoo-dev] Sanity check: enewuser in binpkg with portage-utils by Thomas Deutschmann
1 Dnia 20 lipca 2017 18:15:00 CEST, Thomas Deutschmann <whissi@g.o> napisał(a):
2 >Hi,
3 >
4 >keep in mind that when installing a binpkg, src_* functions are
5 >skipped,
6 >see https://devmanual.gentoo.org/ebuild-writing/functions/
7 >
8 >So when you are doing anything with the actual user, you have to do
9 >that
10 >in a pkg_* function.
11 >
12 >In case of "exeopts", if you do something like
13 >
14 > exeopts -m 6710 -g plgudev
15 >
16 >in any src_* function, the created image will use the GID/UIDs from the
17 >system used to create the binpkg. This is probably your problem...
18 >
19 >Make sure to adjust permissions in pkg_* functions!
20
21 No. This is entirely wrong and insane. Tar stores user and group names, and restores them correctly.
22
23
24 --
25 Best regards,
26 Michał Górny (by phone)

Replies

Subject Author
Re: [gentoo-dev] Sanity check: enewuser in binpkg with portage-utils Thomas Deutschmann <whissi@g.o>