Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539984 - net-misc/electrum-1.9.8 USE=qrcode should depend on media-gfx/zbar[v4l] for barcode scanning
Summary: net-misc/electrum-1.9.8 USE=qrcode should depend on media-gfx/zbar[v4l] for b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-02-13 16:07 UTC by Michael Mair-Keimberger (iamnr3)
Modified: 2015-02-14 11:57 UTC (History)
4 users (show)

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


Attachments
proposed patch (electrum-1.9.8.ebuild.patch,504 bytes, patch)
2015-02-13 16:10 UTC, Michael Mair-Keimberger (iamnr3)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mair-Keimberger (iamnr3) 2015-02-13 16:07:06 UTC
Starting electrum (built with qrcode enabled) gives following error on the terminal:

Error: cannot initialize plugin <module 'electrum_plugins.qrscanner' from '/usr/lib64/python2.7/site-packages/electrum_plugins/qrscanner.pyc'>
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/electrum/plugins.py", line 26, in init_plugins
    plugins.append( p.Plugin(self, name) )
  File "/usr/lib64/python2.7/site-packages/electrum_plugins/qrscanner.py", line 30, in __init__
    self._is_available = self._init()
  File "/usr/lib64/python2.7/site-packages/electrum_plugins/qrscanner.py", line 37, in _init
    proc.init(video_device=self.video_device())
UnsupportedError: ERROR: zbar processor in _zbar_video_open():
    unsupported request: not compiled with video input support


Rebuilding media-gfx/zbar with v4l use flag enabled fixes this problem



emerge --info electrum
Portage 2.2.15 (python 2.7.9-final-0, default/linux/amd64/13.0/no-emul-linux-x86, gcc-4.9.2, glibc-2.20-r1, 3.19.0-rc6 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.19.0-rc6-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.2
KiB Mem:    16355768 total,   8276064 free
KiB Swap:    8388600 total,   8388600 free
Timestamp of tree: Sat, 07 Feb 2015 05:30:01 +0000
sh dash 0.5.8.2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r1
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.1.0
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.9
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.15
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.9.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.5
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r1
Repositories: gentoo local tox-overlay x11 raiagent
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=bdver2 -mprefer-avx128"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=bdver2 -mprefer-avx128"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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="/media/public/overlays/local /media/public/overlays/layman/tox-overlay /media/public/overlays/layman/x11 /media/public/overlays/layman/raiagent"
SYNC="rsync://192.168.2.1/gentoo-portage"
USE="acl alsa amd64 berkdb bzip2 cli cracklib crypt cxx dbus dri exif flac gallium gdbm glamor graphite iconv icu ipv6 jpeg kde kipi libav lzma mmx modules mp3 multilib ncurses nls nptl openal opengl openmp otr pam pcre png qt4 readline sdl session sse sse2 ssl svg tcpd threads tiff truetype unicode vdpau vim-syntax xinerama zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="krita sheets words karbon" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

net-misc/electrum-1.9.8 was built with the following:
USE="qrcode qt4 -gtk -webkit" ABI_X86="64" LINGUAS="-ar_SA -cs_CZ -de_DE -eo_UY -es_ES -fr_FR -hu_HU -id_ID -it_IT -ja_JP -ky_KG -lv_LV -nl_NL -pl_PL -pt_BR -pt_PT -ro_RO -ru_RU -sl_SI -ta_IN -th_TH -vi_VN -zh_CN" PYTHON_TARGETS="python2_7"
Comment 1 Michael Mair-Keimberger (iamnr3) 2015-02-13 16:10:21 UTC
Created attachment 396382 [details, diff]
proposed patch
Comment 2 Michael Mair-Keimberger (iamnr3) 2015-02-13 19:35:44 UTC
I've made a pull request on github too. See [1]. This one fixes 1.9.7 as well since it's affected too.

[1]https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/16
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-02-14 11:57:20 UTC
+  14 Feb 2015; Michał Górny <mgorny@gentoo.org> electrum-1.9.7.ebuild,
+  electrum-1.9.8.ebuild:
+  USE=qrcode requires zbar[v4l], bug #539984 with PR by Michael Mair-Keimberger.