test suite failures in tofu.scm on 2.1.19

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Mar 15 21:30:14 CET 2017


Hey all--

In trying to build 2.1.19 for debian, i'm seeing a test suite failure in
tofu.scm.

In particular:


0 dkg at alice:~/src/pkg-gnupg/gnupg2/build/tests/openpgp$ LC_ALL=C EXEEXT= PATH=../gpgscm:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/dkg/bin TMP=/tmp srcdir=/home/dkg/src/pkg-gnupg/gnupg2/build/../tests/openpgp objdir=/home/dkg/src/pkg-gnupg/gnupg2/build GPGSCM_PATH=/home/dkg/src/pkg-gnupg/gnupg2/build/../tests/gpgscm:/home/dkg/src/pkg-gnupg/gnupg2/build/../tests/openpgp /home/dkg/src/pkg-gnupg/gnupg2/build/tests/gpgscm/gpgscm  run-tests.scm  version.scm tofu.scm
> PASS: setup.scm 
Printing the GPG version 
PASS: version.scm 
gpgconf: option trust-model not supported by backend GnuPG
gpgconf: fatal error (exit status 1)
: ()
0: tests.scm:140: (throw (:stderr result))
1: defs.scm:146: (call-popen `(,(tool-hardcoded 'gpgconf) , at args) input)
2: defs.scm:177: (gpg-conf' (string-append key ":0:" (percent-encode value')) `(--change-options ,component))
3: tofu.scm:37: ((*colon-hook* 'update trust-model) "tofu")
FAIL: tofu.scm 
2 tests run, 1 succeeded, 1 failed, 0 skipped. 
Failed tests: tofu.scm 
1 dkg at alice:~/src/pkg-gnupg/gnupg2/build/tests/openpgp$


So somehow it looks like the test suite is pulling from the system gpg
instead of the just-built gpg.


Wrapping the whole thing in strace to look at what calls to execve are
being done, i see:

1869  16:02:33.088593 execve("/home/dkg/src/pkg-gnupg/gnupg2/build/tools/gpgconf", ["gpgconf", "--build-prefix", "/home/dkg/src/pkg-gnupg/gnupg2/build", "--list-components"], [/* 54 vars */]) = 0 <0.000836>
1870  16:02:33.110198 execve("/home/dkg/src/pkg-gnupg/gnupg2/build/g10/gpg", ["gpg", "--gpgconf-test", "--always-trust"], [/* 54 vars */] <unfinished ...>
1909  16:02:35.006865 execve("/home/dkg/src/pkg-gnupg/gnupg2/build/tools/gpgconf", ["gpgconf", "--remove-socketdir"], [/* 55 vars */]) = 0 <0.000146>
1914  16:02:35.077300 execve("/home/dkg/src/pkg-gnupg/gnupg2/build/tools/gpgconf", ["gpgconf", "--build-prefix", "/home/dkg/src/pkg-gnupg/gnupg2/build", "--list-components"], [/* 54 vars */]) = 0 <0.000164>
1915  16:02:35.091913 execve("/home/dkg/src/pkg-gnupg/gnupg2/build/g10/gpg", ["gpg", "--gpgconf-test", "--always-trust"], [/* 54 vars */]) = 0 <0.000256>
1916  16:02:35.130254 execve("/home/dkg/src/pkg-gnupg/gnupg2/build/tools/gpgconf", ["gpgconf", "--create-socketdir"], [/* 55 vars */]) = 0 <0.000433>
1925  16:02:36.190134 execve("/home/dkg/src/pkg-gnupg/gnupg2/build/tools/gpgconf", ["gpgconf", "--remove-socketdir"], [/* 55 vars */]) = 0 <0.000334>
1935  16:02:36.286487 execve("/home/dkg/src/pkg-gnupg/gnupg2/build/tools/gpgconf", ["gpgconf", "--build-prefix", "/home/dkg/src/pkg-gnupg/gnupg2/build", "--list-components"], [/* 54 vars */]) = 0 <0.000237>
1936  16:02:36.302993 execve("/home/dkg/src/pkg-gnupg/gnupg2/build/g10/gpg", ["gpg", "--gpgconf-test", "--always-trust"], [/* 54 vars */] <unfinished ...>
1937  16:02:36.383087 execve("/home/dkg/src/pkg-gnupg/gnupg2/build/tools/gpgconf", ["gpgconf", "--create-socketdir"], [/* 55 vars */]) = 0 <0.000508>
1953  16:02:37.453386 execve("/home/dkg/src/pkg-gnupg/gnupg2/build/tools/gpgconf", ["gpgconf", "--change-options", "gpg"], [/* 55 vars */]) = 0 <0.000364>
1954  16:02:37.459441 execve("/usr/bin/gpg", ["gpg", "--gpgconf-list"], [/* 55 vars */]) = 0 <0.000298>
1955  16:02:37.505012 execve("/home/dkg/src/pkg-gnupg/gnupg2/build/tools/gpgconf", ["gpgconf", "--remove-socketdir"], [/* 55 vars */]) = 0 <0.000333>

So the final thing isn't invoking the right gpg, even though the first
ones are.

I'm not sure how to best debug this next.  Any pointers?

    --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: </pipermail/attachments/20170315/3b34d41a/attachment-0001.sig>


More information about the Gnupg-devel mailing list