Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 335292

Summary: media-gfx/gtkam-0.1.17: gimp plugin doesn't work at all in Russian locale
Product: Gentoo Linux Reporter: Alexander E. Patrakov <patrakov>
Component: Current packagesAssignee: Peter Volkov (RETIRED) <pva>
Status: RESOLVED FIXED    
Severity: critical CC: gnome, graphics+disabled, nikoli
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://sourceforge.net/tracker/?func=detail&aid=3058789&group_id=8874&atid=108874
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander E. Patrakov 2010-08-30 17:19:50 UTC
[ebuild   R   ] media-gfx/gtkam-0.1.17  USE="gimp nls -debug -gnome"

This is expected to add menu items to GIMP menu that capture and download images from a camera. This does work in English locales. In Russian locales, such menu items don't appear.

Reproducible: Always

Steps to Reproduce:
1. install gtkam
2. rm -rf ~/.gimp-2.6 ; LANG=ru_RU.UTF-8 gimp
3. inspect the menu
Actual Results:  
No camera-related menu items unless I run gimp manually once in the C locale.

Expected Results:  
Two additional items in the "Файл > Создать" (Russian translation of "File > Create") menu

Gimp prints this on stderr:

aep@home ~ $ gimp
GIMP-Предупреждение: Plug-In "gtkam-gimp"
(/usr/lib64/gimp/2.0/plug-ins/gtkam-gimp)
attempted to install procedure "gtkam-capture" in the invalid menu location "<Панель инструментов>/Файл/Получить/Захватить с камеры...".
Use either "<Toolbox>", "<Image>", "<Layers>", "<Channels>", "<Vectors>", "<Colormap>", "<Load>", "<Save>", "<Brushes>", "<Gradients>", "<Palettes>", "<Patterns>" or "<Buffers>".

GIMP-Предупреждение: Plug-In "gtkam-gimp"
(/usr/lib64/gimp/2.0/plug-ins/gtkam-gimp)
attempted to install procedure "gtkam-load" in the invalid menu location "<Панель инструментов>/Файл/Получить/Загружить с камеры...".
Use either "<Toolbox>", "<Image>", "<Layers>", "<Channels>", "<Vectors>", "<Colormap>", "<Load>", "<Save>", "<Brushes>", "<Gradients>", "<Palettes>", "<Patterns>" or "<Buffers>".

Translation back to English: Предупреждение = warning, "<Панель инструментов>/Файл/Получить/" = "<Toolbar>/File/Acquire"

I.e. it attempts to add items to a non-existing menu "Файл > Получить" instead of the proper "Файл > Создать" menu. Probably this can be "fixed" by disabling all translations (this is not the same as masking the nls USE-flag!).

aep@home ~ $ emerge --info
Portage 2.2_rc69-r1 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.12.1-r1, 2.6.35-gentoo x86_64)
=================================================================
System uname: Linux-2.6.35-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_6420_@_2.13GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 28 Aug 2010 03:45:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.2
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-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/portage /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="-O2 -march=core2 -fomit-frame-pointer -pipe"
DISTDIR="/home/distfiles"
FEATURES="assume-digests buildpkg distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/home/packages/amd64"
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="/home/build"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/multilib /var/lib/layman/java-overlay /var/lib/layman/kde /var/lib/layman/qting-edge /usr/local/portage"
SYNC="rsync://mirror.yandex.ru/gentoo-portage"
USE="X a52 aac accessibility acl acpi alsa amd64 amr applet archive artworkextra automount bash-completion berkdb bidi bluetooth bzip2 cairo caps cdda cddb cdr cjk cli clucene consolekit cracklib crypt css cups cxx dbus dirac djvu dri dts dvb dvd dvdr emboss encode exif faac faad fastcgi ffmpeg firefox flac fontconfig fortran fuse gcj gdbm gif gimp glibc-omitfp gnuplot gphoto2 gsm gstreamer gtk iconv icq idn ieee1394 ipod ipv6 jabber jack jack-midi jbig jingle jpeg jpeg2k ladspa lame latex lcms ldap libnotify libsamplerate mad mikmod mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib multilib_abi_amd64 musepack mysql ncurses networkmanager nls nocd nptl nptlonly nsplugin ogg opengl openmp pam pango pch pcre pdf perl png policykit ppds pppd python qt3support raw rdesktop readline reflection samba scanner schroedinger sdl session shorten smp speex spell spl sqlite sse sse2 sse3 ssl ssse3 startup-notification svg symlink sysfs tcl tcpd theora threads tiff tk truetype unicode usb v4l2 videos vim-syntax vnc vorbis vpx wavpack wifi winbind wmf x264 xattr xcb xcomposite xinerama xml xmp xorg xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" CAMERAS="ptp2" DVB_CARDS="tda10046lifeview" ELIBC="glibc" INPUT_DEVICES="evdev synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="devinput audio_alsa inputlirc" MULTILIB_ABIS="amd64 x86" RUBY_TARGETS="ruby18" SANE_BACKENDS="gt68xx" USERLAND="GNU" VIDEO_CARDS="intel" 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, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Pacho Ramos gentoo-dev 2010-09-01 19:52:32 UTC
I think you should report this directly to upstream:
http://gphoto.org/bugs/
Comment 2 Alexander E. Patrakov 2010-09-03 13:35:53 UTC
Done, see the URL
Comment 3 Alexander E. Patrakov 2011-01-09 10:34:54 UTC
Since upstream is unresponsive, please fix the bug in gentoo, even if this means losing all translations.
Comment 4 Pacho Ramos gentoo-dev 2012-01-31 09:05:35 UTC
+*gtkam-0.1.18 (31 Jan 2012)
+
+  31 Jan 2012; Pacho Ramos <pacho@gentoo.org>
+  +files/gtkam-0.1.18-desktop-validation.patch, +gtkam-0.1.18.ebuild:
+  Version bump, it should also fix location problems like bug #335292 by
+  Alexander E. Patrakov.
+
Comment 5 Alexander E. Patrakov 2012-01-31 10:52:41 UTC
Yes, the plugin is now visible in the menu.