Source: gmime
Version: 2.6.7-1
Severity: normal
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

It looks like the gmime source is not being compiled with the
- --enable-smime flag.  This is a new feature of gmime-2.6 that enables
SMIME decryption and signature verification support.

The following test program illustrates the problem:

0$ cat gmime-test-smime.c 
#include <gmime/gmime.h>
#include <gmime/gmime-pkcs7-context.h>

int main() {
    GMimeCryptoContext* cryptoctx;
    g_mime_init (0);
    cryptoctx = g_mime_pkcs7_context_new (NULL);
    if (cryptoctx == NULL)
        return 1;
    else
        return 0;
}
0$ gcc $(pkg-config --cflags --libs gmime-2.6) -o gmime-test-smime{,.c}
0$ ./gmime-test-smime 
1$

I am including a patch to the debian/rules file that should fix the
problem.

Note, the notmuch team would like to have this functionality enabled.

Thanks for maintaining!

jamie.

- -- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (600, 'testing'), (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJPssTHAAoJEO00zqvie6q8GB0P/2aR8/mbdVatfLm4mkHFXRdU
iou6bnUCDRbO3Lcd5DSdlCQXSXktbuMLrd4eJxDJ9AIvIi97gIPARyc6MEL+P46a
GhxkMLVdqESjk2FbeZaXxeSDVO68/Hv447XBCihsPgC5wQIRQWZYLQRkFp9Amj52
btr+w5ge9GdFuk4Wmtizg4wA8nez7QmwvnWCFoQrAvUj880FjOd8IAENe4C8tlH5
RrfVGNDbVvSvIky6YX0xLW3eVR79QKYuhhZQA44M7maBJqvHIBK0V2ns+8ssWPYR
jLTLXrBM83wlkH6ASGPi+FPeJeerfM3wjOwe7pjI+81xGoFlmF/lGE6U4QC9TQ+A
uyvks++z5hNOofU7CrFqZQHrL3Wu0Ygla8kLGOws/mA4R/QoCBoz9PK5TH6q73rK
eeKmOYhy5EplTSDBCd7sscY8b9nWUYMGKiY5VO0fwdgGIUE4o8jxrrUozBe73KPj
Y1OltCGrfx+2VPE5MojdvLA+Ms9V2h+eFcvJLZclRNmIx/P8CR5bSUkvwCuYTnxo
tBrnRzoLR3BT7ry0ZV5Pmy8M24EnBzIoqRzB8kXwQd0Txe2LbGCfr0+UNvgXZ/ai
XyaChdZFoOZIj/IAwu3p/i39ZdkFgUD75vPlK72V0KyTRKuiHeae/5uH6as88yHJ
8ZostbQtq3nKOJW4dACX
=EmkU
-----END PGP SIGNATURE-----
--- debian/rules.orig	2012-05-15 13:59:52.412062050 -0700
+++ debian/rules	2012-05-15 13:59:44.864013139 -0700
@@ -31,6 +31,7 @@
 		--enable-gtk-doc \
 		--disable-rpath \
 		--enable-largefile \
+		--enable-smime \
 		$(CONFIGURE_FLAGS)
 
 override_dh_auto_build: 

Reply via email to