Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420213 - If python3 has been eselected, app-i18n/ibus-anthy-1.2.7 doesn't work.
Summary: If python3 has been eselected, app-i18n/ibus-anthy-1.2.7 doesn't work.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
URL: http://code.google.com/p/ibus/issues/...
Whiteboard:
Keywords:
Depends on:
Blocks: 415635
  Show dependency tree
 
Reported: 2012-06-08 09:08 UTC by gtlinuxman
Modified: 2012-06-18 16:03 UTC (History)
2 users (show)

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


Attachments
ibus-anthy-1.2.7.ebuild.patch (ibus-anthy-1.2.7.ebuild.patch,191 bytes, patch)
2012-06-18 14:09 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gtlinuxman 2012-06-08 09:08:06 UTC
% eselect python list          
Available Python interpreters:
  [1]   python2.7
  [2]   python3.2 *

% ibus-daemon -n kde -x -r -v               
  File "/usr/share/ibus-anthy/engine/main.py", line 85
    except getopt.GetoptError, err:
                             ^
SyntaxError: invalid syntax
  File "/usr/share/ibus-anthy/setup/main.py", line 1202
    print a[0]
          ^
SyntaxError: invalid syntax


% emerge --info ibus ibus-anthy
Portage 2.2.0_alpha110 (hardened/linux/amd64, gcc-4.5.3, glibc-2.13-r4, 3.3.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.3.1-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_M_460_@_2.53GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 08 Jun 2012 05:30:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
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.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo local rusxmms science mpd
Installed sets: @kde-4.8, @leechcraft-my-0.4.99
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib64/udev/rules.d/40-usb_modeswitch.rules /sbin/mount.ntfs /sbin/mount.ntfs-3g /usr/bin/lesspipe.sh /usr/bin/localepurge /usr/bin/offimport_cd.sh /usr/bin/proxyresolv /usr/share/1X11/locale/locale.dir /usr/share/X11/locale/compose.dir /usr/share/X11/locale/locale.alias /usr/share/X11/locale/ru_RU.UTF-8 /usr/share/X11/xkb /usr/share/alsa/alsa.conf /usr/share/autostart /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/hibernate/scriptlets.d/fbsplash /usr/share/openvpn/easy-rsa /usr/share/recoll/filters /usr/share/services/kontact/basket.desktop /usr/share/shorewall/configfiles /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /usr/share/usb_modeswitch/05c6:2001:sVe=Rover /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/X11/ion3 /etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/mnt/archive/distfiles/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --keep-going -j2"
FEATURES="assume-digests binpkg-logs candy ccache config-protect-if-modified distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch parallel-install parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -mtune=native -O2 -pipe"
GENTOO_MIRRORS="http://gentoo.tups.lv/source/ ftp://ftp.ds.karen.hj.se/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed,--hash-style=gnu,--sort-common"
LINGUAS="ru"
MAKEOPTS="-j5"
PKGDIR="/mnt/archive/distfiles/gentoo/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="/usr/portage-overlay/local /usr/portage-overlay/layman/rusxmms /usr/portage-overlay/layman/science /usr/portage-overlay/layman/mpd"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac aalib acl acpi aim alsa amd64 amr asf audacious avahi bash-completion bcmath berkdb bittorrent blas bluetooth branding bzip2 cairo canna cap caps ccache cdda cdparanoia cdr cgi chroot cjk clamav cli colordiff consolekit cracklib crypt cscope cups curl curlwrappers cxx db2 dbi dbus dbx directfb djvu dri dts dv dvd dvdr dvdread elf emboss enca encode enscript exif expat extras fam fbcon fbsplash ffmpeg finger firefox flac font-server fontconfig foomaticdb fortran ftp gcj gd gdbm geoip gif gimp gimpprint ginac glibc-omitfp gmp gnuplot gnustep gnutls gpm graphviz gs gsl gsm gssapi gstreamer gzip handbook hardened hddtemp htmlhandbook iconv icq icu idn imagemagick imap imlib innodb ipv6 jabber jack java java6 javascript jfs jikes jingle jpeg junit justify kde kdehiddenvisibility kerberos kipi kontact kqemu ladspa lapack latex lcms ldap libcaca libclamav libnotify libsamplerate lm_sensors logrotate lua lzma lzo lzw m17n-lib mad maildir matroska mbox memlimit metalink mhash mikmod mime mmap mms mmx mmxext mng modplug modules mozdevelop mozilla mp3 mp4 mpd mpeg mplayer mtp mudflap mule multilib musepack musicbrainz nas ncurses nethack networkmanager newspr nls nntp nocd nptl nsplugin ntlm numeric offensive ogg opengl openmp osc pam pango pax_kernel pcntl pcre pda pdf pdfkit perl pertty phonon php plasma plotutils png policykit posix postgres pppd prelude pulseaudio python qt3support qt4 quicktime rar raw readline recode reiserfs rtc samba sasl scanner sdl semantic-desktop session sharedext sharedmem shorten skey slang slp smp sndfile soap sockets socks5 sound sox speex spell sse sse2 sse4 sse4a ssl ssse3 startup-notification subversion svg sysfs syslog sysvipc szip taglib tcpd tetex theora threads tidy tiff timidity tokenizer tordns truetype ucs2 udev unicode urandom usb userlocales v4l v4l2 vcd vhosts videos visualization vnc vorbis wavpack webdav wifi wmf wxwindows x264 xattr xcb xcomposite xface xfs xft xine xinerama xml xmpp xorg xosd xpm xrandr xscreensaver xsl xulrunner xv xvid xvmc zeroconf zlib zsh-completion" ALSA_CARDS="hda-intel" 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="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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="directory template uvc" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="epson snapscan" USERLAND="GNU" VIDEO_CARDS="v4l" XTABLES_ADDONS="account chaos checksum condition delude dhcpmac dnetmap echo fuzzy geoip gradm iface ipmark ipp2p ipv4options length2 logmark lscan pknock psd quota2 rawnat steal sysrq tarpit tee"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

app-i18n/ibus-1.4.1 was built with the following:
USE="X gconf gtk introspection (multilib) nls python -dconf -doc -gtk3 -vala"


app-i18n/ibus-anthy-1.2.7 was built with the following:
USE="(multilib) nls"
Comment 1 Ben de Groot (RETIRED) gentoo-dev 2012-06-18 13:01:45 UTC
This is correct. Both ibus and ibus-anthy specifically depend on python-2. Upstream doesn't support python-3. See also http://code.google.com/p/ibus/issues/detail?id=1391
Comment 2 Arfrever Frehtes Taifersar Arahesis 2012-06-18 14:09:13 UTC
Created attachment 315675 [details, diff]
ibus-anthy-1.2.7.ebuild.patch

This patch should fix this bug.
Comment 3 Mike Gilbert gentoo-dev 2012-06-18 15:55:59 UTC
Arfrever's fix seems reasonable.
Comment 4 Maxim Koltsov (RETIRED) gentoo-dev 2012-06-18 16:03:20 UTC
Similar fix was commited to tree.