Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 390163 - app-crypt/gnupg-2.0.17 - gpg complains about invalid item in preference `BZIP2'
Summary: app-crypt/gnupg-2.0.17 - gpg complains about invalid item in preference `BZIP2'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 10:29 UTC by samurai.no.dojo
Modified: 2013-01-12 20:21 UTC (History)
1 user (show)

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 samurai.no.dojo 2011-11-11 10:29:36 UTC
When trying to decrypt email in Thunderbird through enigmail I get this as result:
gpg command line and output:
/usr/bin/gpg2
gpg: invalid item `BZIP2' in preference string
gpg: invalid personal compress preferences

gpg --version:
gpg (GnuPG) 2.0.17
libgcrypt 1.4.6
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, 
        CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB

I tried to rebuild Gpg no luck
bzip2 flag is in my USE since building of system.


Reproducible: Always

Steps to Reproduce:
1.emerge app-crypt/gnupg-2.0.17 mail-client/thunderbird-7.0.1-r1
2.get enigmail for TB 7
3.try to decrypt email with personal preference of compress set to BZIP2
Actual Results:  
enigmail ends decrypting with this:
gpg command line and output:
/usr/bin/gpg2
gpg: invalid item `BZIP2' in preference string
gpg: invalid personal compress preferences

Expected Results:  
decrypted message

#ยท> emerge --info app-crypt/gnupg
Portage 2.1.10.11 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.12.2-r0, 3.0.6-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.6-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 11 Nov 2011 09:15:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
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.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
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.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build --with-bdeps=y --ask --ask-enter-invalid"
FEATURES="assume-digests binpkg-logs candy compress-build-logs distlocks ebuild-locks fail-clean fixlafiles fixpackages news parallel-fetch parallel-install protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.mirror.dkm.cz/pub/gentoo/ http://gentoo.supp.name/ http://gentoo.mneisen.org/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs en_GB en"
MAKEOPTS="-j4"
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="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa amd64 apache2 bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdinstall cdparanoia cdr clamav cli colord consolekit cracklib crypt css cups curl curlwrappers cvs cxx dbus dga directfb djvu dri dts dvd dvdr eds encode examples exif fam ffmpeg firefox flac flatfile foomaticdb fortran ftp gd gdbm gdu geoip gif gimp gnome gnome-keyring gnuplot gnutls gphoto2 gpm gstreamer gtk gzip hddtemp hscolour iconv icq ieee1394 imagemagick ipv6 jabber java javascript jingle joystick jpeg lame latex lcms ldap libcaca libnotify lm_sensors lzma lzo mad matroska mbox mhash mime mmx mng modules mp3 mp4 mpeg mplayer msn mudflap multilib musicbrainz mysql mysqli nautilus ncurses networkmanager nls nocd nptl nptlonly nsplugin nvidia offensive ogg opengl openmp oscar pam pango pcmcia pcre pdf php png policykit ppds pppd pulseaudio qt3support quicktime radius raw rdesktop readline rss sasl scanner sdl session smp socks5 sound source spell sse sse2 ssl startup-notification subversion svg symlink sysfs syslog sysvipc szip taglib tcpd theora tidy tiff timidity truetype udev unicode usb v4l vcd videos vim-syntax vnc vorbis wavpack wifi wxwidgets x264 xattr xcb xface xml xmpp xorg xosd xscreensaver xulrunner xv xvid xvmc 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 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="kexi words flow plan stage tables krita karbon braindump" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en_GB en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

app-crypt/gnupg-2.0.17 was built with the following:
USE="bzip2 ldap (multilib) nls static -adns -caps -doc -openct -pcsc-lite (-selinux) -smartcard"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -static"
Comment 1 samurai.no.dojo 2012-03-22 19:29:53 UTC
to circumvent the proble  (the complaint about invalid item) look in ~/.gnupg/gpg.conf if its set there - > remove it 

but i doesnt solve the problem that BZIP2 is not listed in COMPRESSION section of gpg --version
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2013-01-12 20:21:40 UTC
If you build static you probably won't get many features...
But this was easy to fix, gnupg-2.0.19-r1.

Thanks!