Attempting to sign a mail with mutt gives: Can't open PGP subprocess!: No such file or directory (errno = 2) Using strace and ltrace to find the source of this message shows it coming from the gpgme library. Re-emerging gpgme hasn't helped. Reproducible: Always Steps to Reproduce: 1.Create a mail. 2.Enter p and s to sign it. 3.Hit y to send, enter the passphrase. Actual Results: gpgme fails to fork a copy of gpg Expected Results: gpgme runs gpg which signs the mail Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r4.rivendell x86_64) ================================================================= System uname: 2.6.24-gentoo-r4.rivendell x86_64 Intel(R) Xeon(R) CPU X5482 @ 3.20GHz Timestamp of tree: Sun, 20 Apr 2008 02:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=nocona -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CPPFLAGS="-I/home/andrew/build/include" CXXFLAGS="-O2 -pipe -march=nocona -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ ftp://gentoo.virginmedia.com/sites/gentoo " LINGUAS="en_GB" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" 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="/home/andrew/projects/gnu_andrew_overlay" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bzip2 cairo caps cddb cdparanoia cdr cli cracklib crypt cups cvs dbus djvu dri dts dv dvd dvdr dvdread eds emacs emboss encode evo fam firefox flac fontconfig fortran ftp gcj gdbm gif gnome gnutls gpm graphviz gstreamer gtk hal iconv idn ieee1394 imap ipv6 isdnlog javascript jbig jpeg jpeg2k kde kerberos ladspa latex lcms ldap libcaca libnotify lzo mad mbox midi mikmod mmap mmx mng mp3 mpeg mudflap musepack nas ncurses nis nls nntp nptl nptlonly odbc ogg openexr opengl openmp oss pam pcre pdf perl png postgres pppd python qt3 qt3support qt4 quicktime readline reflection sasl sdl session speex spell spl sse sse2 ssl startup-notification subversion svg tcpd tga theora threads tiff truetype unicode vorbis wmf x264 xattr xft xml xorg xprint xscreensaver xv xvid yahoo 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 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="radeonhd fglrx radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Which gpg version do you use? Which gpgme version do you use? Looking that the strace, which exec fails?
Please include the relevant portions of your mutt config (I use it directly, not via gpgme). set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --no-auto-check-trustdb --batch --output - %f" set pgp_verify_command="gpg --no-verbose --batch --output - --no-auto-check-trustdb --verify %s %f" #set pgp_verify_command="cp %s %f ~" set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f" set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f" set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f" set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --no-verbose --batch --textmode --output - --encrypt --sign %?a?-u %a? --armor -- -r %r -- %f" set pgp_encrypt_only_command="pgpewrap gpg --no-verbose --batch --output - --encrypt --textmode --armor -- -r %r -- %f" set pgp_import_command="gpg --no-verbose --import -v %f" set pgp_export_command="gpg --no-verbose --export --armor %r" set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r" set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r" set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r" #set pgp_getkeys_command="gpg --no-verbose --batch -q --recv-keys %r" set pgp_autosign set pgp_use_gpg_agent set pgp_timeout = 6000 set pgp_sign_as="0x3233C22C!"
app-crypt/gpgme-1.1.6 app-crypt/gnupg-2.0.7-r1 mail-client/mutt-1.5.16 USE="berkdb crypt gdbm gnutls gpgme idn imap mbox nls nntp pop sasl smime smtp ssl" I haven't added anything specified to my mutt config. Given this has a USE flag and no instruction were given, I assumed it would work out of the box as it does on Debian.
I just copied across the following from a Debian machine and it works: # GnuPG configuration set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f" set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmod\ e %?a?-u %a? %f" set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign \ %?a?-u %a? %f" set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor\ --always-trust -- -r %r -- %f" set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --out\ put - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" set pgp_import_command="gpg --no-verbose --import %f" set pgp_export_command="gpg --no-verbose --export --armor %r" set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r" set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --list-keys %r" set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r" set pgp_good_sign="^\\[GNUPG:\\] GOODSIG" Can I suggest we have a better default configuration for Mutt so everyone doesn't have to manually configure GPG support?
No. We provide what upstream provides. gpg.rc is certainly provided by the ebuild. - ferdy