public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-user] ARGH I uninstalled python
@ 2009-05-23 10:51 Jon Hardcastle
  2009-05-23 22:08 ` Jorge Morais
  0 siblings, 1 reply; 52+ messages in thread
From: Jon Hardcastle @ 2009-05-23 10:51 UTC (permalink / raw
  To: gentoo-user


--- On Sat, 23/5/09, Jorge Morais <please.no.spam.here@gmail.com> wrote:

> From: Jorge Morais <please.no.spam.here@gmail.com>
> Subject: Re: [gentoo-user] ARGH I uninstalled python
> To: gentoo-user@lists.gentoo.org
> Date: Saturday, 23 May, 2009, 8:55 AM
> > 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/
> ?
> 
> 

Also that emerge borked ebuild too.

-----------------------
N: Jon Hardcastle
E: Jon@eHardcastle.com
'Do not worry about tomorrow, for tomorrow will bring worries of its own.'

Please sponsor me for the London to Brighton 2009.
Just Giving: http://www.justgiving.com/jonathanhardcastle
-----------------------






^ permalink raw reply	[flat|nested] 52+ messages in thread
* Re: [gentoo-user] ARGH I uninstalled python
@ 2009-05-27  8:32 Jon Hardcastle
  2009-05-27  9:47 ` Neil Bothwick
                   ` (2 more replies)
  0 siblings, 3 replies; 52+ messages in thread
From: Jon Hardcastle @ 2009-05-27  8:32 UTC (permalink / raw
  To: gentoo-user



--- On Mon, 25/5/09, Stroller <stroller@stellar.eclipse.co.uk> wrote:

> From: Stroller <stroller@stellar.eclipse.co.uk>
> Subject: Re: [gentoo-user] ARGH I uninstalled python
> To: gentoo-user@lists.gentoo.org
> Date: Monday, 25 May, 2009, 12:34 AM
> 
> On 24 May 2009, at 21:41, Neil Bothwick wrote:
> 
> > On Sun, 24 May 2009 18:22:05 +0200, Alan McKinnon
> wrote:
> > 
> >>> Not exactly, buildsyspkg does the same as it
> always did, but @system
> >>> has changed. This cold have happened at any
> time as there was never a
> >>> need for python to be in @system,because it's
> a dependency of
> >>> portage.
> >> 
> >> That may well be the way it IS, but it certainly
> is not the way it
> >> SHOULD BE. The only sane way to do this is:
> >> 
> >> if (pkgmgr=portage)
> >>     python in @system
> >> else
> >>     python !in system
> >> end
> > 
> > That's not particularly sane, because it addresses
> only one special case,
> > others may arise. IMO the sane approach, as I said
> some posts
> > ago, is for buildsyspkg to build packages for
> everything in @system and
> > their dependencies. If you can't do "emerge -eK
> @system", buildsyspkg
> > has failed to do anything useful.
> 
> +1
> 
> You have saved me replying to Alan's post.
> 
> One could write a package manager in Perl. As it stands
> Portage would warn you against uninstalling "Perltage", but
> not Perl itself, a hard dependency of that package manager.
> Clearly this should be fixed.
> 
> Stroller.
> 
> 

+ 1

As the guy that started this thread I am testimony to this problem. I now have a tainted (albeit only slightly) system as my main server at home!

This whole problem came about because I wanted to install truecrypt (another powder keg!) needed a new version of udev that needed x, y and z. I then decided it had been all together too long since I did an update world - as i was afraid of borking either udev, lvm, md, mdadm which i rely on. NONE OF WHICH CAUSED A SINGLE PROBLEM. python-updater however was causing a blockage so I uninstalled python hoping to reinstall a clean version and BANG. Several emails later and a few days - here we are.

I'd hope that if anyone else comes a cropper by this then at least this conv will help them! But I was EXPECTING portage to not let me do something that would stop the 'solution' (and that is what it is whether at the portage or the gentoo level) working.

-----------------------
N: Jon Hardcastle
E: Jon@eHardcastle.com
'Do not worry about tomorrow, for tomorrow will bring worries of its own.'

Please sponsor me for the London to Brighton 2009.
Just Giving: http://www.justgiving.com/jonathanhardcastle
-----------------------






^ permalink raw reply	[flat|nested] 52+ messages in thread
* Re: [gentoo-user] ARGH I uninstalled python
@ 2009-05-23 10:50 Jon Hardcastle
  0 siblings, 0 replies; 52+ messages in thread
From: Jon Hardcastle @ 2009-05-23 10:50 UTC (permalink / raw
  To: gentoo-user


--- On Sat, 23/5/09, Jorge Morais <please.no.spam.here@gmail.com> wrote:

> From: Jorge Morais <please.no.spam.here@gmail.com>
> Subject: Re: [gentoo-user] ARGH I uninstalled python
> To: gentoo-user@lists.gentoo.org
> Date: Saturday, 23 May, 2009, 8:55 AM
> > 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/
> ?
> 
> 

As it happens it didn't work after all. The emerge broke it again and i got an error from python.

All of your advise here is fantastic and i urge anyone that follows to do as you suggest - but i didn't fully uninstall either python install and i plan to just leave them minding their own business (hopefully) as i cant be bothered to track all the files down. 

Your final line suggestion to use ebuild worked - although i had to change the path. I am running emerge -va python a and it had the same effect as install from wget and then emerging it. I get

  File "/usr/bin/emerge", line 41
    except PermissionDenied, e:
                           ^
SyntaxError: invalid syntax

Any clues here?

-----------------------
N: Jon Hardcastle
E: Jon@eHardcastle.com
'Do not worry about tomorrow, for tomorrow will bring worries of its own.'

Please sponsor me for the London to Brighton 2009.
Just Giving: http://www.justgiving.com/jonathanhardcastle
-----------------------






^ permalink raw reply	[flat|nested] 52+ messages in thread
* Re: [gentoo-user] ARGH I uninstalled python
@ 2009-05-22 23:36 Jon Hardcastle
  2009-05-23  0:03 ` Dale
  2009-05-23  7:55 ` Jorge Morais
  0 siblings, 2 replies; 52+ messages in thread
From: Jon Hardcastle @ 2009-05-22 23:36 UTC (permalink / raw
  To: gentoo-user


--- On Sat, 23/5/09, Michal Sroka <michal.sroka@gmail.com> wrote:

> From: Michal Sroka <michal.sroka@gmail.com>
> Subject: Re: [gentoo-user] ARGH I uninstalled python
> To: gentoo-user@lists.gentoo.org
> Date: Saturday, 23 May, 2009, 12:13 AM
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Download python package from internet and install it
> manually.
> Afterwards, when emerge get functional re-emerge python.
> 
> ... I used this way, when it happened to me ...
> 
> Michal
> 
> Jon Hardcastle wrote:
> > I was trying to do a emerge --update ask world and it
> kept failing on updating python-updater and it was tripping
> over the python install.... soooooo i did the 'sensible'
> thing and unemerged python. NOW I REALISE THAT PYTHON IS
> INTEGRAL TO emerge.
> > 
> > Can i fix this????
> > 
> > Also, perhaps some more warnings?!? the warning
> message was the standard one.. which i ignored thinking i
> could just reinstall it immediately.
> > 
> > No joy!
> > 
> > 
> > -----------------------
> > N: Jon Hardcastle
> > E: Jon@eHardcastle.com
> > 'Do not worry about tomorrow, for tomorrow will bring
> worries of its own.'
> > 
> > Please sponsor me for the London to Brighton 2009.
> > Just Giving: http://www.justgiving.com/jonathanhardcastle
> > -----------------------
> > 
> > 
> >       
> > 
> > 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkoXMXwACgkQUwc9usbfIiWDVgCfZHvyfED084UHMLzIZuGWTwHG
> 3NQAnR4XBO2yhXhpzRC4Qo7ZJdjQfUf0
> =Y+KO
> -----END PGP SIGNATURE-----
> 
> 

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!


-----------------------
N: Jon Hardcastle
E: Jon@eHardcastle.com
'Do not worry about tomorrow, for tomorrow will bring worries of its own.'

Please sponsor me for the London to Brighton 2009.
Just Giving: http://www.justgiving.com/jonathanhardcastle
-----------------------






^ permalink raw reply	[flat|nested] 52+ messages in thread
* [gentoo-user] ARGH I uninstalled python
@ 2009-05-22 23:05 Jon Hardcastle
  2009-05-22 23:13 ` Michal Sroka
  2009-05-22 23:19 ` Dale
  0 siblings, 2 replies; 52+ messages in thread
From: Jon Hardcastle @ 2009-05-22 23:05 UTC (permalink / raw
  To: gentoo-user


I was trying to do a emerge --update ask world and it kept failing on updating python-updater and it was tripping over the python install.... soooooo i did the 'sensible' thing and unemerged python. NOW I REALISE THAT PYTHON IS INTEGRAL TO emerge.

Can i fix this????

Also, perhaps some more warnings?!? the warning message was the standard one.. which i ignored thinking i could just reinstall it immediately.

No joy!


-----------------------
N: Jon Hardcastle
E: Jon@eHardcastle.com
'Do not worry about tomorrow, for tomorrow will bring worries of its own.'

Please sponsor me for the London to Brighton 2009.
Just Giving: http://www.justgiving.com/jonathanhardcastle
-----------------------






^ permalink raw reply	[flat|nested] 52+ messages in thread

end of thread, other threads:[~2009-05-28  9:38 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-23 10:51 [gentoo-user] ARGH I uninstalled python 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
  -- 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:50 Jon Hardcastle
2009-05-22 23:36 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
2009-05-23 10:34   ` Jorge Morais
2009-05-22 23:05 Jon Hardcastle
2009-05-22 23:13 ` Michal Sroka
2009-05-22 23:19 ` Dale

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox