Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 199725
Alias:
Product:
Component:
Status: NEW
Resolution:
Assigned To: Gentoo Linux Gnome Desktop Team <gnome@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ryan Hill <dirtyepic@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 199725 depends on: Show dependency tree
Bug 199725 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.








View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-11-20 03:06 0000
the pygobject testsuite fails if pygtk isn't installed:

make[2]: Entering directory
`/var/tmp/portage/dev-python/pygobject-2.14.0/work/pygobject-2.14.0/tests'
Traceback (most recent call last):
  File "./runtests.py", line 42, in <module>
    suite.addTest(loader.loadTestsFromName(name))
  File "/usr/lib64/python2.5/unittest.py", line 533, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "../tests/test_subtype.py", line 9, in <module>
    import gtk
ImportError: No module named gtk
make[2]: *** [check-local] Error 1


unfortunately pygtk RDEPENDs on pygobject, creating a circular dependency. 
because of this, it might be best to add RESTRICT=test to the pygobject ebuild.

------- Comment #1 From Daniel Gryniewicz 2007-11-20 19:24:40 0000 -------
Hmm... That's a very very hard one.

Gnome team: maybe patch out any tests needing pygtk?  Or block tests all
together?  In general, a new system should probably not be installed with
FEATURES=test, but that's not a real solution.

------- Comment #2 From Dustin Polke 2008-01-03 10:44:38 0000 -------
I had this issue while upgrading to python-2.5 and running
/usr/sbin/python-updater. pygobject bailed out with same error. Solved this by
manually running:

# FEATURES="-test" emerge -1 pygobject && emerge -1 pygtk && emerge -1
pygobject

What about making pygobject DEPEND="test? ( dev-python/pygtk )"? This would
introduce a circular dependency, which needs to be resolved the way described
above.

BR,
Dustin

------- Comment #3 From Rémi Cardona 2008-06-20 11:35:34 0000 -------
*** Bug 228497 has been marked as a duplicate of this bug. ***

------- Comment #4 From Gilles Dartiguelongue 2008-07-10 14:26:04 0000 -------
*** Bug 231412 has been marked as a duplicate of this bug. ***

------- Comment #5 From Gilles Dartiguelongue 2008-07-10 14:28:08 0000 -------
*** Bug 217349 has been marked as a duplicate of this bug. ***

------- Comment #6 From Ryan Hill 2008-07-11 02:21:48 0000 -------
If no one wants to fix this, I'll be adding RESTRICT=test to pygobject.

------- Comment #7 From Benno Schulenberg 2008-07-25 10:47:40 0000 -------
Why not add the DEPEND mentioned in comment #2?  Plus a message on how to
resolve the circular dependency.

------- Comment #8 From Ryan Hill 2008-07-25 13:18:27 0000 -------
Because a circular dependency happens when the package manager is building a
dependency graph, before the list of packages to build is displayed, and before
any particular package can display a message.

------- Comment #9 From Jeroen Roovers 2008-07-30 16:28:43 0000 -------
*** Bug 233362 has been marked as a duplicate of this bug. ***

------- Comment #10 From Rémi Cardona 2008-08-25 22:14:43 0000 -------
For the record, the latest versions pygtk and pygobject should be fixed as the
codegen tool needed for the tests has been moved to pygobject. So basically,
the circular dep is gone.

Hopefully, we should get those versions into portage along with Gnome 2.24.

Keeping this bug open until it's in portage.

Thanks

------- Comment #11 From Jeremy Olexa (darkside) 2008-11-08 02:01:46 0000 -------
I was sick of this test suite failing in my chroot for arch testing so I added
RESTRICT="test" to pygobject-2.14.2 as a simple workaround. Hope no one screams
too loudly ;)

------- Comment #12 From Hans de Graaff 2008-11-18 19:51:48 0000 -------
(In reply to comment #10)
> For the record, the latest versions pygtk and pygobject should be fixed as the
> codegen tool needed for the tests has been moved to pygobject. So basically,
> the circular dep is gone.
> 

I'm not sure what version "the latest" is, but I still see this with pygobject
2.15.4. Is this fixed with a newer version, or should it have been fixed in
this version?

------- Comment #13 From Gilles Dartiguelongue 2009-08-09 11:01:47 0000 -------
this stuff should be fixed since pygtk-2.14/pygobject-2.15, closing since there
are stable revisions of there or a later release on most arches.

------- Comment #14 From Raúl Porcel 2009-08-27 17:12:15 0000 -------
*** Bug 282930 has been marked as a duplicate of this bug. ***

------- Comment #15 From Raúl Porcel 2009-08-27 17:12:34 0000 -------
Still not fixed

------- Comment #16 From Dan Wallis 2009-09-25 06:43:47 0000 -------
Still a problem with pygobject-2.18.0

------- Comment #17 From Gabriele Dini Ciacci 2009-11-07 10:26:04 0000 -------
I confirm it's still not fixed in pygobject-2.18.0, the problem can be fixed
exactly in the same way as comment #2. Naturally the thing causes both
python-updater (2.5->2.6) and emerge system/world to fail, please put a message
there to avoid having the user come here to discover if it's something serious
or if he can just jump the tests.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug