Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 222093 - media-sound/sonata-1.5.1: doesn't run without dev-python/dbus-python
Summary: media-sound/sonata-1.5.1: doesn't run without dev-python/dbus-python
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Christoph Mende (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-14 16:05 UTC by Toni Budrović
Modified: 2008-06-13 08:22 UTC (History)
1 user (show)

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


Attachments
new Sonata ebuild solving dbus issue (sonata-1.5.1.ebuild,918 bytes, text/plain)
2008-05-14 16:23 UTC, Toni Budrović
Details
patch solving the dbus issue (dbus-runtime-error.patch,977 bytes, patch)
2008-05-17 12:42 UTC, Toni Budrović
Details | Diff
ebuild which applies dbus-runtime-error.patch (sonata-1.5.1.ebuild,1.05 KB, text/plain)
2008-05-17 12:44 UTC, Toni Budrović
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toni Budrović 2008-05-14 16:05:59 UTC
dev-python/dbus-python is listed as a runtime dependency for media-sound/sonata-1.5.1 only if DBUS USE flag is enabled. However, Sonata refuses to start without it even if dbus USE flag is disabled.

Reproducible: Always

Steps to Reproduce:
1. emerge Sonata without dev-python/dbus-python present on a system
2. try to run Sonata

Actual Results:  
$sonata
Traceback (most recent call last):
  File "/usr/bin/sonata", line 27, in <module>
    from sonata import main
  File "/usr/lib64/python2.5/site-packages/sonata/main.py", line 63, in <module>
    import dbus, dbus.service
ImportError: No module named dbus

Expected Results:  
Sonata should have run. Previously had v. 1.4.2 installed without dbus USE flag and without dev-python/dbus-python on system, and everything worked.

$emerge --info

Portage 2.1.5_rc10 (default-linux/amd64/2007.0, gcc-4.2.3, glibc-2.7-r2, 2.6.25-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Wed, 14 May 2008 11:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch parallel-fetch, sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local /usr/portage/local/layman/pro-audio"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 acl acpi alsa amd64 bash-completion berkdb cli cracklib crypt cups dri dvd dvdr encode flac fortran gdbm gif gtk hal iconv isdnlog jpeg jpeg2k kde mad midi mmx mp3 mpeg mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre perl png pppd python qt3 readline reflection session spl sse sse2 ssl svg tcpd threads truetype unicode vcd vim-syntax vorbis xcomposite xine xorg xvid xvmc zlib" ALSA_CARDS="emu10k1x" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Toni Budrović 2008-05-14 16:23:24 UTC
Created attachment 153105 [details]
new Sonata ebuild solving dbus issue

Here's my proposal to solve this. Since it seems that Sonata requires dbus-python as a dependency, dbus USE flag should be removed and dev-python/dbus-python added as a runtime dependency
Comment 2 Pouya K 2008-05-15 12:54:33 UTC
If I uncomment the try: and except: around the code in question (in main.py), everything seems to work fine... I don't know why the author commented it out (and didn't add error code like he did with mpd right above).
Comment 3 Toni Budrović 2008-05-16 17:43:52 UTC
(In reply to comment #2)
> If I uncomment the try: and except: around the code in question (in main.py),
> everything seems to work fine... I don't know why the author commented it out
> (and didn't add error code like he did with mpd right above).
> 

You are right. I have already made a patch. Would you mind if I post it?
Comment 4 Pouya K 2008-05-16 20:41:55 UTC
No, go ahead. I made a bug report upstream: https://developer.berlios.de/bugs/?func=detailbug&bug_id=13816&group_id=7323 (no response yet).
Comment 5 Toni Budrović 2008-05-17 12:42:59 UTC
Created attachment 153421 [details, diff]
patch solving the dbus issue

Here's patch which solves this problem. I have tested it and it works on my system. I will also add a new ebuild.
Comment 6 Toni Budrović 2008-05-17 12:44:44 UTC
Created attachment 153423 [details]
ebuild which applies dbus-runtime-error.patch
Comment 7 Pouya K 2008-05-24 06:40:47 UTC
looks like its fixed now upstream. 

https://developer.berlios.de/bugs/?func=detailbug&bug_id=13816&group_id=7323
Comment 8 Christoph Mende (RETIRED) gentoo-dev 2008-06-13 08:22:02 UTC
this is indeed fixed in 1.5.2, which is now in the tree, thanks