Package: chntpw
Version: 0.99.6-2
Severity: important
Tags: patch

Hi Javier,
I've tried to rebuild chntpw for Univention Corporate Server, a Debian derived 
distribution based on Debian stable (currently Lenny, our next release will be 
based on Squeeze).

I spotted the following bug: chntpw declares a build dep on  libgcrypt11-dev | 
libssl-dev

This works fine if libgcrypt11-dev is installed, but if only libssl-dev is
present chntpw fails to build from source:

/usr/bin/make CFLAGS="-DUSELIBGCRYPT -Wall -O2"
make[1]: Entering directory `/home/jmm/chntpw-0.99.6'
gcc -c -DUSELIBGCRYPT -Wall -O2 chntpw.c
chntpw.c:72:22: error: gcrypt.h: Datei oder Verzeichnis nicht gefunden
chntpw.c: In function ‘E1’:
chntpw.c:208: error: ‘gcry_cipher_hd_t’ undeclared (first use in this function)
chntpw.c:208: error: (Each undeclared identifier is reported only once
chntpw.c:208: error: for each function it appears in.)
chntpw.c:208: error: expected ‘;’ before ‘ks’
chntpw.c:211: warning: implicit declaration of function ‘gcry_cipher_open’
chntpw.c:211: error: ‘ks’ undeclared (first use in this function)
chntpw.c:211: error: ‘GCRY_CIPHER_DES’ undeclared (first use in this function)
chntpw.c:211: error: ‘GCRY_CIPHER_MODE_ECB’ undeclared (first use in this 
function)
chntpw.c:212: warning: implicit declaration of function ‘gcry_cipher_setkey’
chntpw.c:213: warning: implicit declaration of function ‘gcry_cipher_encrypt’
chntpw.c:214: warning: implicit declaration of function ‘gcry_cipher_close’
chntpw.c: In function ‘change_pw’:
chntpw.c:529: error: ‘gcry_cipher_hd_t’ undeclared (first use in this function)
chntpw.c:529: error: expected ‘;’ before ‘ks1’
chntpw.c:533: error: ‘gcry_md_hd_t’ undeclared (first use in this function)
chntpw.c:533: error: expected ‘;’ before ‘context’
chntpw.c:668: error: ‘ks1’ undeclared (first use in this function)
chntpw.c:668: error: ‘GCRY_CIPHER_DES’ undeclared (first use in this function)
chntpw.c:668: error: ‘GCRY_CIPHER_MODE_ECB’ undeclared (first use in this 
function)
chntpw.c:669: error: ‘ks2’ undeclared (first use in this function)
chntpw.c:678: warning: implicit declaration of function ‘gcry_cipher_decrypt’
chntpw.c:745: warning: implicit declaration of function ‘gcry_md_open’
chntpw.c:745: error: ‘context’ undeclared (first use in this function)
chntpw.c:745: error: ‘GCRY_MD_MD4’ undeclared (first use in this function)
chntpw.c:746: warning: implicit declaration of function ‘gcry_md_write’
chntpw.c:747: warning: implicit declaration of function ‘gcry_md_read’
chntpw.c:748: warning: implicit declaration of function ‘gcry_md_get_algo_dlen’
chntpw.c:749: warning: implicit declaration of function ‘gcry_md_close’
make[1]: *** [chntpw.o] Fehler 1
make[1]: Leaving directory `/home/jmm/chntpw-0.99.6'

Attached patch changes the build-dep to only depend on libgcrypt11-dev.

Cheers,
        Moritz
diff -aur chntpw-0.99.6.orig//debian/control chntpw-0.99.6/debian/control
--- chntpw-0.99.6.orig//debian/control	2011-04-02 13:36:01.000000000 +0200
+++ chntpw-0.99.6/debian/control	2011-04-02 13:38:24.000000000 +0200
@@ -2,7 +2,7 @@
 Section: admin
 Priority: optional
 Maintainer: Javier Fernandez-Sanguino Pen~a <j...@debian.org>
-Build-Depends: debhelper (>> 3.0.0), libgcrypt11-dev | libssl-dev, sharutils, quilt
+Build-Depends: debhelper (>> 3.0.0), libgcrypt11-dev, sharutils, quilt
 Standards-Version: 3.8.4
 Homepage: http://pogostick.net/~pnh/ntpasswd/
 
Nur in chntpw-0.99.6/debian: control~.

Reply via email to