Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179019 - Alacarte-0.10.2 cannot use pygtk-2.10 but ebuild uses => pygtk-2.4
Summary: Alacarte-0.10.2 cannot use pygtk-2.10 but ebuild uses => pygtk-2.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-18 16:06 UTC by Thomas Harning
Modified: 2007-06-13 16:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Config.log for alacarte (config.log,25.17 KB, text/plain)
2007-05-19 23:41 UTC, Thomas Harning
Details
Patch that hopefully solves python2.5 and pygtk problem in configure part (alacarte-0.11.3-python2.5-and-pygtk.patch,331 bytes, patch)
2007-06-07 20:46 UTC, Mateusz Biliński
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Harning 2007-05-18 16:06:06 UTC
The alacarte-0.10.2 ebuild fails to emerge on a system w/ pygtk-2.10:
  checking for pygtk 2.8.0 installed for python 2.4... not found
  configure: error: required pygtk version not found



Reproducible: Always



Expected Results:  
The ebuild should be updated to:
 * Include req for <=pygtk-2.8
 * Patched to allow pygtk >= 2.8
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-05-19 20:23:08 UTC
Works fine here.  Can you post the config.log that portage asked you to post when it failed?
Comment 2 Thomas Harning 2007-05-19 23:41:30 UTC
Created attachment 119755 [details]
Config.log for alacarte
Comment 3 Thomas Harning 2007-05-19 23:46:36 UTC
Looking at the system more, it looks like it used python 2.4 rather than the installed 2.5.

Any reasons why alacarte cannot use python 2.5?  Would it be preferable to unmerge python 2.4?
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-05-19 23:55:12 UTC
You probably need to run pthon-updater.
Comment 5 delimy 2007-05-24 06:50:50 UTC
(In reply to comment #4)
> You probably need to run pthon-updater.
> 

python-updater failed to re-emerge alacarte.

I do have pygtk-2.10 installed under python 2.5.

In fact, pyhton-updater succeeded for all but alacarte.
Unmasking new version of alacarte didn't help.
Comment 6 David D. Huff Jr. 2007-06-03 20:53:36 UTC
I just emerged python and python-updater "Can't determine any previous Python version(s).
thankfully you can still mask alacarte since equery says there are no dependencies

package.mask 
>x11-misc/alacarte-0.10.1-r1 

works just fine
Comment 7 David D. Huff Jr. 2007-06-03 21:01:40 UTC
Sorry nope, that isn't going to work the current version alacarte-0.10.2 requires python-2.8
Maybe the requirement for gnome should be changed since it doesn't seem to affect it?
Comment 8 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-06-04 17:36:14 UTC
No, actually, it doesn't.  I just built alacarte-0.10.2 against pygtk-2.10.4 perfectly fine.  It's a problem with your python 2.5, most likely.  I don't know why python-updater failed.  It was substantially chaged recently, maybe they've fixed the bug?  At any rate, try re-emerging alacarte after you've re-emerged pygtk.
Comment 9 David D. Huff Jr. 2007-06-04 19:08:27 UTC
Same problem after emerging pygtk again:
checking pkg-config is at least version 0.9.0... yes
checking for ALACARTE... yes
checking for pygtk 2.8.0 installed for python 2.4... not found
configure: error: required pygtk version not found

Even though:
> emerge -pv pygtk

These are the packages that would be merged, in order:

Calculating dependencies  ..... ..... ..... ..... done!
[ebuild   R   ] dev-python/pygtk-2.10.4  USE="opengl -doc -examples" 0 kB 
Comment 10 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-06-04 19:28:53 UTC
Are you, in fact, using python 2.5?  If so, do you still have python 2.4 slotted?  Alacarte checks for python as 2.4, 2.4.0, 2.5, then 2.5.0.  So, if you have 2.4 (which it seems you do), it will look for pygtk in python 2.4, and *not* in 2.5.

I only have 2.4, as this is the only stable version.
Comment 11 Gonzalez Damien 2007-06-05 01:03:22 UTC
I have the same problem even after running python-updater.
slotted python :
        python-2.4.4-r4
        python-2.5-r1
and pygtk-2.10.4

----------------------------------------------------------

checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ALACARTE... yes
checking for pygtk 2.8.0 installed for python 2.4... not found
configure: error: required pygtk version not found

Comment 12 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-06-05 01:32:32 UTC
This is because python-updater works the opposite of alacarte: it makes all the installed python libs use python 2.5, while alacarte trys 2.4 and fails.  You would have to uninstall python 2.4 before alacarte would work.  If I get a chance, I'll work on a solution, but I don't have any python 2.5 boxes at the moment, so it may take time.
Comment 13 Gonzalez Damien 2007-06-06 15:13:41 UTC
Unmerging python-2.4 worked fine. Thanks 
Comment 14 Mateusz Biliński 2007-06-07 20:46:58 UTC
Created attachment 121450 [details, diff]
Patch that hopefully solves python2.5 and pygtk problem in configure part

(In reply to comment #12)
> This is because python-updater works the opposite of alacarte: it makes all the
> installed python libs use python 2.5, while alacarte trys 2.4 and fails.  You
> would have to uninstall python 2.4 before alacarte would work.  If I get a
> chance, I'll work on a solution, but I don't have any python 2.5 boxes at the
> moment, so it may take time.

Reversing the order of checking Python versions in Alacarte configure.ac file works (done this in 'work' directory). Instead:
AM_PATH_PYTHON_VERSION(2.4, 2.4.0, 2.5, 2.5.0)
do:
AM_PATH_PYTHON_VERSION(2.5, 2.5.0, 2.4, 2.4.0)

For python2.4 users nothing would change as configure will this version finally (hope so - haven't tested).
Comment 15 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-06-07 21:44:06 UTC
I was planning on generating a patch like that.  Have you tested it with both 2.5 and 2.4 on your system?  I'll test with just 2.4 before I commit.
Comment 16 Mateusz Biliński 2007-06-08 06:54:45 UTC
(In reply to comment #15)
> I was planning on generating a patch like that.  Have you tested it with both
> 2.5 and 2.4 on your system?  I'll test with just 2.4 before I commit.

Only 2.5.
Comment 17 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-06-08 20:04:48 UTC
Hmm... That's no good, then, because it would have worked without the patch.  I need someone to test it with both installed, to make sure it works.
Comment 18 Shaun Lippy 2007-06-09 20:19:54 UTC
I am also seeing this problem.  

Notes on my configuration:  

Processor: PPC
Python:    2.4.4
pygtk:     2.10.4

I can attach my config.log if anyone thinks it would help.
Comment 19 ajmind 2007-06-09 22:12:42 UTC
I could confirm the same problem here too.

checking for pygtk 2.8.0 installed for python 2.4... not found
configure: error: required pygtk version not found


My system:
Python:    2.4.4
pygtk:     2.10.4

I can attach my config.log if anyone thinks it would help.

This bug prevets the update of my update to gnome 2.16.13 from 2.16.12.
Comment 20 Mateusz Biliński 2007-06-10 07:06:19 UTC
(In reply to comment #17)
> Hmm... That's no good, then, because it would have worked without the patch.  I
> need someone to test it with both installed, to make sure it works.

Sorry I misunderstood you. I hava both 2.4 and 2.5 installed. But 2.4 is almost useless as portage installs every package to currently used version od python 'site-packages' dir. So the patch works with both installed when 2.5 is the main version. I can't check whether it works when both are installed and 2.4 is used. 

Maybe someone before running python-update script could.

Summarizing: it works for me. Both installed. Version 2.5 used.
Comment 21 Shunichi Fuji 2007-06-10 16:51:28 UTC
this problem occured at installed both python-2.4 and 2.5.
according to gnome bugzilla, export path to python bin to resolve this. 

i add 3 lines to ebuild.
># Bug 418871 – Does not compiles with python 2.5
># http://bugzilla.gnome.org/show_bug.cgi?id=418871
>export PYTHON="`type -p python`"

http://palgene-overlay.googlecode.com/svn/new_ebuild/x11-misc/alacarte/
Comment 22 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-06-11 17:25:33 UTC
comment #20:
No, you have the setup I wanted.  I just wanted to make sure that the patch actually worked, and tried 2.5 before 2.4.

comment #18 and comment#19

Do you only have python 2.4 installed?  If so, post your config.log; if not, you have to use the patch above.
Comment 23 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-06-11 17:42:44 UTC
Okay, I've added 0.11.3-r1 with the patch.  If you're unmasking python 2.5, you're going to have to live with ~arch alacarte for a bit, I think.

Other reporters: If you didn't have python 2.5 installed, please open another bug (because it's a different problem).  Make sure to run python-updater no matter what.
Comment 24 Mateusz Biliński 2007-06-13 08:09:47 UTC
(In reply to comment #23)
> Okay, I've added 0.11.3-r1 with the patch.  If you're unmasking python 2.5,
> you're going to have to live with ~arch alacarte for a bit, I think.

Something's wrong. When doing 'emerge alacarte' I get:
[...]
 * Applying alacarte-0.11.3-python-2.5.patch ...                                                                                                                [ ok ]
/usr/portage/x11-misc/alacarte/alacarte-0.11.3-r1.ebuild: line 37: eautoreconf: command not found
[...]
And the emerging stops at the same point as before. 

When manually made automake, autoconf, aclocal in 'work' directory configure passed successfully. Maybe wrong command name in ebuild (seems so) - don't know. Haven't done any ebuild stuff yet.
Comment 25 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-06-13 16:42:26 UTC
Oops.  I've fixed it again.  I'm marking this fixed now; if people still have problems with both installed, we can re-open it.