Main Page | Report this Page
 
   
Linux Forum Index  »  Linux - Gentoo Forum  »  Gentoolkit equery has screwed up following emerge...
Page 1 of 1    
Author Message
Mark Hobley...
Posted: Tue Aug 05, 2008 2:15 pm
Guest
I tried to update my gentoo system using emerge world, as follows:

emerge -uDN world

The update abort as follows:

* Messages for package www-client/seamonkey-1.1.11:

* Pango is not built with X useflag.
* Please add 'X' to your USE flags, and re-emerge pango.
*
* ERROR: www-client/seamonkey-1.1.11 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* seamonkey-1.1.11.ebuild, line 53: Called die
* The specific snippet of code:
* die "Pango needs X"
* The die message:
* Pango needs X

Hmmm, as far as I know, my seamonkey browser should have the moznopango
flag set. I decided to look at the flags for the package, so I typed:

equery uses seamonkey

This gave an error:

Traceback (most recent call last):
File "/usr/bin/equery", line 27, in <module>
import gentoolkit
File "/usr/lib/gentoolkit/pym/gentoolkit/__init__.py", line 27, in
<module>
from threading import Lock
File "/usr/lib/python2.5/threading.py", line 6, in <module>
import thread
ImportError: No module named thread

Hmmm, maybe the gentoolkit has not been rebuilt yet. I decided to try
and build it:

emerge gentoolkit

Ok, that looked like it built ok. I try using it:

equery uses seamonkey

Nahhh, its still knackered:

Traceback (most recent call last):
File "/usr/bin/equery", line 27, in <module>
import gentoolkit
File "/usr/lib/gentoolkit/pym/gentoolkit/__init__.py", line 27, in
<module>
from threading import Lock
File "/usr/lib/python2.5/threading.py", line 6, in <module>
import thread
ImportError: No module named thread

What is going on?

Presumably, I need to hold the seamonkey package, whilst I emerge world,
and then look again at the problem.

How do I hold the package? (Or do I just uninstall it, and then
reinstall it following emerge world?)

Please advise.

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Arthur Hagen...
Posted: Tue Aug 05, 2008 4:19 pm
Guest
Mark Hobley <markhobley at (no spam) hotpop.donottypethisbit.com> wrote:
[Lots of errors]

Quote:
What is going on?

Python 2.5 was installed, but you still have plenty of packages using 2.4,
and an uholy mix of the two.

You need to run "python-updater". After that, remove the old python
installation ("emerge --prune python"), and then run revdep-rebuild.

Quote:
Presumably, I need to hold the seamonkey package, whilst I emerge
world, and then look again at the problem.

How do I hold the package? (Or do I just uninstall it, and then
reinstall it following emerge world?)

Please advise.

There's no facility for "holding" a package. If a package fails, and it's
expected, you can continue your emerge with "emerge --resume --skipfirst".
That will allow the rest of the packages to be built.

However, in your case, I don't think there's any reason to rebuild world.

Regards,
--
*Art
Mark Hobley...
Posted: Wed Aug 06, 2008 2:14 am
Guest
In alt.os.linux.gentoo Arthur Hagen <art at (no spam) broomstick.com> wrote:

Quote:
You need to run "python-updater". After that, remove the old python
installation ("emerge --prune python"), and then run revdep-rebuild.

I have now ran the above. I then ran emerge gentoolkit

However, when I type:

equery uses seamonkey

I still get an error as follows:

Traceback (most recent call last):
File "/usr/bin/equery", line 27, in <module>
import gentoolkit
File "/usr/lib/gentoolkit/pym/gentoolkit/__init__.py", line 27, in
<module>
from threading import Lock
File "/usr/lib/python2.5/threading.py", line 6, in <module>
import thread
ImportError: No module named thread

There is still something wrong with the equery tool.

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Arthur Hagen...
Posted: Wed Aug 06, 2008 3:48 am
Guest
Mark Hobley <markhobley at (no spam) hotpop.donottypethisbit.com> wrote:
Quote:
In alt.os.linux.gentoo Arthur Hagen <art at (no spam) broomstick.com> wrote:

You need to run "python-updater". After that, remove the old python
installation ("emerge --prune python"), and then run revdep-rebuild.

I have now ran the above. I then ran emerge gentoolkit

However, when I type:

equery uses seamonkey

I still get an error as follows:

Traceback (most recent call last):
File "/usr/bin/equery", line 27, in <module
import gentoolkit
File "/usr/lib/gentoolkit/pym/gentoolkit/__init__.py", line 27, in
module
from threading import Lock
File "/usr/lib/python2.5/threading.py", line 6, in <module
import thread
ImportError: No module named thread

There is still something wrong with the equery tool.

Nah, the equery tool hasn't changed since 2007. It's more likely python 2.5
that acts slightly differently from 2.4.

Try to add the "threads" use flag and rebuild python.

mkdir -p /etc/portage
touch /etc/portage/package.use
echo "dev-lang/python threads" >>/etc/portage/package.use
emerge --oneshot python

Regards,
--
*Art
J.O. Aho...
Posted: Wed Aug 06, 2008 4:10 am
Guest
Arthur Hagen wrote:

Quote:
Nah, the equery tool hasn't changed since 2007. It's more likely python
2.5 that acts slightly differently from 2.4.

Yes, the two are different and I had kind of the same trouble as the OP, but I
don't use threads, but I did have to uninstall the 2.4, keeping it will cause
troubles.


Quote:
Try to add the "threads" use flag and rebuild python.

mkdir -p /etc/portage

touch /etc/portage/package.use
This line is not needed, the file will be created if missing with the next line.


Quote:
echo "dev-lang/python threads" >>/etc/portage/package.use
emerge --oneshot python

Regards,


--

//Aho
Raphael Mankin...
Posted: Wed Aug 06, 2008 9:39 am
Guest
I have also been bitten by this one. There appears to be an error in the
ebuilds arising from an incompatibility between certain versions of
gentoolkit and certain versions of python. The dependencies in the
ebuild need to be sorted out.




On Tue, 2008-08-05 at 20:15 +0100, Mark Hobley wrote:
Quote:
I tried to update my gentoo system using emerge world, as follows:

emerge -uDN world

The update abort as follows:

* Messages for package www-client/seamonkey-1.1.11:

* Pango is not built with X useflag.
* Please add 'X' to your USE flags, and re-emerge pango.
*
* ERROR: www-client/seamonkey-1.1.11 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* seamonkey-1.1.11.ebuild, line 53: Called die
* The specific snippet of code:
* die "Pango needs X"
* The die message:
* Pango needs X

Hmmm, as far as I know, my seamonkey browser should have the moznopango
flag set. I decided to look at the flags for the package, so I typed:

equery uses seamonkey

This gave an error:

Traceback (most recent call last):
File "/usr/bin/equery", line 27, in <module
import gentoolkit
File "/usr/lib/gentoolkit/pym/gentoolkit/__init__.py", line 27, in
module
from threading import Lock
File "/usr/lib/python2.5/threading.py", line 6, in <module
import thread
ImportError: No module named thread

Hmmm, maybe the gentoolkit has not been rebuilt yet. I decided to try
and build it:

emerge gentoolkit

Ok, that looked like it built ok. I try using it:

equery uses seamonkey

Nahhh, its still knackered:

Traceback (most recent call last):
File "/usr/bin/equery", line 27, in <module
import gentoolkit
File "/usr/lib/gentoolkit/pym/gentoolkit/__init__.py", line 27, in
module
from threading import Lock
File "/usr/lib/python2.5/threading.py", line 6, in <module
import thread
ImportError: No module named thread

What is going on?

Presumably, I need to hold the seamonkey package, whilst I emerge world,
and then look again at the problem.

How do I hold the package? (Or do I just uninstall it, and then
reinstall it following emerge world?)

Please advise.

Mark.
Arthur Hagen...
Posted: Wed Aug 06, 2008 12:27 pm
Guest
J.O. Aho <user at (no spam) example.net> wrote:
Quote:
Arthur Hagen wrote:

touch /etc/portage/package.use
This line is not needed, the file will be created if missing with the
next line.

That's an incorrect assumption. It depends on the user environment.

# echo "foo" >>bar
bar: No such file or directory.

Now I leave you to figure out what would cause the above behavior instead of
the one you're used to. :-)

Regards,
--
*Art
Mark Hobley...
Posted: Sat Aug 09, 2008 8:30 am
Guest
In alt.os.linux.gentoo Arthur Hagen <art at (no spam) broomstick.com> wrote:
Quote:

That's an incorrect assumption. It depends on the user environment.

# echo "foo" >>bar
bar: No such file or directory.

Now I leave you to figure out what would cause the above behavior instead of
the one you're used to. Smile

Hmmm, that is interesting. The append operator creates a file here.

I tried to replicate your error by remove write permission to the holding
directory, but the message that I got was:

echo "foo" >>bar
sh: cannot create bar: Permission denied

What architecture is your computer? What type of device is the working
directory?

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Mark Hobley...
Posted: Sat Aug 09, 2008 1:00 pm
Guest
In alt.os.linux.gentoo J.O. Aho <user at (no spam) example.net> wrote:

Quote:
Yes, the two are different and I had kind of the same trouble as the OP, but I
don't use threads, but I did have to uninstall the 2.4, keeping it will cause
troubles.

Damn! I just removed python as follows:

emerge --unmerge python

Now when I try to reinstall it, I get an error as follows:

emerge python
bash: /usr/bin/emerge: /usr/bin/python: bad interpreter: No such file or
directory

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Arthur Hagen...
Posted: Sat Aug 09, 2008 1:21 pm
Guest
Mark Hobley <markhobley at (no spam) hotpop.donottypethisbit.com> wrote:
Quote:
In alt.os.linux.gentoo Arthur Hagen <art at (no spam) broomstick.com> wrote:

That's an incorrect assumption. It depends on the user environment.

# echo "foo" >>bar
bar: No such file or directory.

Now I leave you to figure out what would cause the above behavior
instead of the one you're used to. :-)

Hmmm, that is interesting. The append operator creates a file here.

I tried to replicate your error by remove write permission to the
holding directory, but the message that I got was:

echo "foo" >>bar
sh: cannot create bar: Permission denied

What architecture is your computer?

i586 and MIPS, not that it matters.

Quote:
What type of device is the working directory?

A "you're-barking-up-the-wrong-tree" device. :-)

If you give up, here's the answer to why leaving out the touch before >> to
a file is making in incorrect assumption:

s
p
o
i
l
e
r

s
p
a
c
e

Not everyone uses bash as a command line shell. Many use /bin/sh as a
programming shell for compatibility, but tcsh as a command line shell for
interactive friendliness. With "noclobber" set, redirecting to an existing
file and appending to a non-existing file will both give an error. This is
useful for catching typos.
Bash also has a noclobber option variable, but it only checks for
redirection to an existing file.

If noclobber is set ("setenv noclobber" or "set -o noclobber"):
"echo foo >bar" where ">" should have been ">>" is caught by both bash and
tcsh
"echo foo >>bar" where ">>" should have been ">" is caught by tcsh
"echo foo >>bar" where "bar" should have been "baz" is caught by tcsh

This is one of the reasons why tcsh is still popular for interactive use,
despite not being a good choice for scripting. And why it's recommended to
add a "touch xxx" line before an append if it's ok to create the file. It
never hurts.

Regards,
--
*Art
Bill Marcum...
Posted: Sat Aug 09, 2008 1:48 pm
Guest
["Followup-To:" header set to comp.os.linux.misc.]
On 2008-08-06, Arthur Hagen <art at (no spam) broomstick.com> wrote:
Quote:



That's an incorrect assumption. It depends on the user environment.

# echo "foo" >>bar
bar: No such file or directory.

Now I leave you to figure out what would cause the above behavior instead of
the one you're used to. :-)

You cd into a directory and then that directory is deleted?
J.O. Aho...
Posted: Sat Aug 09, 2008 2:19 pm
Guest
Mark Hobley wrote:
Quote:
In alt.os.linux.gentoo J.O. Aho <user at (no spam) example.net> wrote:

Yes, the two are different and I had kind of the same trouble as the OP, but I
don't use threads, but I did have to uninstall the 2.4, keeping it will cause
troubles.

Damn! I just removed python as follows:

emerge --unmerge python

Thats bad, as most gentoo scripts are depending on python, it's supposed
to be easy to develop for, but not that good when using it... had been a
lot nicer with statically compiled binaries.


Quote:
Now when I try to reinstall it, I get an error as follows:
emerge python
bash: /usr/bin/emerge: /usr/bin/python: bad interpreter: No such file
or directory

If you don't have a python binary tarball, you have to resource to an
install CD and copy the python files from there, then reinstall python.



--

//Aho
 
Page 1 of 1       All times are GMT - 5 Hours
The time now is Sat Nov 22, 2008 5:45 am