Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435036 - sci-misc/gato should RDEPEND on dev-lang/python[tk]
Summary: sci-misc/gato should RDEPEND on dev-lang/python[tk]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-14 15:40 UTC by Mark Dominik Bürkle
Modified: 2012-09-16 16:07 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 Mark Dominik Bürkle 2012-09-14 15:40:10 UTC
Hello.
In my system, python was without tk use flag, i.e. it was compiled with "-tk".
Installing and running gato gave the following error:

Traceback (most recent call last):
  File "/usr/bin/gato", line 48, in <module>
    import tkFont
ImportError: No module named tkFont

After adding "tk" to python's use-Flags in package.use and re-emerging python, the error message is gone and calling gato produces interactive windows. :-)

Reproducible: Always

Steps to Reproduce:
1. emerge gato
2. gato
Actual Results:  
ImportError: No module named tkFont
see description

Expected Results:  
interactive windows, program running

lapmdb-hpl ~ #>> emerge --info
Portage 2.1.11.9 (unavailable, gcc-4.5.4, glibc-2.15-r2, 3.5.2-gentoo x86_64)
=================================================================
System uname: Linux-3.5.2-gentoo-x86_64-Intel-R-_Core-TM-_i5-2430M_CPU_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Wed, 12 Sep 2012 10:45:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo seden
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.utf8"
LDFLAGS=""
LINGUAS="de en fr"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/seden"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa avx branding bzip2 cdda cddb cdinstall cdparanoia cdr cgi cracklib css dbus dedicated dga dri dvd dvdr fam fastcgi ffmpeg firefox flac gif glut gnome gnutls gsm gstreamer gtk gzip hddtemp idn java java6 javascript jpeg jpeg2k kerberos lame lash ldap lm_sensors mad matroska mbox mikmod mime mmap mms mmx mng mod modules mp3 mp4 mpeg mplayer multilib musepack nptl nsplugin ogg openal openexr opengl pcre pdf perl php png posix quicktime raw rdesktop readline recode samba sasl savedconfig sdl sharedmem simplexml smp sound sse sse2 ssl subversion svg symlink syslog sysvipc tcl tcmalloc theora tiff tokenizer udev unicode usb vcd videos vim-syntax vnc vorbis wavpack wifi win32codecs wmf x264 xcb xcomposite xml xosd xsl xulrunner xv xvid zlib"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

lapmdb-hpl ~ #>> 

Somehow, I don't know how, other ebuilds require use flags in packages they need to be enabled. This is what should be done in the gato-1.1.2.ebuild:

#PYTHON_USE_WITH="tk"

should be uncommented (if that is how this requirement can be implemented).
Thanks!
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2012-09-16 16:07:32 UTC
+  16 Sep 2012; Justin Lecher <jlec@gentoo.org> gato-1.1.2.ebuild, metadata.xml:
+  Require tk support in python, #435036
+