Bug 798175

Summary: gpg2 (GnuPG) doesn't support BZIP2 compression
Product: [openSUSE] openSUSE Tumbleweed Reporter: Kyrill Detinov <lazy.kent>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: 13.1 Milestone 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Kyrill Detinov 2013-01-11 20:50:04 UTC
gpg2 (GnuPG) doesn't support BZIP2 compression algorithm.

~/.gnupg/gpg.conf:
...
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB ZIP BZIP2 Uncompressed

% gpg --version              
gpg (GnuPG) 2.0.19
libgcrypt 1.5.0
Copyright (C) 2012 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, ELG
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, 
        CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB

% gpg --list-keys local       
gpg: enabled debug flags: memstat
gpg: invalid item `BZIP2' in preference string
gpg: invalid default preferences
random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
              outmix=0 getlvl1=0/0 getlvl2=0/0
secmem usage: 0/32768 bytes in 0 blocks
[1]    4492 exit 2     gpg --list-keys local

BZIP2 algorithm described in RFC4880
http://tools.ietf.org/html/rfc4880#section-9.3


From build log:
...
[   78s] checking for zlib.h... yes
[   78s] checking for deflateInit2_ in -lz... yes
[   78s] checking for bzlib.h... no

So we need to add libbz2-devel to buildrequires.

Fixed package:
https://build.opensuse.org/package/show?package=gpg2&project=home%3ALazy_Kent%3Abranches%3ABase%3ASystem

I've tested and it works as expected.

% gpg --version
gpg (GnuPG) 2.0.19
libgcrypt 1.5.0
Copyright (C) 2012 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, ELG
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, 
        CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

% gpg --list-keys local
gpg: enabled debug flags: memstat
pub   1024D/37FE4D3A 2003-12-14
uid                  local
sub   2048g/5CA9FDF1 2003-12-14
sub   4096R/AFB5629F 2005-09-14

random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
              outmix=0 getlvl1=0/0 getlvl2=0/0
secmem usage: 0/32768 bytes in 0 blocks
Comment 1 Kyrill Detinov 2013-01-15 18:00:16 UTC
Created submit request 148630 to Base:System.
Comment 2 Bernhard Wiedemann 2013-01-16 09:00:08 UTC
This is an autogenerated message for OBS integration:
This bug (798175) was mentioned in
https://build.opensuse.org/request/show/148677 Factory / gpg2
Comment 3 Kyrill Detinov 2013-01-17 11:16:08 UTC
Fixed.