1 |
ok, thank you.I will try the chroot stuff as soon as I have some time. |
2 |
|
3 |
As for what I'm trying to do: making portage able to add user/groups when using --root option. |
4 |
This is a known limitation since a long time. I'm currently also discussing this point with the "shadow" upstream team (I have some patches for useradd and groupadd) |
5 |
|
6 |
So for now I'm trying to make portage to just echo some traces when calling enewgroup for example, when I emerge sys-power/nut as a test package (that package is creating a nut user and group) |
7 |
I tried to put some einfo at the begining of the enewgroup function, but I do not see them. I also tryed echo "test" > /tmp/test.txt, and I do no see the file too... |
8 |
|
9 |
And I see the traces from the nut ebuild (package_setup if I remember properly). And if I remove the nut group from my /etc/group, I do see the enewgroup original traces, but not mine. |
10 |
It's as if portage is using a different enewgroup function, or a cached one... |
11 |
|
12 |
I tried the irc last time, but nobody was there (most likely because of the time. I will try tomorrow late afternoon) |
13 |
|
14 |
-------------------------------------------- |
15 |
En date de : Mer 4.5.16, Ian Stakenvicius <axs@g.o> a écrit : |
16 |
|
17 |
Objet: Re: [gentoo-dev] Re : Cannot see my eclass modifications |
18 |
À: gentoo-dev@l.g.o |
19 |
Date: Mercredi 4 mai 2016, 20h28 |
20 |
|
21 |
On 04/05/16 02:30 PM, |
22 |
Farid BENAMROUCHE wrote: |
23 |
> hum... yes I've |
24 |
setup all the relevant settings in my /etc/portage... |
25 |
> I've also read the man, and still not |
26 |
understanding why. |
27 |
> |
28 |
> But At least you are confirming me that |
29 |
directly modifying the user.eclass in /usr/portage/eclass |
30 |
should work! |
31 |
> |
32 |
> The |
33 |
exact command line I've used was ROOT=/sysroot emerge |
34 |
-av sys-power/nut, where sysroot is a working x86 rootfs |
35 |
(ie, I can chroot in it) with no portage inside... |
36 |
> |
37 |
> |
38 |
PORTAGE_ECLASS_WARNING_ENABLE="1" in the make.conf |
39 |
seems to not work too... |
40 |
|
41 |
|
42 |
..ok so if you've got a |
43 |
full chroot, you might want to use 'emerge |
44 |
--config-root=/path/to/chroot [stuff]' and |
45 |
make sure that the |
46 |
/etc/portage/repos.conf |
47 |
changes you made are in the chroot too. |
48 |
|
49 |
Barring that, though, the issue may very well |
50 |
be the type of changes |
51 |
you're trying to |
52 |
make to user.eclass just not working (or being |
53 |
called) as expected. |
54 |
|
55 |
A bunch of us hang out on irc.freenode.org in |
56 |
#gentoo-dev-help , and |
57 |
stuff like this may |
58 |
be easier to help with in a more interactive |
59 |
environment like that. |