Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Snow Leopard] Gentoo Prefix: failed bootstraping python...
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
lfhelper
n00b
n00b


Joined: 14 Dec 2006
Posts: 14

PostPosted: Mon Feb 14, 2011 9:39 pm    Post subject: [Snow Leopard] Gentoo Prefix: failed bootstraping python... Reply with quote

Hi all,

im using Mac OS X / Snow Leopard on my MacBook Pro.

I have Xcode 3 and a proper macports environment installed.

Following the steps on http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml
I prepared a script to do the work:

Code:
#!/opt/local/bin/bash

set -e

export EPREFIX=/opt/Gentoo
export CHOST=x86_64-apple-darwin10
export PATH="$EPREFIX/usr/bin:$EPREFIX/bin:$EPREFIX/tmp/usr/bin:$EPREFIX/tmp/bin:$PATH"

./bootstrap-prefix.sh $EPREFIX tree
./bootstrap-prefix.sh $EPREFIX/tmp make
./bootstrap-prefix.sh $EPREFIX/tmp wget
./bootstrap-prefix.sh $EPREFIX/tmp sed
./bootstrap-prefix.sh $EPREFIX/tmp python
./bootstrap-prefix.sh $EPREFIX/tmp coreutils6
./bootstrap-prefix.sh $EPREFIX/tmp findutils
./bootstrap-prefix.sh $EPREFIX/tmp tar15
./bootstrap-prefix.sh $EPREFIX/tmp patch9
./bootstrap-prefix.sh $EPREFIX/tmp grep
./bootstrap-prefix.sh $EPREFIX/tmp gawk
./bootstrap-prefix.sh $EPREFIX/tmp bash
./bootstrap-prefix.sh $EPREFIX portage


The procedure fails when trying to bootstrap python 2.6.4.

Here a short outtake from the errormessage:

Code:
Failed to find the necessary bits to build these modules:
_bsddb             _hashlib           _ssl           
bsddb185           dbm                dl             
gdbm               imageop            linuxaudiodev   
ossaudiodev        spwd               sunaudiodev     
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
_scproxy                                             

running build_scripts
creating build/scripts-2.6
copying and adjusting /opt/Gentoo/tmp/var/tmp/python-2.6.4/Python-2.6.4/Tools/scripts/pydoc -> build/scripts-2.6
copying and adjusting /opt/Gentoo/tmp/var/tmp/python-2.6.4/Python-2.6.4/Tools/scripts/idle -> build/scripts-2.6
copying and adjusting /opt/Gentoo/tmp/var/tmp/python-2.6.4/Python-2.6.4/Tools/scripts/2to3 -> build/scripts-2.6
copying and adjusting /opt/Gentoo/tmp/var/tmp/python-2.6.4/Python-2.6.4/Lib/smtpd.py -> build/scripts-2.6
changing mode of build/scripts-2.6/pydoc from 644 to 755
changing mode of build/scripts-2.6/idle from 644 to 755
changing mode of build/scripts-2.6/2to3 from 644 to 755
changing mode of build/scripts-2.6/smtpd.py from 644 to 755
make: *** [sharedmods] Error 1


Also, a "which python" still points to my macports python, instead of the $EPREFIX/tmp/usr/bin/* one.

What seems to be the problem and what information can I provide you to help me out debugging this issue?

Thanks in advance.
Back to top
View user's profile Send private message
grobian
Developer
Developer


Joined: 31 May 2006
Posts: 67

PostPosted: Sun Dec 04, 2011 7:58 pm    Post subject: Reply with quote

I think your macports install is actually conflicting with Gentoo Prefix. You need to remove it from your environment before bootstrapping. (You can try env -i HOME=$HOME USER=$USER TERM=$TERM $SHELL for a temporary solution)
_________________
Gentoo on a different level
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