Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Circular Dependency Hell with dbus and hal
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
fnord_ix
n00b
n00b


Joined: 03 Aug 2004
Posts: 30
Location: Sydney Australia

PostPosted: Fri Feb 17, 2006 11:20 pm    Post subject: [Solved] Circular Dependency Hell with dbus and hal Reply with quote

Hi,

I'm having alot of trouble trying to emerge hal-0.5.5.1-r3 and dbus-0.60-r3. These are the results for the following commands;

Code:

emerge -p hal

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] sys-apps/pmount-0.9.6
[ebuild  NS   ] gnome-base/gnome-vfs-2.12.2
[ebuild  N    ] gnome-base/libgnome-2.12.0.1
[ebuild  N    ] gnome-base/libbonoboui-2.10.1-r1
[ebuild  N    ] gnome-base/libgnomeui-2.12.0
[ebuild  NS   ] gnome-extra/gtkhtml-3.2.5
[ebuild  N    ] dev-dotnet/gtkhtml-sharp-1.0.10
[ebuild  N    ] dev-util/mono-tools-1.1.10
[ebuild  N    ] sys-apps/dbus-0.60-r3
[ebuild  N    ] sys-apps/hal-0.5.5.1-r3
[ebuild  N    ] x11-themes/gtk-engines-2.6.7
[ebuild  N    ] x11-themes/gnome-themes-2.12.1


and

Code:

emerge -p dbus

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] sys-apps/hal-0.5.5.1-r3
[ebuild  N    ] sys-apps/pmount-0.9.6
[ebuild  NS   ] gnome-base/gnome-vfs-2.12.2
[ebuild  N    ] gnome-base/libgnome-2.12.0.1
[ebuild  N    ] gnome-base/libbonoboui-2.10.1-r1
[ebuild  N    ] gnome-base/libgnomeui-2.12.0
[ebuild  NS   ] gnome-extra/gtkhtml-3.2.5
[ebuild  N    ] dev-dotnet/gtkhtml-sharp-1.0.10
[ebuild  N    ] dev-util/mono-tools-1.1.10
[ebuild  N    ] sys-apps/dbus-0.60-r3
[ebuild  N    ] x11-themes/gtk-engines-2.6.7
[ebuild  N    ] x11-themes/gnome-themes-2.12.1


Ass you can see dbus needs hal and vice versa. I have read some other posts which state similar problems, but none of the solutions work for me.

Has anyone had similar problems, or know of a solution?

TIA


Last edited by fnord_ix on Sat Feb 18, 2006 6:08 am; edited 1 time in total
Back to top
View user's profile Send private message
UncleOwen
Veteran
Veteran


Joined: 27 Feb 2003
Posts: 1493
Location: Germany, Hamburg

PostPosted: Fri Feb 17, 2006 11:22 pm    Post subject: Reply with quote

I don't see any problem so far.
Back to top
View user's profile Send private message
drwook
Veteran
Veteran


Joined: 30 Mar 2005
Posts: 1324
Location: London

PostPosted: Fri Feb 17, 2006 11:37 pm    Post subject: Reply with quote

Looking at the ebuilds, HAL does have a build time (and run time) dependancy on dbus, but not the other way around, so you should be ok.

Are you actually having any trouble here?
Back to top
View user's profile Send private message
fnord_ix
n00b
n00b


Joined: 03 Aug 2004
Posts: 30
Location: Sydney Australia

PostPosted: Sat Feb 18, 2006 3:21 am    Post subject: Reply with quote

The problem I am having, is when I try to emerge dbus, the first package to be compiled, due to dependencies, is hal, and I get this error;

Code:

....
checking pkg-config is at least version 0.9.0... yes
checking for PACKAGE... configure: error: Package requirements (glib-2.0 >= 2.6.0, gobject-2.0 >= 2.6.0, dbus-glib-1 >= 0.33, dbus-1 >= 0.33) were not met:

No package 'dbus-glib-1' found
No package 'dbus-1' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PACKAGE_CFLAGS
and PACKAGE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


To me this indicates that I need glib installed to install hal, but when I try to install glib, it tries to install hal, which need glib ...

So, unless there is something that I am missing, I can't install either.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Feb 18, 2006 3:53 am    Post subject: Reply with quote

How about a normal emerge:
Code:
emerge --quiet --update --newuse --deep world
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Sat Feb 18, 2006 4:29 am    Post subject: Reply with quote

First, please use --verbose when posting emerge output to the forums -- it makes it a lot easier to see what's going on. Also, consider using --tree.

That said, it's easy to see what's happening; the doc and mono use flags on dbus are pulling in mono-tools, which is pulling in various gnome libraries that depend on hal.

The easiest way to fix this would be not to emerge hal or dbus directly; just turn on the hal USE flag and let portage sort out the dependency order.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
fnord_ix
n00b
n00b


Joined: 03 Aug 2004
Posts: 30
Location: Sydney Australia

PostPosted: Sat Feb 18, 2006 5:27 am    Post subject: Reply with quote

I already have the hal use flag turned on.

Just a bit more info to help you...

Quote:

emerge -avt dbus

These are the packages that I would merge, in reverse order:

Calculating dependencies ...done!
[ebuild N ] x11-themes/gnome-themes-2.12.1 -accessibility -debug 2,501 kB
[ebuild N ] x11-themes/gtk-engines-2.6.7 -accessibility -debug 468 kB
[ebuild N ] sys-apps/dbus-0.60-r3 +X -debug +doc -gcj +gtk +mono +python +qt (-selinux) +xml2 1,635 kB
[ebuild N ] dev-util/mono-tools-1.1.10 247 kB
[ebuild N ] dev-dotnet/gtkhtml-sharp-1.0.10 0 kB
[ebuild NS ] gnome-extra/gtkhtml-3.2.5 -debug 0 kB
[ebuild N ] gnome-base/libgnomeui-2.12.0 -debug +doc +jpeg -static 0 kB
[ebuild N ] gnome-base/libbonoboui-2.10.1-r1 +X -debug +doc -static 0 kB
[ebuild N ] gnome-base/libgnome-2.12.0.1 -debug +doc +esd -static 0 kB
[ebuild NS ] gnome-base/gnome-vfs-2.12.2 -debug +doc -gnutls +hal -howl +ipv6 +samba +ssl 1,521 kB
[ebuild N ] sys-apps/pmount-0.9.6 +crypt 368 kB
[ebuild N ] sys-apps/hal-0.5.5.1-r3 +acpi -debug +doc -pam_console -pcmcia (-selinux) 0 kB

Total size of downloads: 6,743 kB


and my make.conf file

Code:

# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-Os -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"

MAKEOPTS="-j2"

GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo ftp://ftp.swin.edu.au/gentoo http://ftp.swin.edu.au/gentoo ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/"

SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"

USE="X 3dnow a52 aac acl acpi alsa apache apache2 apm arts bash-completion berkdb bmp bzip2 cdb cdr crypt cups dbus doc dri dv dvd dvdr dvdread emacs emacs-w3 emul-linux-x86 encode exif fastcgi fbcon ffmpeg foomaticdb ftp gif gimpprint gphoto2 gstreamer gtk gtk2 hal hardenedphp ieee1394 imagemagick innodb jabber jack java javascript joystick jpeg jpeg2k kde kdexdeltas kerberos krb4 ldap mono mozilla mp3 mpeg mysql mysqli ncurses nvidia odbc offensive ogg oggvorbis openal opengl pam pda pdflib perl php png ppds python qt quicktime readline samba scanner session sharedext sharedmem simplexml soap sockets spell sqlite sse ssl svg svga tcpd tetex theora tiff tokenizer truetype unicode usb vcd videos vorbis win32codecs wmf xine xml xml2 xmlrpc xmms xpm xprint xvid"


I hope this info is helpful
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Sat Feb 18, 2006 5:45 am    Post subject: Reply with quote

Have you run emerge --deep --update --newuse world recently? Have you tried merging something that uses hal, rather than hal itself? Why do you want/need hal installed?
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
fnord_ix
n00b
n00b


Joined: 03 Aug 2004
Posts: 30
Location: Sydney Australia

PostPosted: Sat Feb 18, 2006 6:08 am    Post subject: Reply with quote

It appears that the problem is solved. I'm not sure how, but I'll explain what I did in the hope that it might help future users who have a similar problem.

I just had to rebuild my system due to a faulty hard drive. I was installing KDE following The KDE Configuration HOWTO http://www.gentoo.org/doc/en/kde-config.xml. Towards the end of the document it says to
Code:
emerge --noreplace dbus hal
so you can mount devices. This is when I first struck the hal dbus dependency issue.

While I was working on this problem, and waiting for some insight from other forum users, I was trying to emerge other program that I want to use, one of them being gtkam. That came up with the same problem. So I followed ecatmur's advice and tried to emerge something that uses hal, instead of hal directly. I chose mono-tools, which is a dependency of gtkam.

The first items in the dependency list were dbus, then hal. I thought, "Cool, this is just what ecatmur was talking about." When I tried, I got error from compiling dbus, but it was an error from not having monodoc installed. I checked, and it was installed, so I tried
Code:
USE="-doc" emerge -av mono-tools
and the install went without a problem.

I now have hal & dbus installed on my system. I still don't know what the problem was, but I seem to have worked around it.

Thanks to everyone who read my post, and tried to shed some more light on my problem
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Sat Feb 18, 2006 6:41 am    Post subject: Reply with quote

If you had to disable a USE flag to get it to install, then it is a genuine bug in the Portage tree.

I've filed https://bugs.gentoo.org/show_bug.cgi?id=123232 for this issue. Thanks for helping to diagnose it!
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum