Summary: | [RAP] superuser access required during prefix bootstrap | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Maoyin Sun <simonmysun> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Maoyin Sun
2021-01-29 10:56:20 UTC
what user are you running this with? what are your numeric user and group ids? @heroxbd: is there any user-mapping taking place in RAP? Hi Fabian, The user running bootstrap script: ``` uid=12261(xz4a0b2) gid=10031(uit) groups=10031(uit),9978(uitew) ``` $(EPREFIX)/etc/passwd (masked) ``` xz4a0b2:x:12261:10031:xxxxxx:/home/ext/xz4a0b2:/bin/bash portage:x:250:250:portage:/var/tmp/portage:/bin/false ``` $(EPREFIX)/etc/group ``` uit:x:10031: portage::250:portage ``` $(EPREFIX)/etc/passwd and $(EPREFIX)/etc/group previously look like copies of /etc/passwd and /etc/group and didn't have portage. I replaced them by myself. I'm not too familiar with how RAP deals with this, but it feels "weird". It feels like there should be no special users, Portage should pick up your user and group id. Do you even have a const_autotool.py in $EPREFIX/usr/lib/python3.8/site-packages/portage/const_autotool.py? (In reply to Fabian Groffen from comment #4) > Do you even have a const_autotool.py in > $EPREFIX/usr/lib/python3.8/site-packages/portage/const_autotool.py? No, I don't Thank you very much for your instant help anyway! typo fix in bug summary Ok, for this someone from RAP should chime in here on what is supposed to happen. Your setup doesn't sound too weird to me. I remember this is a portage bug. What's the permission bits of /opt/risk/tmp/xz4a0b2/gentoo? *** This bug has been marked as a duplicate of bug 766417 *** (In reply to Benda Xu from comment #8) > I remember this is a portage bug. What's the permission bits of > /opt/risk/tmp/xz4a0b2/gentoo? It's drwxrwxrwx and belongs to user xz4a0b2 group uit. (In reply to Benda Xu from comment #9) > > *** This bug has been marked as a duplicate of bug 766417 *** Thank you. I believe it's the same problem, except that I manually added portage to $EPREFIX/etc/passwd and $EPREFIX/etc/group. I am sorry for not reporting under the previous bug post although I did searched. |