public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jorge Morais <please.no.spam.here@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] ARGH I uninstalled python
Date: Sat, 23 May 2009 04:55:04 -0300	[thread overview]
Message-ID: <20090523045504.225366b5@gmail.com> (raw)
In-Reply-To: <983967.82330.qm@web51306.mail.re2.yahoo.com>

> Thank you! Thank you! Thank you!
> 
> I followed this
> 
> http://blogs.pwmn.net/korkakak/2008/06/04/gentoo-i-unmerged-python-now-what
> 
> which worked - in the end. couple of caveats tho for anyone 'that follows' get python from their site as the ftp link in this article is out of date.
> 
> http://www.python.org/download/releases/
> 
> also I initially tried 3.01 and that didn't work so i installed 2.6.2 which worked 'out of the box' i then tested with 'emerge' and am now running 'emerge -va python' 
> 
> Cheers guys!
> 
> Thanks to Dale too!

Glad it worked.
But, I don't know what will happen when the properly emerged python
overwrites the manually installed Python.

Does anybody know if the manual python install is "slotted", in the sense
that it installs files in /usr/lib/python2.6, /usr/include/python2.6, etc?
If it isn't, and Portage installs a slotted Python, the old files wouldn't
be overwritten.
And even if it is, the differences between the differently-configured and
super-patched new python and the vanilla old python could result in
a different set of file names, so it is possible that the old python
will not be totally overwritten by the portage-emerged python.

If I were you, I would at the very least read the log (specially its tail)
of the python emerge (emerge logs normally go to /var/log/emerge).
And you did log the files installed by the manual python install,
didn't you?

And why did you try python 3.01 first? You should try a similar vesion to
what you were previously running. And specifically python 3.01 is crazy,
as it is widely known that it is *not* compatible with python 2.x software.
And did you properly uninstall python 3.0.1?

Also, I didn't like the instructions in this blog very much.
Wouldn't it be more appropriate to configure python like
portage would?
For example, in my system, where the last python install was
dev-lang/python-2.5.4-r2  USE="ncurses readline ssl threads xml -berkdb -build -doc -examples -gdbm -ipv6 -sqlite -tk -ucs2 -wininst"

the configure line was (from the log)
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-fpectl --enable-shared --disable-ipv6 --infodir=${prefix}/share/info --mandir=${prefix}/share/man --with-libc= --enable-unicode=ucs4 --with-threads --build=i686-pc-linux-gnu

Maybe it would  be nice to install python to  /usr/local (I'm not sure),
but if you are going to install it in /usr (like portage), I think you
might as well use the same configure line portage would.
And if you wanted to be really clean, you could apply the patches that
portage applies.

And most importantly,
*was this necessary*?
Couldn't he have emerged python by invoking
ebuild /usr/port/usr/portage/dev-lang/python/python-2.6.2.ebuild merge
?
This would do everyting correctly.
And wouldn't it work without Python, since it is written in Bash?
AFAIK, what needs Python is the high level interface to the portage
system, while the low-level interface only needs Bash (but I'm
totally not sure).

And finally, couldn't he have gotten a binary package from
http://tinderbox.dev.gentoo.org/default-linux/x86/dev-lang/
?



  parent reply	other threads:[~2009-05-23  7:51 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-22 23:36 [gentoo-user] ARGH I uninstalled python Jon Hardcastle
2009-05-23  0:03 ` Dale
2009-05-23  1:33   ` Arttu V.
2009-05-23 11:11     ` Dale
2009-05-23 11:52       ` Arttu V.
2009-05-23 11:59         ` Dale
2009-05-23 20:02           ` Neil Bothwick
2009-05-23 21:08             ` Dale
2009-05-24  9:07             ` Alan McKinnon
2009-05-24  9:28               ` Neil Bothwick
2009-05-24 10:06                 ` Alan McKinnon
2009-05-24 12:17                   ` Dale
2009-05-24 14:26                     ` Neil Bothwick
2009-05-24 15:33                       ` Dale
2009-05-24 16:22                       ` Alan McKinnon
2009-05-24 17:26                         ` Dale
2009-05-24 17:54                           ` Alan McKinnon
2009-05-24 18:06                             ` Arttu V.
2009-05-24 18:54                               ` Alan McKinnon
2009-05-24 19:32                                 ` Volker Armin Hemmann
2009-05-24 20:51                                 ` Neil Bothwick
2009-05-24 22:56                                 ` Arttu V.
2009-05-24 18:11                             ` Dale
2009-05-24 18:56                               ` Alan McKinnon
2009-05-24 19:15                                 ` Dale
2009-05-24 20:41                         ` Neil Bothwick
2009-05-24 21:09                           ` Dale
2009-05-24 23:34                           ` Stroller
2009-05-23 12:33         ` Alan McKinnon
2009-05-23 13:16           ` Dale
2009-05-23  7:55 ` Jorge Morais [this message]
2009-05-23 10:34   ` Jorge Morais
  -- strict thread matches above, loose matches on Subject: below --
2009-05-27  8:32 Jon Hardcastle
2009-05-27  9:47 ` Neil Bothwick
2009-05-27 12:29 ` Jorge Morais
2009-05-27 12:55 ` Stroller
2009-05-23 10:51 Jon Hardcastle
2009-05-23 22:08 ` Jorge Morais
2009-05-24  8:52   ` Keith Dart
2009-05-24 10:09     ` Jorge Morais
2009-05-24 12:31       ` Keith Dart
2009-05-24  9:08   ` Alan McKinnon
2009-05-24 13:07     ` Jorge Morais
2009-05-27 12:49   ` Jorge Morais
2009-05-27 20:28     ` Wyatt Epp
2009-05-27 21:06       ` Jorge Morais
2009-05-27 21:55       ` Neil Bothwick
2009-05-28  9:37         ` Wyatt Epp
2009-05-23 10:50 Jon Hardcastle
2009-05-22 23:05 Jon Hardcastle
2009-05-22 23:13 ` Michal Sroka
2009-05-22 23:19 ` Dale

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090523045504.225366b5@gmail.com \
    --to=please.no.spam.here@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox