Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 480294 - kde-misc/basket-1.81 - GPGME: Bad passphrase
Summary: kde-misc/basket-1.81 - GPGME: Bad passphrase
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-08 21:27 UTC by Jason Oliveira
Modified: 2013-09-14 19:16 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 Jason Oliveira 2013-08-08 21:27:17 UTC
Since version 0.6.0, x11-misc/basket has the capability of enabling locking of individual baskets (according to their changelog). Unfortunately, it seems the current builds under gentoo do not support this locking, or the resulting unlocking. Or more specifically, the current builds under gentoo immediately give you "GPGME: Bad passphrase" in a dialog box when you try to lock/unlock any basket. 

Steps to Reproduce:
1) USE="crypt" emerge basket
2) Start basket
3) right-click on one of the default baskets (or create a new one first, then right-click), and select "Password..."
4) in the Dialog box that pops up, select the radio button for "Protect basket with a password", and click OK.
5) Enjoy the "GPGME: Bad passphrase" popup window.


output of emerge --info:
emerge --info
Portage 2.3.6-r5 (funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-4.6.4, glibc-2.15-r4, 3.10.1-gentoo x86_64)
=================================================================
System uname: Linux-3.10.1-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_N570_@_1.66GHz-with-gentoo-2.2.0
KiB Mem:     2044144 total,    617104 free
KiB Swap:    2088412 total,   2088412 free
Timestamp of tree: Wed, 31 Jul 2013 17:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.5-r1000, 3.3.2-r1000
dev-util/cmake:           2.8.11.1
sys-apps/baselayout:      2.2.0-r4
sys-apps/openrc:          0.10.2-r9
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.4
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -fomit-frame-pointer -march=atom -pipe"
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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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 /etc/udev/rules.d"
CXXFLAGS="-O2 -fomit-frame-pointer -march=atom -pipe"
DISTDIR="/usr/portage/distfiles"
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"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="git://github.com/funtoo/ports-2012.git"
SYNC_USER="root"
USE="X alsa amd64 apng authdaemon auto-hinter avahi berkdb bindist bittorrent bzip2 c++0x cairo cdr chm consolekit cracklib crypt cups cxx dbus declarative designer-plugin djvu dri dvd dvdr dvdread ebook egl encode exif fam flac fontforge g726 g729 gadu gcrypt gdbm gif gpm groupwise gsm gstreamer iconv icu ilbc infinality ipv6 jingle jpeg jpeg2k json kde kerberos keymap kipi lame latex ldap lzma mad mdnsresponder-compat meanwhile mms mmx modules mp3 mpeg msn mudflap multilib multimedia musicbrainz ncurses networkmanager nls nptl ogg openal openexr opengl openmp opus oscar otr pam pcap pch pcre pdf phonon plasma png policykit pppd pyqt4 python qalculate qwt rar rdesktop readline resolvconf samba scim sdl semantic-desktop silk skype sms sse sse2 ssl taglib tcpd telepathy testbed theora threads tiff truetype udev unicode urandom utils v4l video vnc vorbis wavpack webkit webpresence win32codecs winbind winpopup wxwidgets x264 xml xscreensaver xvmc yahoo zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel ice1724 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 authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_ABIS="2.7 3.3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19 ruby20" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK
Comment 1 Jason Oliveira 2013-08-08 21:47:45 UTC
Upon further investigation (running the app via konsole/yakuake), it appears that the GPGME dialog is appearing in the terminal:

              ┌─────────────────────────────────────────────────────┐
              │ Enter passphrase                                    │
              │                                                     │
              │                                                     │
              │ Passphrase ***************************************_ │
              │                                                     │
              │       <OK>                             <Cancel>     │
              └─────────────────────────────────────────────────────┘


 but fills with characters, and then makes the terminal unusable. This makes basket freeze, but does not bring up the "GPGME: Bad passphrase" before freezing.
Comment 2 Jason Oliveira 2013-08-08 22:23:29 UTC
According to htop, my CPU spikes when this happens, and the culprit is pinentry --display :0

'USE="qt4" emerge app-crypt/pinentry' was attempted, but pinentry seems to still be using the ncurses interface. Kleopatra is exhibiting an inability to create GPG keys, so this seems to be basket exhibiting symptoms of a larger issue.
Comment 3 Jason Oliveira 2013-08-08 22:27:11 UTC
Okay, I think I have resolved the issue on my computer. changed the /usr/bin/pinentry symbolic link to point to pinentry-qt4 rather than pinentry-ncurses. basket and kleopatra are now confirmed working.
Comment 4 Michael Palimaka (kensington) gentoo-dev 2013-08-14 13:03:35 UTC
I don't think there's a way for us to control the pinentry client, so maybe we could add a message to the ebuild advising that pinentry-qt4 is required to be active?

(In reply to Jason Oliveira from comment #3)
> Okay, I think I have resolved the issue on my computer. changed the
> /usr/bin/pinentry symbolic link to point to pinentry-qt4 rather than
> pinentry-ncurses. basket and kleopatra are now confirmed working.
We have an eselect module to assist you with this, for example:

eselect pinentry set pinentry-curses
Comment 5 Chris Reffett (RETIRED) gentoo-dev Security 2013-08-21 18:25:30 UTC
Could you confirm whether the pinentry-ncurses dialog issue only happens for basket? I've had problems with pinentry-ncurses in the past myself, so this may be a bug there rather than with basket.
Comment 6 Johannes Huber (RETIRED) gentoo-dev 2013-09-14 19:16:39 UTC
(In reply to Chris Reffett from comment #5)
> Could you confirm whether the pinentry-ncurses dialog issue only happens for
> basket? I've had problems with pinentry-ncurses in the past myself, so this
> may be a bug there rather than with basket.