#6479: GnuPG 2.1.3: all the openpgp tests fail.
--------------------------+--------------------------
 Reporter:  jeremy_henty  |       Owner:  blfs-book@…
     Type:  defect        |      Status:  new
 Priority:  normal        |   Milestone:  7.8
Component:  BOOK          |     Version:  SVN
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------------

Comment (by fo):

 Jeremy, I cannot reproduce it.

 I do have openldap installed, had the results with ldap, tried with
 --disable-dirmngr, and adding also the second switch --disable-ldap.

 Here, all openpgp checks pass, if I understand correctly (AFAICS,
 first/last test is always version.test/finish.test):

 {{{
 Making check in openpgp
 make[2]: Entering directory '/tmp/gnupg-2.1.3/tests/openpgp'
 make  check-TESTS
 make[3]: Entering directory '/tmp/gnupg-2.1.3/tests/openpgp'
 gpg (GnuPG) 2.1.3
 libgcrypt 1.6.3
 Copyright (C) 2015 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: /tmp/gnupg-2.1.3/tests/openpgp
 Supported algorithms:
 Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
 Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
         CAMELLIA128, CAMELLIA192, CAMELLIA256
 Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
 Compression: Uncompressed, ZIP, ZLIB, BZIP2
 PASS: version.test

 ...

 PASS: import.test
 PASS: ecc.test
 PASS: finish.test
 ===================
 All 30 tests passed
 ===================
 }}}

 GNUPGHOME is defined in three files:

 {{{
 /tmp/gnupg-2.1.3/tests/Makefile.in
 TESTS_ENVIRONMENT = GNUPGHOME=`/bin/pwd` GPG_AGENT_INFO= LC_ALL=C \
 /tmp/gnupg-2.1.3/tests/openpgp/Makefile.in
 TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir) GPG_AGENT_INFO= LC_ALL=C
 /tmp/gnupg-2.1.3/tests/pkits/Makefile.in
 TESTS_ENVIRONMENT = GNUPGHOME=`/bin/pwd` GPG_AGENT_INFO= LC_ALL=C \
 }}}

 Particularly for the opengpg tests:

 {{{
 $ grep -B7 "GNUPGHOME not set to the cwd"
 /tmp/gnupg-2.1.3/tests/openpgp/defs.inc
 # Always work in the current directory.  We set GNUPGHOME only if it
 # has not been set already.  Usually it is set through the Makefile's
 # TESTS_ENVIRONMENT macro.
 if [ -z "$GNUPGHOME" ]; then
   GNUPGHOME=`/bin/pwd`
   export GNUPGHOME
 elif [ "$GNUPGHOME" != `/bin/pwd` ]; then
   echo "$pgmname: GNUPGHOME not set to the cwd" $* >&2
 }}}

 In my system it is not originally set:

 {{{
 $ echo $GNUPGHOME

 }}}

 If GNUPGHOME is set in your environment, I would try unset GNUPGHOME,
 before trying the tests.

 If this solves your problem, I will add that command to the book.

 Sorry if I cannot be more helpful.

--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/6479#comment:1>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to