Gentoo Archives: gentoo-dev

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Sanity check: enewuser in binpkg with portage-utils
Date: Thu, 20 Jul 2017 16:15:21
Message-Id: c2823c8c-d0e3-23b0-758d-4b49c52ce939@gentoo.org
In Reply to: [gentoo-dev] Sanity check: enewuser in binpkg with portage-utils by Peter Stuge
1 Hi,
2
3 keep in mind that when installing a binpkg, src_* functions are skipped,
4 see https://devmanual.gentoo.org/ebuild-writing/functions/
5
6 So when you are doing anything with the actual user, you have to do that
7 in a pkg_* function.
8
9 In case of "exeopts", if you do something like
10
11 exeopts -m 6710 -g plgudev
12
13 in any src_* function, the created image will use the GID/UIDs from the
14 system used to create the binpkg. This is probably your problem...
15
16 Make sure to adjust permissions in pkg_* functions!
17
18
19 --
20 Regards,
21 Thomas

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Sanity check: enewuser in binpkg with portage-utils "Michał Górny" <mgorny@g.o>