Bug 192727 - gnome-base/libgnomecanvas and gnome-base/gail have circular dependencies
Bug#: 192727 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: trivial Priority: P2
Resolution: FIXED Assigned To: gnome@gentoo.org Reported By: ssuominen@gentoo.org
Component: Ebuilds
URL: 
Summary: gnome-base/libgnomecanvas and gnome-base/gail have circular dependencies
Keywords:  
Status Whiteboard: 
Opened: 2007-09-16 19:39 0000
Description:   Opened: 2007-09-16 19:39 0000
gnome-base/libgnomecanvas-2.19.2, configure.in:

m4_define([gail_required_version],     [1.9.0])

Had gail-1.18.0 installed from portage and pkg-config died with it:

pkg-config --exists --print-errors libbonoboui-2.0
Failed to open '/usr/lib/pkgconfig/libgnomecanvas-2.0.pc': Too many open files

However, upgrading gail to version 1.19.6 fixed this problem.

I suggest simply adding >=gnome-base/gail-1.19.6 dep to libgnomecanvas ebuild.

------- Comment #1 From Daniel Gryniewicz 2007-09-19 15:18:17 0000 -------
Not necessary.  "Too many open files" is a transient error, and goes away on
it's own when processes close some files.

------- Comment #2 From Samuli Suominen 2007-09-20 18:18:21 0000 -------
configure.ac says it needs gail, and gail didn't upgrade in default -DNut world
because it wasn't a depend of anything installed.

so please add the missing dep, with or without the raised version number ;)

------- Comment #3 From Daniel Gryniewicz 2007-09-20 18:28:17 0000 -------
There is a gail dep in it.  It's for 1.9, which is in configure:

   >=gnome-base/gail-1.9


I fail to see what I should change.

------- Comment #4 From Mart Raudsepp 2007-09-21 20:55:41 0000 -------
There's a circular dependency going on between libgnomecanvas and gail, related
to this. Hopefully we can fix that somehow..

From https://forums.gentoo.org/viewtopic.php?p=4267118#4267118 :

('ebuild', '/', 'gnome-base/libgnomecanvas-2.20.0', 'merge') depends on
('ebuild', '/', 'gnome-base/gail-1.20.0', 'merge') (hard)
('ebuild', '/', 'gnome-base/gail-1.20.0', 'merge') depends on
('ebuild', '/', 'gnome-base/libgnomecanvas-2.20.0', 'merge') (hard)


>>> Emerging (2 of 41) gnome-base/libbonoboui-2.20.0 to /

checking for BONOBOUI... configure: error: Package requirements
(libgnomecanvas-2.0 >= 1.116.0 libbonobo-2.0 >= 2.13.0 libgnome-2.0 >= 2.13.7
bonobo-activation-2.0 >= 2.13.0 libxml-2.0 >= 2.4.20 gconf-2.0 >= 1.1.9
gtk+-2.0 >= 2.6.0 gobject-2.0 >= 2.6.0 gnome-vfs-2.0 >= 2.8.0
gnome-vfs-module-2.0 > 2.8.0) were not met:

Failed to open ’/usr/lib/pkgconfig/libgnomecanvas-2.0.pc’: Too many open
files
Package ‘libgnomecanvas-2.0’, required by ‘Gail’, not found

----

So this seems to be causing more problems than just FEATURES=stricter to bail
out

------- Comment #5 From Mart Raudsepp 2007-10-01 06:40:34 0000 -------
I think this is fixed now in the portage versions of things. Can someone
confirm?

------- Comment #6 From Mart Raudsepp 2007-10-01 16:29:22 0000 -------
Please reopen if problems regarding this still remain.

What I did yesterday was the following:

* Removed libgnomecanvas dependency on gail, because the code that depended on
it was intentaionlly moved to libgnomecanvas-2.20 and the dep in configure.in
removed too - was just an oversight in gail-1.19.6 bump in gnome overlay that
the RDEPEND wasn't removed as well
* Increased the dependency on gail to 1.19.6 in libgnomecanvas-2.20.0 to ensure
that before upgrading libgnomecanvas, the system has a gail version that
doesn't contain GailCanvas implementation and symbols, because
libgnomecanvas-2.20.0 will provide it itself and having them both do (older
gail and new libgnomecanvas) might cause interesting issues at runtime.

------- Comment #7 From Lars Wendler (Polynomial-C) 2009-03-02 14:24:08 0000 -------
*** Bug 260860 has been marked as a duplicate of this bug. ***