Opened 9 years ago

Closed 9 years ago

#6479 closed defect (fixed)

GnuPG 2.1.3 and 4: openpgp tests might fail.

Reported by: Jeremy Henty Owned by: Fernando de Oliveira
Priority: normal Milestone: 7.8
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description (last modified by Fernando de Oliveira)

I am building Gnupg 2.1.3 (the same with version 2.1.4) without openldap. All of the opengpg tests fail with "GNUPGHOME not set to the cwd". I have tried to fix this by setting GNUPGHOME to various plausible values but nothing has worked yet. This happens in LFS 6.8 and LFS 7.3. Is this a reason not to install?

Change History (8)

comment:1 by Fernando de Oliveira, 9 years ago

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.

comment:2 by Fernando de Oliveira, 9 years ago

Jeremy,

Apparently, issues building without LDAP are solved in the new version 2.1.4 (#6492).

I will update the bokk later today, leaving the LDAP part unchanged, and not closing these two tickets.

Please, I would much appreciate if you could test it and tell me about needed modifications for the instructions, e.g. moving back openldap to optional, not needing to disable dirmngr, and, of course, how is the test suite behaviour.

Version 0, edited 9 years ago by Fernando de Oliveira (next)

comment:3 by Fernando de Oliveira, 9 years ago

Owner: changed from blfs-book@… to Fernando de Oliveira
Status: newassigned

comment:4 by Fernando de Oliveira, 9 years ago

Owner: changed from Fernando de Oliveira to blfs-book@…
Status: assignednew

Bruce, I don't know how to close this ticket, without Jeremy's reply.

Was thinking of "overcomebyevents", but it would be good for the book that someone without openldap installed checked if the present instructions in the book are correct.

Notice that the ticket was for 2.1.3, but we are now at GnuPG-2.1.4.

Giving back to the book.

comment:5 by Fernando de Oliveira, 9 years ago

Owner: changed from blfs-book@… to Fernando de Oliveira
Status: newassigned

Jeremy, I could perfectly run the tests without openldap. As I did the tests with version 2.1.4 and the ticket was for 2.1.3, I will close the ticket not as invalid, but overcomebyevents.

comment:6 by Fernando de Oliveira, 9 years ago

Resolution: overcomebyevents
Status: assignedclosed

comment:7 by Fernando de Oliveira, 9 years ago

Resolution: overcomebyevents
Status: closedreopened

comment:8 by Fernando de Oliveira, 9 years ago

Description: modified (diff)
Resolution: fixed
Status: reopenedclosed
Summary: GnuPG 2.1.3: all the openpgp tests fail.GnuPG 2.1.3 and 4: openpgp tests might fail.

Turns out that there is a problem in the opengpg tests, hit if top directory path where the source is unpacked contains symbolic links.

This is what Jeremy found and posted at:

http://lists.linuxfromscratch.org/pipermail/blfs-support/2015-May/076668.html

Thanks, Jeremy.

Fixed at r16013.

Note: See TracTickets for help on using tickets.