On Thu, 20 Jan 2005 14:25:55 +0000, Axel Schmalowsky <[EMAIL PROTECTED]> wrote: > J�rgen Schinker wrote: > > You can download python from http://www.python.org Unzip it, run > ./configure with the parameters portage is using (you'll find this in file > /usr/bin/ebuild.sh in function econf) and then run make. The parameters > portags is using for make install can you find as well in file > /usr/bin/einstall in function einstall. After that, your python should be > complete thus you should be able to emerge normally. what parameters should > i use? econf() { if [ -z "${ECONF_SOURCE}" ]; then ECONF_SOURCE="." fi if [ > -x "${ECONF_SOURCE}/configure" ]; then if hasq autoconfig $FEATURES && ! > hasq autoconfig $RESTRICT; then if [ -e /usr/share/gnuconfig/ -a -x > /bin/basename ]; then local x for x in $(find ${S} -type f -name > config.guess -o -name config.sub) ; do einfo "econf: updating $x with > /usr/share/gnuconfig/$(/bin/basename ${x})" cp > /usr/share/gnuconfig/$(/bin/basename ${x}) ${x} done fi fi if [ ! -z > "${CBUILD}" ]; then EXTRA_ECONF="--build=${CBUILD} ${EXTRA_ECONF}" fi if [ ! > -z "${CTARGET}" ]; then EXTRA_ECONF="--target=${CTARGET} ${EXTRA_ECONF}" fi > # if the profile defines a location to install libs to aside from default, > pass it on. # if the ebuild passes in --libdir, they're responsible for the > conf_libdir fun. if [ ! -z "${CONF_LIBDIR}" ] && [ "${*/--libdir}" == "$*" > ]; then if [ "${*/--prefix}" == "$*" ]; then CONF_PREFIX="/usr" else local > args="$(echo $*)" local -a pref=($(echo ${args/*--prefix[= ]})) > CONF_PREFIX=${pref} fi export CONF_PREFIX > EXTRA_ECONF="--libdir=/${CONF_PREFIX}/${CONF_LIBDIR} ${EXTRA_ECONF}" fi echo > "${ECONF_SOURCE}/configure" \ --prefix=/usr \ --host=${CHOST} \ > --mandir=/usr/share/man \ --infodir=/usr/share/info \ --datadir=/usr/share \ > --sysconfdir=/etc \ --localstatedir=/var/lib \ ${EXTRA_ECONF} \ "$@" The > parameters above are the one portage is using. > Additionally, you can choose optional parameters which you'll get by > running ./configure --help > > > "${ECONF_SOURCE}/configure" \ --prefix=/usr \ --host=${CHOST} \ > --mandir=/usr/share/man \ --infodir=/usr/share/info \ -- > [email protected] mailing list >
As I mentioned earlier, gentoo already has recovery procedures builtin (README.RESCUE), so you don't need to download and built python from external sources. If you want to do it the hard way, fine and dandy, but it's not necessary. -- Collins -- [email protected] mailing list
