public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Re : Cannot see my eclass modifications
       [not found] <625675172.8099045.1462042999392.JavaMail.yahoo.ref@mail.yahoo.com>
@ 2016-04-30 19:03 ` Farid BENAMROUCHE
  0 siblings, 0 replies; 8+ messages in thread
From: Farid BENAMROUCHE @ 2016-04-30 19:03 UTC (permalink / raw
  To: gentoo-dev

Hi all,
 
 I'm currently developping a patch for user.eclass, but I'm
 banging my head against a wall...
 
 So for testing first, I've setup an overlay, and I now that
 it is taken in account by portage (If I rename portage's
 user.eclass, emerge is still working. If I remove my
 overlay, emerge complains about missing user eclass. So my
 overlay is actually working)
 I've modified enewgroup and egetent for example and put some
 einfo and also modified some other stuffs to be sure that
 I'm entering the function....
 
 Then emerge sys-power/nut, I can see the pkg-setup traces,
 just after the call to enewgroup... but still cannot see my
 eclass modifications!
 I tried to modify directly the
 /usr/portage/eclass/user.eclass file, but still the same
 issue...
 I'm totally puzzled about this point! I'm most likely
 missing a stupid point somewhere...
 
 Anyone knows what could be the problem? Please let me know
 what traces/info you need and I will post them.
 
 Thank you!
 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-dev] Re : Cannot see my eclass modifications
       [not found] <844174820.53777.1462311750309.JavaMail.yahoo.ref@mail.yahoo.com>
@ 2016-05-03 21:42 ` Farid BENAMROUCHE
  2016-05-03 22:26   ` Ian Stakenvicius
  2016-05-03 22:39   ` Mike Gilbert
  0 siblings, 2 replies; 8+ messages in thread
From: Farid BENAMROUCHE @ 2016-05-03 21:42 UTC (permalink / raw
  To: gentoo-dev

Hi,

I'm still searching for the reason why I'm not seeing my eclass modifications... no luck so far.

What can I do to debug portage's behavior?

Thank you

--------------------------------------------
En date de : Sam 30.4.16, Farid BENAMROUCHE <fariouche@yahoo.fr> a écrit :

 Objet: Re : Cannot see my eclass modifications
 À: gentoo-dev@lists.gentoo.org
 Date: Samedi 30 avril 2016, 20h03
 
 Hi all,
  
  I'm currently developping a patch for user.eclass, but I'm
  banging my head against a wall...
  
  So for testing first, I've setup an overlay, and I now
 that
  it is taken in account by portage (If I rename portage's
  user.eclass, emerge is still working. If I remove my
  overlay, emerge complains about missing user eclass. So my
  overlay is actually working)
  I've modified enewgroup and egetent for example and put
 some
  einfo and also modified some other stuffs to be sure that
  I'm entering the function....
  
  Then emerge sys-power/nut, I can see the pkg-setup traces,
  just after the call to enewgroup... but still cannot see
 my
  eclass modifications!
  I tried to modify directly the
  /usr/portage/eclass/user.eclass file, but still the same
  issue...
  I'm totally puzzled about this point! I'm most likely
  missing a stupid point somewhere...
  
  Anyone knows what could be the problem? Please let me know
  what traces/info you need and I will post them.
  
  Thank you!
  


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] Re : Cannot see my eclass modifications
  2016-05-03 21:42 ` Farid BENAMROUCHE
@ 2016-05-03 22:26   ` Ian Stakenvicius
  2016-05-03 22:39   ` Mike Gilbert
  1 sibling, 0 replies; 8+ messages in thread
From: Ian Stakenvicius @ 2016-05-03 22:26 UTC (permalink / raw
  To: gentoo-dev


> On May 3, 2016, at 5:42 PM, Farid BENAMROUCHE <fariouche@yahoo.fr> wrote:
> 
> Hi,
> 
> I'm still searching for the reason why I'm not seeing my eclass modifications... no luck so far.
> 
> What can I do to debug portage's behavior?
> 
> Thank you
> 
> --------------------------------------------
> En date de : Sam 30.4.16, Farid BENAMROUCHE <fariouche@yahoo.fr> a écrit :
> 
> Objet: Re : Cannot see my eclass modifications
> À: gentoo-dev@lists.gentoo.org
> Date: Samedi 30 avril 2016, 20h03
> 
> Hi all,
> 
>  I'm currently developping a patch for user.eclass, but I'm
>  banging my head against a wall...
> 
>  So for testing first, I've setup an overlay, and I now
> that
>  it is taken in account by portage (If I rename portage's
>  user.eclass, emerge is still working. If I remove my
>  overlay, emerge complains about missing user eclass. So my
>  overlay is actually working)
>  I've modified enewgroup and egetent for example and put
> some
>  einfo and also modified some other stuffs to be sure that
>  I'm entering the function....
> 
>  Then emerge sys-power/nut, I can see the pkg-setup traces,
>  just after the call to enewgroup... but still cannot see
> my
>  eclass modifications!
>  I tried to modify directly the
>  /usr/portage/eclass/user.eclass file, but still the same
>  issue...
>  I'm totally puzzled about this point! I'm most likely
>  missing a stupid point somewhere...
> 
>  Anyone knows what could be the problem? Please let me know
>  what traces/info you need and I will post them.
> 
>  Thank you!
> 
> 


You can't override the eclass used by ebuilds in another repo by default.  You have to  edit /etc/portage/repos.conf/gentoo.conf and adjust a setting.  Man portage or googling about repos.conf should provide more info.






^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] Re : Cannot see my eclass modifications
  2016-05-03 21:42 ` Farid BENAMROUCHE
  2016-05-03 22:26   ` Ian Stakenvicius
@ 2016-05-03 22:39   ` Mike Gilbert
  1 sibling, 0 replies; 8+ messages in thread
From: Mike Gilbert @ 2016-05-03 22:39 UTC (permalink / raw
  To: Gentoo Dev, fariouche

On Tue, May 3, 2016 at 5:42 PM, Farid BENAMROUCHE <fariouche@yahoo.fr> wrote:
> Hi,
>
> I'm still searching for the reason why I'm not seeing my eclass modifications... no luck so far.
>
> What can I do to debug portage's behavior?
>
> Thank you
>
> --------------------------------------------
> En date de : Sam 30.4.16, Farid BENAMROUCHE <fariouche@yahoo.fr> a écrit :
>
>  Objet: Re : Cannot see my eclass modifications
>  À: gentoo-dev@lists.gentoo.org
>  Date: Samedi 30 avril 2016, 20h03
>
>  Hi all,
>
>   I'm currently developping a patch for user.eclass, but I'm
>   banging my head against a wall...
>
>   So for testing first, I've setup an overlay, and I now
>  that
>   it is taken in account by portage (If I rename portage's
>   user.eclass, emerge is still working. If I remove my
>   overlay, emerge complains about missing user eclass. So my
>   overlay is actually working)
>   I've modified enewgroup and egetent for example and put
>  some
>   einfo and also modified some other stuffs to be sure that
>   I'm entering the function....
>
>   Then emerge sys-power/nut, I can see the pkg-setup traces,
>   just after the call to enewgroup... but still cannot see
>  my
>   eclass modifications!
>   I tried to modify directly the
>   /usr/portage/eclass/user.eclass file, but still the same
>   issue...
>   I'm totally puzzled about this point! I'm most likely
>   missing a stupid point somewhere...
>
>   Anyone knows what could be the problem? Please let me know
>   what traces/info you need and I will post them.
>
>   Thank you!
>
>

Portage will only use eclasses from your overlay for ebuilds in your
overlay, at least by default. You can force it to use your overlay by
setting eclass-overrides in repos.conf.

I have no idea why you would experience this problem if you are
modifying /usr/portage/eclass directly.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] Re : Cannot see my eclass modifications
       [not found] <1205071355.1003943.1462386628387.JavaMail.yahoo.ref@mail.yahoo.com>
@ 2016-05-04 18:30 ` Farid BENAMROUCHE
  2016-05-04 19:28   ` Ian Stakenvicius
  0 siblings, 1 reply; 8+ messages in thread
From: Farid BENAMROUCHE @ 2016-05-04 18:30 UTC (permalink / raw
  To: Gentoo Dev

hum... yes I've setup all the relevant settings in my /etc/portage...
I've also read the man, and still not understanding why.

But At least you are confirming me that directly modifying the user.eclass in /usr/portage/eclass should work!

The exact command line I've used was ROOT=/sysroot emerge -av sys-power/nut, where sysroot is a working x86 rootfs (ie, I can chroot in it) with no portage inside...

PORTAGE_ECLASS_WARNING_ENABLE="1" in the make.conf seems to not work too...

--------------------------------------------
En date de : Mar 3.5.16, Mike Gilbert <floppym@gentoo.org> a écrit :

 Objet: Re: [gentoo-dev] Re : Cannot see my eclass modifications
 À: "Gentoo Dev" <gentoo-dev@lists.gentoo.org>, fariouche@yahoo.fr
 Date: Mardi 3 mai 2016, 23h39
 
 On Tue, May 3, 2016 at
 5:42 PM, Farid BENAMROUCHE <fariouche@yahoo.fr>
 wrote:
 > Hi,
 >
 > I'm still searching for the reason why
 I'm not seeing my eclass modifications... no luck so
 far.
 >
 > What can I do
 to debug portage's behavior?
 >
 > Thank you
 >
 >
 --------------------------------------------
 > En date de : Sam 30.4.16, Farid
 BENAMROUCHE <fariouche@yahoo.fr>
 a écrit :
 >
 > 
 Objet: Re : Cannot see my eclass modifications
 >  À: gentoo-dev@lists.gentoo.org
 >  Date: Samedi 30 avril 2016, 20h03
 >
 >  Hi all,
 >
 >   I'm
 currently developping a patch for user.eclass, but
 I'm
 >   banging my head
 against a wall...
 >
 >   So for testing first,
 I've setup an overlay, and I now
 > 
 that
 >   it is taken in
 account by portage (If I rename portage's
 >   user.eclass, emerge is still
 working. If I remove my
 >   overlay, emerge complains
 about missing user eclass. So my
 >   overlay is actually
 working)
 >   I've modified
 enewgroup and egetent for example and put
 >  some
 >   einfo and also modified some
 other stuffs to be sure that
 >   I'm entering the
 function....
 >
 >   Then emerge sys-power/nut, I
 can see the pkg-setup traces,
 >   just after the call to
 enewgroup... but still cannot see
 > 
 my
 >   eclass
 modifications!
 >   I tried to
 modify directly the
 >   /usr/portage/eclass/user.eclass
 file, but still the same
 >   issue...
 >   I'm totally puzzled about
 this point! I'm most likely
 >   missing a stupid point
 somewhere...
 >
 >   Anyone knows what could be
 the problem? Please let me know
 >   what traces/info you need and
 I will post them.
 >
 >   Thank you!
 >
 >
 
 Portage will only use eclasses from your
 overlay for ebuilds in your
 overlay, at
 least by default. You can force it to use your overlay by
 setting eclass-overrides in repos.conf.
 
 I have no idea why you would
 experience this problem if you are
 modifying
 /usr/portage/eclass directly.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] Re : Cannot see my eclass modifications
  2016-05-04 18:30 ` Farid BENAMROUCHE
@ 2016-05-04 19:28   ` Ian Stakenvicius
  0 siblings, 0 replies; 8+ messages in thread
From: Ian Stakenvicius @ 2016-05-04 19:28 UTC (permalink / raw
  To: gentoo-dev


[-- Attachment #1.1: Type: text/plain, Size: 1080 bytes --]

On 04/05/16 02:30 PM, Farid BENAMROUCHE wrote:
> hum... yes I've setup all the relevant settings in my /etc/portage...
> I've also read the man, and still not understanding why.
> 
> But At least you are confirming me that directly modifying the user.eclass in /usr/portage/eclass should work!
> 
> The exact command line I've used was ROOT=/sysroot emerge -av sys-power/nut, where sysroot is a working x86 rootfs (ie, I can chroot in it) with no portage inside...
> 
> PORTAGE_ECLASS_WARNING_ENABLE="1" in the make.conf seems to not work too...


..ok so if you've got a full chroot, you might want to use 'emerge
--config-root=/path/to/chroot [stuff]' and make sure that the
/etc/portage/repos.conf changes you made are in the chroot too.

Barring that, though, the issue may very well be the type of changes
you're trying to make to user.eclass just not working (or being
called) as expected.

A bunch of us hang out on irc.freenode.org in #gentoo-dev-help , and
stuff like this may be easier to help with in a more interactive
environment like that.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 213 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] Re : Cannot see my eclass modifications
       [not found] <531674706.1193068.1462397968880.JavaMail.yahoo.ref@mail.yahoo.com>
@ 2016-05-04 21:39 ` Farid BENAMROUCHE
  0 siblings, 0 replies; 8+ messages in thread
From: Farid BENAMROUCHE @ 2016-05-04 21:39 UTC (permalink / raw
  To: gentoo-dev

ok, thank you.I will try the chroot stuff as soon as I have some time.

As for what I'm trying to do: making portage able to add user/groups when using --root option.
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)

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)
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...

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.
It's as if portage is using a different enewgroup function, or a cached one...

I tried the irc last time, but nobody was there (most likely because of the time. I will try tomorrow late afternoon)

--------------------------------------------
En date de : Mer 4.5.16, Ian Stakenvicius <axs@gentoo.org> a écrit :

 Objet: Re: [gentoo-dev] Re : Cannot see my eclass modifications
 À: gentoo-dev@lists.gentoo.org
 Date: Mercredi 4 mai 2016, 20h28
 
 On 04/05/16 02:30 PM,
 Farid BENAMROUCHE wrote:
 > hum... yes I've
 setup all the relevant settings in my /etc/portage...
 > I've also read the man, and still not
 understanding why.
 > 
 > But At least you are confirming me that
 directly modifying the user.eclass in /usr/portage/eclass
 should work!
 > 
 > The
 exact command line I've used was ROOT=/sysroot emerge
 -av sys-power/nut, where sysroot is a working x86 rootfs
 (ie, I can chroot in it) with no portage inside...
 > 
 >
 PORTAGE_ECLASS_WARNING_ENABLE="1" in the make.conf
 seems to not work too...
 
 
 ..ok so if you've got a
 full chroot, you might want to use 'emerge
 --config-root=/path/to/chroot [stuff]' and
 make sure that the
 /etc/portage/repos.conf
 changes you made are in the chroot too.
 
 Barring that, though, the issue may very well
 be the type of changes
 you're trying to
 make to user.eclass just not working (or being
 called) as expected.
 
 A bunch of us hang out on irc.freenode.org in
 #gentoo-dev-help , and
 stuff like this may
 be easier to help with in a more interactive
 environment like that.
 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] Re : Cannot see my eclass modifications
       [not found] <1352677531.1504879.1462448887092.JavaMail.yahoo.ref@mail.yahoo.com>
@ 2016-05-05 11:48 ` Farid BENAMROUCHE
  0 siblings, 0 replies; 8+ messages in thread
From: Farid BENAMROUCHE @ 2016-05-05 11:48 UTC (permalink / raw
  To: gentoo-dev

I've made some progress!

In my command line, I was still using the -k argument: ROOT=/sysroot emerge -avk sys-power/nut
It seems like the eclass is inside the binary package and thus ignoring the system eclass. (which make sense to me)
Now I can test my modifications and propose something ;)

thank you

--------------------------------------------
En date de : Mer 4.5.16, Ian Stakenvicius <axs@gentoo.org> a écrit :

 Objet: Re: [gentoo-dev] Re : Cannot see my eclass modifications
 À: gentoo-dev@lists.gentoo.org
 Date: Mercredi 4 mai 2016, 20h28
 
 On 04/05/16 02:30 PM,
 Farid BENAMROUCHE wrote:
 > hum... yes I've
 setup all the relevant settings in my /etc/portage...
 > I've also read the man, and still not
 understanding why.
 > 
 > But At least you are confirming me that
 directly modifying the user.eclass in /usr/portage/eclass
 should work!
 > 
 > The
 exact command line I've used was ROOT=/sysroot emerge
 -av sys-power/nut, where sysroot is a working x86 rootfs
 (ie, I can chroot in it) with no portage inside...
 > 
 >
 PORTAGE_ECLASS_WARNING_ENABLE="1" in the make.conf
 seems to not work too...
 
 
 ..ok so if you've got a
 full chroot, you might want to use 'emerge
 --config-root=/path/to/chroot [stuff]' and
 make sure that the
 /etc/portage/repos.conf
 changes you made are in the chroot too.
 
 Barring that, though, the issue may very well
 be the type of changes
 you're trying to
 make to user.eclass just not working (or being
 called) as expected.
 
 A bunch of us hang out on irc.freenode.org in
 #gentoo-dev-help , and
 stuff like this may
 be easier to help with in a more interactive
 environment like that.
 


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-05-05 11:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1352677531.1504879.1462448887092.JavaMail.yahoo.ref@mail.yahoo.com>
2016-05-05 11:48 ` [gentoo-dev] Re : Cannot see my eclass modifications Farid BENAMROUCHE
     [not found] <531674706.1193068.1462397968880.JavaMail.yahoo.ref@mail.yahoo.com>
2016-05-04 21:39 ` Farid BENAMROUCHE
     [not found] <1205071355.1003943.1462386628387.JavaMail.yahoo.ref@mail.yahoo.com>
2016-05-04 18:30 ` Farid BENAMROUCHE
2016-05-04 19:28   ` Ian Stakenvicius
     [not found] <844174820.53777.1462311750309.JavaMail.yahoo.ref@mail.yahoo.com>
2016-05-03 21:42 ` Farid BENAMROUCHE
2016-05-03 22:26   ` Ian Stakenvicius
2016-05-03 22:39   ` Mike Gilbert
     [not found] <625675172.8099045.1462042999392.JavaMail.yahoo.ref@mail.yahoo.com>
2016-04-30 19:03 ` Farid BENAMROUCHE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox