Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347601 - app-misc/specto has incomplete RDEPEND list
Summary: app-misc/specto has incomplete RDEPEND list
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-02 20:48 UTC by Mike Hammill
Modified: 2010-12-08 08:36 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Hammill 2010-12-02 20:48:10 UTC
specto builds in a non-GNOME environment, but appears to actually require a GNOME environment to run.  

Reproducible: Always

Steps to Reproduce:
1. emerge =app-misc/specto-0.3.1
2. specto

Actual Results:  
/usr/lib/python2.6/site-packages/spectlib/tools/iniparser.py:307: DeprecationWarning: the sets module is deprecated
  from sets import Set
/usr/lib/python2.6/site-packages/spectlib/plugins/watch_web_static.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Traceback (most recent call last):
  File "/usr/bin/specto", line 30, in <module>
    specto = Specto()
  File "/usr/lib/python2.6/site-packages/spectlib/main.py", line 109, in __init__
    self.notifier = Notifier(self)
  File "/usr/lib/python2.6/site-packages/spectlib/notifier.py", line 78, in __init__
    gnome.sound_init('localhost')
NameError: global name 'gnome' is not defined


Expected Results:  
Running specto

The python code itself seems oddly ambivalent when importing:
In /usr/lib/python2.6/site-packages/spectlib/notifier.py
you find a general exception:
try:
    import gtk
    import gtk.glade
    import gobject
    import pango
    import gnome
except:
    pass

but later in the code many unconditional uses of names such as gnome.xxx.  I found no error manually importing all the above in a python session, BTW, except gnome, which is not part of my environment.

# emerge --info app-misc/specto
Portage 2.1.9.24 (default/linux/x86/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r3, 2.6.35-gentoo-r12 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.35-gentoo-r12-i686-Intel-R-_XEON-TM-_CPU_2.20GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 02 Dec 2010 00:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.6.5-r3, 3.1.3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.6
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distcc distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ http://de-mirror.org/distro/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB sv sv_SE"
MAKEOPTS="-j11"
PKGDIR="/var/pkg"
PORTAGE_CONFIGROOT="/"
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/local/portage"
SYNC="rsync://giddy.michael.hammill.name/gentoo-portage"
USE="X a52 aac acl acpi afs alsa apache2 aspell assistant autoipd avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdr cgi cli consolekit contrib cracklib crypt cups curl cvs cxx dbus dia djvu docbook dot dri dts dvd dvdr dvi dvi2tty dvipdfm emacs emboss encode esd exif fam firefox flac fltk fontconfig fortran fuse gcrypt gdbm geoip gif gimp git gnuplot gnutls gpm graphics graphviz gs gstreamer gtk hal helpers hyphenation iconv icu imagemagick imlib ipv6 jai java java6 jpeg kerberos kpathsea lame latex latex3 lcms ldap libcaca libnotify libssh2 lm_sensors lua m17n-lib mad mailwrapper mikmod mmx mng modules mp3 mp4 mpeg mpm-worker mudflap nagios-ntp nagios-ssh nano-syntax ncurses network-cron nls no-old-linux nptl nptlonly nsplugin nss ogg opengl openmp openssl pam pango pcre pdf perl plotutils png postscript ppds pppd python qt3support raw rcs readline rtf ruby sasl schroedinger screenshot sdl secure-delete sensord session sound spell sse sse2 ssl startup-notification subversion svg sysfs system-sqlite system-v8 t1lib tcl tcpd templates tex4ht threads tiff tk truetype twolame udev unicode usb vhosts vorbis webdav webkit wmf wxwidgets x264 x86 xattr xcb xft xinerana xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="access actions alias asis auth auth_anon auth_dbm auth_digest authz_default authz_host autoindex cache case_filter_in case_filter cern_meta cgi cgid charset_lite dav dav_fs dav_lock deflate dir disk_cache echo env expires ext_filter file_cache filter headers imap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_connect proxy_ftp proxy_http rewrite setenvif so speling status unique_id unique_id userdir usertrack vhost_alias authn_file  authz_groupfile authz_user" APACHE2_MPMS=" worker" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB sv sv_SE" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="i810 intel r128 radeon vesa fbdev nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-misc/specto-0.3.1 was built with the following:
USE="" LINGUAS="sv -cs -de -es -fr -it -pt_BR -ro -tr"
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-12-07 22:22:38 UTC
Hi, 

the required gnome/__init__.py is from dev-python/libgnome-python.
I've added is to the RDEPEND list. 

It pulls some gnome-libs, like libgnomeui. I haven't the time to hack the gnome part out of this package, so I cannot present a better solution than to install the now required packages.

Michael

Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-12-07 22:24:12 UTC
+  07 Dec 2010; Michael Weber <xmw@gentoo.org> specto-0.3.1.ebuild:
+  Mike Hammill <michael@hammill.name> reported a RDEPEND on
+  dev-python/libgnome-python in bug 347601. Thanks
+
Comment 3 Mike Hammill 2010-12-08 08:36:53 UTC
(In reply to comment #2)
Yes, I see emerge pulling in some of gnome now, as you mentioned. Thanks for the fix!  /Mike