Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 373733 - [mozilla-overlay] mail-client/thunderbird-5.0 fails to connect to gpg-agent
Summary: [mozilla-overlay] mail-client/thunderbird-5.0 fails to connect to gpg-agent
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 373827 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-01 17:00 UTC by Alex Barker
Modified: 2011-11-11 23:41 UTC (History)
12 users (show)

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


Attachments
my enigdbug.txt, I hope it helps. (enigdbug.txt,2.81 KB, text/plain)
2011-07-03 23:27 UTC, Evan Teran
Details
Proposed fix to enigmail issue. (enigmail_1.2.patch,6.41 KB, patch)
2011-07-24 15:52 UTC, nvinson234
Details | Diff
Highlights the changes made to the original patch. (enigmail_diff.diff,2.11 KB, patch)
2011-07-24 15:53 UTC, nvinson234
Details | Diff
Exchanges ProfD for CurProcD in enigmail.js for thunderbird-6.0 (thunderbird-6.0-search-enigmail-in-installdir.patch,1.07 KB, patch)
2011-08-24 08:58 UTC, Manuel Danisch
Details | Diff
Slightly updated patch for newer thunderbird versions (thunderbird-search-enigmail-in-installdir.patch,1.07 KB, patch)
2011-11-11 11:57 UTC, Manuel Danisch
Details | Diff
Bash script to automatically fetch patch and apply it (patchThunderbird,473 bytes, application/x-sh)
2011-11-11 12:26 UTC, Manuel Danisch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Barker 2011-07-01 17:00:36 UTC
Whenever displaying mails (encrypted or not) thunderbird gives the
following error message:

"Could not start the gpg-agent program which is needed for your GnuPG version 2.0.17." [OK]

Reproducible: Always

Steps to Reproduce:
1. Upgrade to =mail-client/thunderbird-5.0
2. Click on an email
Comment 1 Alex Barker 2011-07-01 18:08:38 UTC
This is maybe related to bug #327099
Comment 2 Jory A. Pratt gentoo-dev 2011-07-02 12:26:16 UTC
emerge --info needs to be on every bug report before, I am not gonna guess what arch and all you are using. Please feel free to reopen with emerge --info
Comment 3 Nils Kneuper 2011-07-02 14:27:22 UTC
I have the same problem over here, so my emerge --info as well as data from emerge -pv thunderbird gnupg should be sufficient, too:

# emerge --info
Portage 2.1.10.3 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r2, 3.0.0-rc5 x86_64)
=================================================================
System uname: Linux-3.0.0-rc5-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.0.3
Timestamp of tree: Sat, 02 Jul 2011 08:00:01 +0000
ccache version 3.1.5 [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2, 3.2
dev-util/ccache:          3.1.5
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo x11 local_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -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/env.d/java/ /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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://gentoo.tiscali.nl/ http://mirror.jamit.de/gentoo/ http://gentoo.mneisen.org/"
LANG="de_DE@euro"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /portage-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 apm bash-completion bzip2 cdinstall cdr cli consolekit cracklib crypt css cups cxx dbus dri dri2 drm dts dvb dvd dvdr dvdread enca encode ffmpeg firefox firefox3 fortran ftp g15 gallium gif gpm gtk iconv icq imagemagick ipv6 java javascript jpeg kde kontact lame lcd libsamplerate lm_sensors mad matroska mmx modules mp3 mpeg mudflap multilib mysql ncurses nls no-seamonkey nocd nptl nptlonly nsplugin ogg openal opengl openmp oscar pam pcre pdf perl plasma png policykit pppd qt3support qt4 quicktime readline recode reiserfs samba scanner sdl session sip smp spell sse sse2 ssl svg sysfs theora threads truetype udev unicode usb userlocales v4l v4l2 vcd videos vorbis wav wmp wxwindows x264 xcomposite xfs xine xml xorg xv xvid xvmc zlib" ALSA_CARDS="emu10k1" 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="braindump flow karbon kexi kpresenter krita tables words" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="g15" LINGUAS="de en" LIRC_DEVICES="devinput" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="r600 radeon fglrx" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



# emerge -pv thunderbird gnupg

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] app-crypt/gnupg-2.0.17-r2  USE="bzip2 nls usb -adns -doc -ldap (-selinux) -smartcard -static" 0 kB
[ebuild   R    ] mail-client/thunderbird-5.0  USE="alsa crashreporter crypt dbus ipc -bindist -custom-optimization -debug -gconf -libnotify -lightning -mozdom -startup-notification -system-sqlite -wifi" LINGUAS="de en -ar -bg -ca -cs -da -en_GB -en_US -es -es_AR -es_ES -et -eu -fi -fr -fy -fy_NL -ga -ga_IE -he -hu -is -it -ja -ko -lt -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ru -si -sk -sl -sq -sv -sv_SE -tr -uk -zh_TW" 0 kB
Comment 4 Jory A. Pratt gentoo-dev 2011-07-03 01:50:19 UTC
*** Bug 373827 has been marked as a duplicate of this bug. ***
Comment 5 Alex Barker 2011-07-03 04:34:16 UTC
Both x86 and x86_64 are effected.


Portage 2.1.10.3 (default/linux/amd64/10.0/desktop, gcc-4.4.5, glibc-2.12.2-r0, 2.6.38-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r6-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.0.2
Timestamp of tree: Sun, 03 Jul 2011 03:15:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.25-r2
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo sunrise local_overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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=native -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"                                             
FFLAGS=""                                                                                                                                                                                                                                             
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://gentoo.mirrors.pair.com/"                                                                                                                                                          
LANG="en_US"                                                                                                                                                                                                                                          
LC_ALL="en_US"                                                                                                                                                                                                                                        
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                                                                                                                                                     
LINGUAS="en_US"                                                                                                                                                                                                                                       
MAKEOPTS="-j10"                                                                                                                                                                                                                                       
PKGDIR="/usr/portage/packages"                                                                                                                                                                                                                        
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac accessibility acl acpi alsa amd64 amr berkdb bitmap-fonts bmp branding bzip2 cairo cdda cddb cdinstall cdr cifs cli consolekit cracklib crypt cups curl custom-cflags custom-optimization cxx dbus divx dri dts dvd dvdr dvdread emboss encode exif fam ffmpeg firefox firefox3 flac flash fortran ftp gdbm gdu gif gnutls gpm gsm gtk gtk2 iconv java java6 jpeg jpg jpg2k kde lame lcms libnotify mad mmx mmx2 mmxext mng modules mozilla mp3 mp4 mpeg mudflap multilib musepack ncurses nfs nls nptl nptlonl nptlonly nsplugin nvidia offensive ogg openal openexr opengl openmp osc pam pango pcre pdf perl png policykit ppds pppd python qt qt3support qt4 quciktime rdp readline samba scanner sdl semantic-desktop session speex spell sse sse2 sse3 sse4 sse41 sse42 ssl ssse3 startup-notification svg sysfs system-sqlite tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vdpau videos vnc vorbis wav x264 xcb xine xml xorg xscreensaver xulrunner xv xvid xvmc zlib" 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="braindump flow karbon kexi kpresenter krita tables words" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="artec_eplus48u" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Evan Teran 2011-07-03 23:27:07 UTC
Created attachment 278997 [details]
my enigdbug.txt, I hope it helps.
Comment 7 Jory A. Pratt gentoo-dev 2011-07-03 23:53:43 UTC
killall gpg-agent && gpg-agent --daemon

run the following and report back ... this is usually caused from the daemon not being restarted after an upgrade.
Comment 8 Fred Krogh 2011-07-04 00:05:41 UTC
A different problem (maybe) here.  In order to emerge thunderbird-5.0 I had to emerge -C enigmail.  I thought maybe I might emerge enigmail after all was done, and when I try to do this, I get


[ebuild  N     ] x11-plugins/enigmail-1.1.2-r3  USE="alsa dbus gnome libnotify -custom-optimization -debug -startup-notification -system-sqlite -wifi" 
[blocks B      ] x11-plugins/enigmail ("x11-plugins/enigmail" is blocking mail-client/thunderbird-5.0)

So at least for me, it appears that thunderbird-5.0 is not compatible with enigmail-1.1.2-r3.
Comment 9 Jory A. Pratt gentoo-dev 2011-07-04 00:53:11 UTC
(In reply to comment #8)
> A different problem (maybe) here.  In order to emerge thunderbird-5.0 I had to
> emerge -C enigmail.  I thought maybe I might emerge enigmail after all was
> done, and when I try to do this, I get
> 
> 
> [ebuild  N     ] x11-plugins/enigmail-1.1.2-r3  USE="alsa dbus gnome libnotify
> -custom-optimization -debug -startup-notification -system-sqlite -wifi" 
> [blocks B      ] x11-plugins/enigmail ("x11-plugins/enigmail" is blocking
> mail-client/thunderbird-5.0)
> 
> So at least for me, it appears that thunderbird-5.0 is not compatible with
> enigmail-1.1.2-r3.

This is the correct behavior, enigmail has been merged back into tb-5.0 just enable crypt useflag on enigmail and you are done.
Comment 10 Fred Krogh 2011-07-04 01:11:23 UTC
Sounded simple, but it seems that my enigmail does know about crypt.  I get this:

[ebuild  N     ] x11-plugins/enigmail-1.1.2-r3  USE="alsa dbus gnome libnotify -custom-optimization -debug -startup-notification -system-sqlite -wifi" 0 kB
[blocks B      ] x11-plugins/enigmail ("x11-plugins/enigmail" is blocking mail-client/thunderbird-5.0)
Comment 11 Jory A. Pratt gentoo-dev 2011-07-04 01:38:58 UTC
(In reply to comment #10)
> Sounded simple, but it seems that my enigmail does know about crypt.  I get
> this:
> 
> [ebuild  N     ] x11-plugins/enigmail-1.1.2-r3  USE="alsa dbus gnome libnotify
> -custom-optimization -debug -startup-notification -system-sqlite -wifi" 0 kB
> [blocks B      ] x11-plugins/enigmail ("x11-plugins/enigmail" is blocking
> mail-client/thunderbird-5.0)

sorry meant thunderbird.
Comment 12 Evan Teran 2011-07-04 02:56:33 UTC
Re: Comment #7, gpg-agent wasn't running.

$ killall gpg-agent && gpg-agent --daemon
gpg-agent: no process found

If I manually start it with just:


$ gpg-agent --daemon
GPG_AGENT_INFO=/tmp/gpg-25yndI/S.gpg-agent:25438:1; export GPG_AGENT_INFO;


I still get the 2 messages in thunderbird:

"Could not start the gpg-agent program which is needed for your GnuPG version 2.0.17"

"Enigmail: Error in accessing Enigmail service

To permanently avoid this alert, either fix the problem or uninstall Enigmail. Click on the Help button for more details."
Comment 13 Florian Faber 2011-07-04 12:30:07 UTC
By default pgp-connect-agent and gpg-agent seem to use different socket paths:

$ strace gpg-connect-agent -vv
...
connect(3, {sa_family=AF_FILE, path="/home/<user>/.gnupg/S.gpg-agent"}, 35) = -1 ENOENT (No such file or directory)
...

$ gpg-agent --debug-all --daemon
gpg-agent[19773]: reading options from `/home/<user>/.gnupg/gpg-agent.conf'
gpg-agent[19773]: enabled debug flags: command mpi crypto memory cache memstat hashing assuan
gpg-agent[19773]: listening on socket `/tmp/gpg-GUT0s8/S.gpg-agent'
GPG_AGENT_INFO=/tmp/gpg-GUT0s8/S.gpg-agent:19774:1; export GPG_AGENT_INFO;


If that's the case, add the option "use-standard-socket" to your ~/.gnupg/gpg-agent.conf or run gpg-agent with --use-standard-socket.
Comment 14 Fred Krogh 2011-07-04 13:49:51 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > Sounded simple, but it seems that my enigmail does know about crypt.  I get
> > this:
> > 
> > [ebuild  N     ] x11-plugins/enigmail-1.1.2-r3  USE="alsa dbus gnome libnotify
> > -custom-optimization -debug -startup-notification -system-sqlite -wifi" 0 kB
> > [blocks B      ] x11-plugins/enigmail ("x11-plugins/enigmail" is blocking
> > mail-client/thunderbird-5.0)
> 
> sorry meant thunderbird.

I have re-emerged thunderbird with the crypt use flag, and enigmail still fails with the same message.
Comment 15 .:deadhead:. 2011-07-04 14:52:41 UTC
(In reply to comment #13)
> If that's the case, add the option "use-standard-socket" to your
> ~/.gnupg/gpg-agent.conf or run gpg-agent with --use-standard-socket.

Dude, you solved the problem!

gpg-agent have to be started with use-standard-socket option to fix the problems.

here's my syster:

Portage 2.1.10.4 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.12.2-r0, 2.6.38-gentoo-r6-joan x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r6-joan-x86_64-Pentium-R-_Dual-Core_CPU_T4300_@_2.10GHz-with-gentoo-2.0.2
Timestamp of tree: Mon, 04 Jul 2011 12:15:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.25-r2
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories:

gentoo
    location: /usr/portage
    sync: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

ogo-lu_zero
    location: /var/lib/layman/lu_zero
    masters: gentoo
    priority: 0

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 1

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 2

ABI="amd64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
ACCEPT_PROPERTIES="*"
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="authz_host dir mime log_config alias rewrite autoindex auth_basic authn_file authz_user status info proxy"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words"
CAMERAS="ptp2 directory"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/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/terminfo"
CVS_RSH="ssh"
CXXFLAGS="-march=native -O2 -pipe"
DEFAULT_ABI="amd64"
DISPLAY=":0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="-Dtv --with-bdeps y"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans"
FETCHCOMMAND="/usr/bin/curl -L --retry 5 -o ${DISTDIR}/${FILE} ${URI}"
FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec sftp -P \${port} \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}""
FFLAGS=""
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://distfiles.gentoo.org"
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"
GSETTINGS_BACKEND="gconf"
HG="/usr/bin/hg"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.5/info"
INPUT_DEVICES="synaptics evdev"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
LANG="it_IT.UTF-8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_COLLATE="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_s390="lib32"
LIBDIR_s390x="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LIBGL_DRIVERS_PATH="/usr/lib64/dri:/usr/lib32/dri"
LINGUAS="it"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAKEOPTS="-j3"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.5/man:/etc/java-config/system-vm/man/:/usr/lib64/php5.3/man/"
MM_CHARSET="UTF-8"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OPENGL_PROFILE="ati"
PAGER="/usr/bin/most"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.5"
PHP_TARGETS="php5-3"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc sparc64-freebsd ppc-openbsd x86-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd x86-cygwin amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="-1"
PORTAGE_SANDBOX_COMPAT_LEVEL="16"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/home"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/lu_zero /var/lib/layman/sunrise /usr/local/portage"
PRELINK_PATH_MASK="/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
QEMU_SOFTMMU_TARGETS="i386 x86_64"
QEMU_USER_TARGETS="i386 x86_64"
QT_PLUGIN_PATH="/usr/lib64/kde4/plugins"
RESUMECOMMAND="/usr/bin/curl -L -C - --retry 5 -o ${DISTDIR}/${FILE} ${URI}"
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.5"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby18"
SHELL="/bin/bash"
SHLVL="1"
STAGE1_USE="multilib nptl nptlonly unicode"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="xterm"
TMP="/tmp/.private/root"
TMPDIR="/tmp/.private/root"
USE="64bit 7zip X a52 aac acl acpi alsa amd64 asf audiofile bash-completion bzip2 cairo cdda cddb cdparanoia cdr cli consolekit cracklib css cups curl curlwrappers dbus djvu dri dts dv dvd dvdr dvdread encode exif faac faad fam ffmpeg firefox flac foomaticdb ftp geoip gif gpm gs hunspell iconv idn imagemagick imap inotify ithreads jabber java jbig jpeg jpeg2k kde lcms libsamplerate live logitech-mouse lzma mad maildir matroska midi mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib musepack ncurses network network-cron nls nocxx nptl nptlonly nsplugin ogg openexr opengl oscar pam pcre pdf php plotutils png policykit posix pppd qt3support qt4 quicktime rar readline samba sdl semantic-desktop session smp sndfile speex sse sse2 sse3 ssl ssse3 startup-notification svg sysfs system-sqlite taglib theora threads tiff truetype udev unicode urandom usb utempter vcd vhosts vorbis vpx wavpack webdav wicd wma wmf x264 xcb xine xorg xpm xulrunner xv xvid zlib" 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="authz_host dir mime log_config alias rewrite autoindex auth_basic authn_file authz_user status info proxy" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2 directory" 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="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx radeon" 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" 
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CROSSCOMPILE_OPTS DRACUT_MODULES DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL OFED_DRIVERS PHP_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d"
VBOX_APP_HOME="/opt/VirtualBox"
VIDEO_CARDS="fglrx radeon"
XAUTHORITY="/root/.xauthhAPXfG"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
XSESSION="KDE4"
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"
_="/usr/bin/emerge"

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R   ~] mail-client/thunderbird-5.0  USE="alsa crashreporter crypt dbus ipc lightning startup-notification system-sqlite -bindist -custom-optimization -debug -gconf -libnotify -mozdom -wifi" LINGUAS="it -ar -bg -ca -cs -da -de -en -en_GB -en_US -es -es_AR -es_ES -et -eu -fi -fr -fy -fy_NL -ga -ga_IE -he -hu -is -ja -ko -lt -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ru -si -sk -sl -sq -sv -sv_SE -tr -uk -zh_TW" 0 kB                                                                                            
[ebuild   R   ~]  app-crypt/gnupg-2.0.17-r3  USE="bzip2 nls -adns -doc -ldap (-selinux) -smartcard -static -usb" 0 kB
Comment 16 Alex Barker 2011-07-04 19:28:24 UTC
Setting up the gpg-agent by following this guide stops the dialogs. 

http://www.gentoo.org/doc/en/gnupg-user.xml#doc_chap4

cat ~/.gnupg/gpg-agent.conf 
pinentry-program /usr/bin/pinentry-qt4
no-grab
default-cache-ttl 1800
use-standard-socket


cat ~/.kde4/Autostart/gpg-agent.sh 
#!/bin/sh

eval "$(gpg-agent --daemon)"
Comment 17 Alex Barker 2011-07-04 19:32:36 UTC
> cat ~/.kde4/Autostart/gpg-agent.sh 
> #!/bin/sh
> 
> eval "$(gpg-agent --daemon)"


Shouldn't /usr/lib64/thunderbird/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\}/wrappers/gpg-agent-wrapper.sh be taking care of the gpg-agent start?  Just a thought.
Comment 18 Stoian Ivanov 2011-07-05 10:08:10 UTC
Same here it complains of not finding GnuPG bit it is installed manually pointing it to /usr/bin/gpg or /usr/bin/gpg2 does not help at all .. going to -crypt as this is annoying!
Comment 19 Andrew Walker 2011-07-05 21:06:01 UTC
I think this is the same bug as I get a blocking error with enigmail with thunderbird 5

[ebuild  N     ] x11-plugins/enigmail-1.1.2-r3  USE="alsa dbus gnome -custom-cflags -custom-optimization -debug -libnotify -startup-notification -system-sqlite -wifi" 
[blocks B      ] x11-plugins/enigmail ("x11-plugins/enigmail" is blocking mail-client/thunderbird-5.0)
Comment 20 Alex Barker 2011-07-06 03:04:30 UTC
(In reply to comment #19)
> I think this is the same bug as I get a blocking error with enigmail with
> thunderbird 5
> 
> [ebuild  N     ] x11-plugins/enigmail-1.1.2-r3  USE="alsa dbus gnome
> -custom-cflags -custom-optimization -debug -libnotify -startup-notification
> -system-sqlite -wifi" 
> [blocks B      ] x11-plugins/enigmail ("x11-plugins/enigmail" is blocking
> mail-client/thunderbird-5.0)

pretty sure its not the blocker that is the problem.  IIRC enigmail has been rolled into thunderbird 5.  It appears that some patch that was previously applied to enigmail was not applied to thunderbird 5.
Comment 21 Nathan Zachary (RETIRED) gentoo-dev 2011-07-06 16:31:43 UTC
According to http://enigmail.mozdev.org/news/index.php.html#v12, Thunderbird 5.0 requires >=enigmail-1.2.
Comment 22 ixuz 2011-07-07 09:01:20 UTC
(In reply to comment #13)
> By default pgp-connect-agent and gpg-agent seem to use different socket paths:
> 
> $ strace gpg-connect-agent -vv
> ...
> connect(3, {sa_family=AF_FILE, path="/home/<user>/.gnupg/S.gpg-agent"}, 35) =
> -1 ENOENT (No such file or directory)
> ...
> 
> $ gpg-agent --debug-all --daemon
> gpg-agent[19773]: reading options from `/home/<user>/.gnupg/gpg-agent.conf'
> gpg-agent[19773]: enabled debug flags: command mpi crypto memory cache memstat
> hashing assuan
> gpg-agent[19773]: listening on socket `/tmp/gpg-GUT0s8/S.gpg-agent'
> GPG_AGENT_INFO=/tmp/gpg-GUT0s8/S.gpg-agent:19774:1; export GPG_AGENT_INFO;
> 
> 
> If that's the case, add the option "use-standard-socket" to your
> ~/.gnupg/gpg-agent.conf or run gpg-agent with --use-standard-socket.

Same problem here.

Starting gpg with

# gpg-agent --use-standard-socket --daemon

before starting Thunderbird 5 helped me out.
Comment 23 Manuel Danisch 2011-07-07 14:26:36 UTC
Starting gpg-agent manually works, because enigmail.js detects and uses the already running agent. I did some debugging, why enigmail does not autostart gpg-agent any more.
I started my search with the /usr/lib64/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/wrappers/gpg-agent-wrapper.sh script. Some echos revealed that this script is not executed at all from enigmail.
So I continued my search for the bug in /usr/lib64/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigmail.js. I inserted a lot of additional debug prints and enabled debugging, which led me to the exact failure point: in enigmail.js, the command at lines 1455-1457 (var installLoc = Components.classes.....) throws an exception. This code part is only executed when no running gpg-agent was found. It searches for the wrapper script and tries to execute it, but this point is never reached, because the above mentioned command to retrieve the installation directory of enigmail throws an exception, so the wrapper script cannot be found, and of course if the wrapper is not found it cannot be executed. Unfortunately, my JavaScript knowledge is too limited to further debug the problem, but I hope this can help somebody else to quickly fix this error.
Comment 24 Manuel Danisch 2011-07-10 14:54:38 UTC
It seems Gentoo is hitting this upstream bug: https://www.mozdev.org/bugs/show_bug.cgi?id=24153

The bug is already closed, a fix is in cvs: http://www.mozdev.org/source/browse/enigmail/src/package/enigmail.js (Revision 1.300.2.1, http://www.mozdev.org/source/browse/~checkout~/enigmail/src/package/enigmail.js?rev=1.300.2.1;content-type=application%2Fjavascript).

Unfortunately, this fix does not work for Gentoo. I tried the new enigmail.js, the problem still exists. The new code does not work for Gentoo, because "directoryService.get("ProfD", Components.interfaces.nsIFile);" returns the profile directory in the user's home. So it searches only there for enigmail, but in Gentoo, enigmail is installed system-wide. To fix this, nsIExtensionManager has to be replaced by the new AddonManager, but AddonManager is executed asynchronously, so there are more code corrections necessary. Perhaps it would be best, if somebody would re-open the upstream bug and let them fix it?
Comment 25 nvinson234 2011-07-24 15:52:07 UTC
Created attachment 280843 [details, diff]
Proposed fix to enigmail issue.

This is a modified version of the diff provided by Martin Mokrejš (comment 5) in bug 374549 which should fix the gpg-agent issue.  It does for me at least.
Comment 26 nvinson234 2011-07-24 15:53:25 UTC
Created attachment 280845 [details, diff]
Highlights the changes made to the original patch.

This file is a diff of my changes and the original diff.  I am uploading it to highlight the changes I made to the original diff.
Comment 27 Manuel Danisch 2011-08-24 08:56:53 UTC
In thunderbird-6.0, enigmail was updated to 1.3, which contains the official fix. As already said, this fix does not work on gentoo because it searches the user's profile dir for enigmail. Unfortunately the proposed patch is for enigmail-1.2, which does not apply any more. Using "resource:app" does not seem to work any more either. So I exchanged ProfD for CurProcD in enigmail.js, which works here on my system with thunderbird-6.0.
Comment 28 Manuel Danisch 2011-08-24 08:58:49 UTC
Created attachment 284445 [details, diff]
Exchanges ProfD for CurProcD in enigmail.js for thunderbird-6.0
Comment 29 Alexey Korepanov 2011-09-20 18:06:23 UTC
Hello. I have this issue with thunderbird-6.0, and I didn't fully understand how to fix this on my machine... The issue appears when just clicking on any email, it is very annoying.

Which exactly enigmail.js has to be modified? (I mean exchange ProfD for CurProcD)

Is there anything I could do about this bug?

Why is it still unconfirmed?
Comment 30 Manuel Danisch 2011-09-20 18:15:04 UTC
(In reply to comment #29)
> Hello. I have this issue with thunderbird-6.0, and I didn't fully understand
> how to fix this on my machine... The issue appears when just clicking on any
> email, it is very annoying.
> 
> Which exactly enigmail.js has to be modified? (I mean exchange ProfD for
> CurProcD)
> 
> Is there anything I could do about this bug?
> 
> Why is it still unconfirmed?

Hi Alexey,

the file to modify is /usr/lib64/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigmail.js (on an amd64 system, for 32Bit use /usr/lib/...).

Why this bug is still unconfirmed after 2.5 months I can't understand either.
Comment 31 Alexey Korepanov 2011-09-20 18:21:46 UTC
Thanks. That magically helped.
Comment 32 Egor Y. Egorov 2011-11-02 06:26:49 UTC
This bug is present in mail-client/thunderbird-7.0.1-r1::gentoo
Path https://bugs.gentoo.org/attachment.cgi?id=284445 solve the problem in my case. Please, fix this in main tree. Thanks.
Comment 33 Nikolay Antonov 2011-11-06 18:23:47 UTC
Patch "Exchanges ProfD for CurProcD in enigmail.js for thunderbird-6.0" works well for me! (mail-client/thunderbird-7.0.1-r1 from mozilla overlay)
Please, fix this in main tree  - it terrible annoying bug!
Comment 34 Manuel Danisch 2011-11-11 11:57:41 UTC
Created attachment 292191 [details, diff]
Slightly updated patch for newer thunderbird versions

I changed the line numbers to get rid of the offset message when applying the patch to thunderbird 7 and 8.
Comment 35 Manuel Danisch 2011-11-11 12:26:51 UTC
Created attachment 292193 [details]
Bash script to automatically fetch patch and apply it

As I really hate patching every thunderbird installation on all my computers by hand (which includes copying the patch on every PC), I wrote this small bash script which downloads the current patch I uploaded before (292191) and applies it to the thunderbird installation. Simply run patchThunderbird as root, everything else should run automatically. /usr/lib should be present on x86 as well as amd64 systems (as a symlink to /usr/lib64), so this script should work on both x86 as well as amd64. As all my systems run amd64, I only have tested it on them with a freshly installed thunderbird-8, and it worked on all of them.
Comment 36 Jory A. Pratt gentoo-dev 2011-11-11 12:38:07 UTC
(In reply to comment #35)
> Created attachment 292193 [details]
> Bash script to automatically fetch patch and apply it
> 
> As I really hate patching every thunderbird installation on all my computers by
> hand (which includes copying the patch on every PC), I wrote this small bash
> script which downloads the current patch I uploaded before (292191) and applies
> it to the thunderbird installation. Simply run patchThunderbird as root,
> everything else should run automatically. /usr/lib should be present on x86 as
> well as amd64 systems (as a symlink to /usr/lib64), so this script should work
> on both x86 as well as amd64. As all my systems run amd64, I only have tested
> it on them with a freshly installed thunderbird-8, and it worked on all of
> them.

Dirting the enviroment is not the proper solution, I am testing the patch via the ebuild right now and will commit it to the tree as long as it does not break anything on my system.
Comment 37 Manuel Danisch 2011-11-11 12:56:04 UTC
> Dirting the enviroment is not the proper solution

I totally agree with that. But as there was no one caring about this VERY ANNOYING problem in the last four months and keeping a local overlay ebuild in sync with the official ebuild is far more work intensive, I had to come up with a better temporary solution ;)

I'm glad to hear that this will be fixed in the official tree soon :)
Comment 38 Jory A. Pratt gentoo-dev 2011-11-11 13:46:19 UTC
(In reply to comment #37)
> > Dirting the enviroment is not the proper solution
> 
> I totally agree with that. But as there was no one caring about this VERY
> ANNOYING problem in the last four months and keeping a local overlay ebuild in
> sync with the official ebuild is far more work intensive, I had to come up with
> a better temporary solution ;)
> 
> I'm glad to hear that this will be fixed in the official tree soon :)

It is fixed in the overlay, better solution is to add the patch to /etc/portage/patches/mail-client/thunderbird and have the ebuild apply it on a system. Support for epatch_user has been in place for a long time. If I can get a couple reports within next 8 hours I will get it commited in portage tree as well.
Comment 39 Manuel Danisch 2011-11-11 17:45:05 UTC
> It is fixed in the overlay, better solution is to add the patch to
> /etc/portage/patches/mail-client/thunderbird and have the ebuild apply it on a
> system. Support for epatch_user has been in place for a long time. If I can get
> a couple reports within next 8 hours I will get it commited in portage tree as
> well.

WOW... I did not know that something like that is possible with portage. I always fiddled around with ebuild copies in my own overlay. Thanks for pointing this out.

I changed the path entries in my patch to reflect the directory structure in /var/tmp/portage/mail-client/thunderbird, copied it to /etc/portage/patches/mail-client/thunderbird and remerged thunderbird. It produces correct results on my machines.
Comment 40 Jory A. Pratt gentoo-dev 2011-11-11 23:41:47 UTC
Fixed in tb-8, I did not revision bump so you will need to reinstall if you are effected.