View previous topic :: View next topic |
Author |
Message |
isilia Apprentice
Joined: 25 Feb 2008 Posts: 177
|
Posted: Mon Feb 25, 2008 3:44 pm Post subject: [SOLVED] TinyGentoo chrooting trouble |
|
|
Hello, I've been trying to solve this problem for two days now. I've been following the guide on the gentoo wiki ( http://gentoo-wiki.com/TinyGentoo )but as soon as I try to run env-update I get the following error:
Gentoo gentoo_uclibc # chroot /mnt/gentoo_uclibc/ /bin/bash
I have no name!@Gentoo / $ env-update
Traceback (most recent call last):
File "/usr/sbin/env-update", line 27, in ?
import portage
File "/usr/lib/portage/pym/portage.py", line 75, in ?
from portage_data import ostype, lchown, userland, secpass, uid, wheelgid, \
File "/usr/lib/portage/pym/portage_data.py", line 85, in ?
if secpass < 1 and portage_gid in os.getgroups():
OSError: [Errno 38] Function not implemented
The same goes for when I try to run emerge:
I have no name!@Gentoo / $ emerge
Traceback (most recent call last):
File "/usr/bin/emerge", line 28, in ?
import portage
File "/usr/lib/portage/pym/portage.py", line 75, in ?
from portage_data import ostype, lchown, userland, secpass, uid, wheelgid, \
File "/usr/lib/portage/pym/portage_data.py", line 85, in ?
if secpass < 1 and portage_gid in os.getgroups():
OSError: [Errno 38] Function not implemented
I've been googling and searching for answers on the forums, but nothing could help me out.
Thanks in advance
Last edited by isilia on Mon Feb 25, 2008 5:01 pm; edited 1 time in total |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9830 Location: almost Mile High in the USA
|
Posted: Mon Feb 25, 2008 4:28 pm Post subject: |
|
|
My guess is that somehow python got built not to handle a specific feature that's in full libc and not available in uclibc. (and for this reason I'll never build a "full" x86 system (one that is able to run any app regardless of how much diskspace is available) with uclibc).
You could go and hack portage/python script to remove that os.getgroups call to get around this problem temporarily?
it looks like uclibc should support getgroups, may be able to get it to build uclibc with this function... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
isilia Apprentice
Joined: 25 Feb 2008 Posts: 177
|
Posted: Mon Feb 25, 2008 4:55 pm Post subject: |
|
|
Hacking the script worked, thanks.
Can't believe it actually worked O.o so it'll probably give me trouble later on ^^ |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9830 Location: almost Mile High in the USA
|
Posted: Mon Feb 25, 2008 8:08 pm Post subject: |
|
|
It probably won't, for this specific case because it's merely a security check.
But I'm assuming this machine was only for one user anyway so probably safe keep the hack... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
mirval n00b
Joined: 29 Mar 2008 Posts: 1
|
Posted: Sat Mar 29, 2008 5:41 pm Post subject: |
|
|
isilia wrote: | Hacking the script worked, thanks. |
Hi.
Can you say, what exactly am I to do, please? I have the same problem.
Thaks |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9830 Location: almost Mile High in the USA
|
Posted: Mon Mar 31, 2008 4:15 pm Post subject: |
|
|
Just go to /usr/lib/portage/pym/portage_data.py and remove that line (around line 83 or wherever it's bombing out on you) that say:
Code: | if secpass < 1 and portage_gid in os.getgroups(): |
This will force security to pass regardless of your group ID. Security hole, yes. But it gets by the problem... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|