Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] TinyGentoo chrooting trouble
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
isilia
Apprentice
Apprentice


Joined: 25 Feb 2008
Posts: 177

PostPosted: Mon Feb 25, 2008 3:44 pm    Post subject: [SOLVED] TinyGentoo chrooting trouble Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9832
Location: almost Mile High in the USA

PostPosted: Mon Feb 25, 2008 4:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
isilia
Apprentice
Apprentice


Joined: 25 Feb 2008
Posts: 177

PostPosted: Mon Feb 25, 2008 4:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9832
Location: almost Mile High in the USA

PostPosted: Mon Feb 25, 2008 8:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
mirval
n00b
n00b


Joined: 29 Mar 2008
Posts: 1

PostPosted: Sat Mar 29, 2008 5:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9832
Location: almost Mile High in the USA

PostPosted: Mon Mar 31, 2008 4:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
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