Subject: bug#42370: python-gssapi fails to build

From: Michael Rohleder <[email-masked]>
Date: Wed, 15 Jul 2020 18:05:25 +0200

Hey guix!

I tried building synapse and python-gssapi fails in some (kerberos?)
tests:

...
test_verify_mic_iov_bad_mic_raises_error (gssapi.tests.test_raw.TestWrapUnwrap) ... ok
test_wrap_size_limit (gssapi.tests.test_raw.TestWrapUnwrap) ... ok

======================================================================
ERROR: test_add_with_impersonate (gssapi.tests.test_high_level.CredsTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/zc5mv2h8b7p3lzd4cx3pcbcn9ix25vk5-python-k5test-0.9.2/lib/python3.8/site-packages/k5test/unit.py", line 28, in ext_test
    func(self, *args, **kwargs)
  File "/tmp/guix-build-python-gssapi-1.6.5.drv-0/gssapi-1.6.5/gssapi/tests/test_high_level.py", line 364, in test_add_with_impersonate
    new_creds = input_creds.add(server_ctx.initiator_name,
  File "/tmp/guix-build-python-gssapi-1.6.5.drv-0/gssapi-1.6.5/gssapi/creds.py", line 378, in add
    res = rcred_s4u.add_cred_impersonate_name(self, impersonator,
  File "gssapi/raw/ext_s4u.pyx", line 199, in gssapi.raw.ext_s4u.add_cred_impersonate_name
gssapi.raw.misc.GSSError: Major (851968): Unspecified GSS failure.  Minor code may provide more information, Minor (2529638928): KDC has no support for padata type

======================================================================
ERROR: test_acquire_creds_impersonate_name (gssapi.tests.test_raw.TestBaseUtilities)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/zc5mv2h8b7p3lzd4cx3pcbcn9ix25vk5-python-k5test-0.9.2/lib/python3.8/site-packages/k5test/unit.py", line 28, in ext_test
    func(self, *args, **kwargs)
  File "/tmp/guix-build-python-gssapi-1.6.5.drv-0/gssapi-1.6.5/gssapi/tests/test_raw.py", line 421, in test_acquire_creds_impersonate_name
    imp_resp = gb.acquire_cred_impersonate_name(server_creds,
  File "gssapi/raw/ext_s4u.pyx", line 112, in gssapi.raw.ext_s4u.acquire_cred_impersonate_name
gssapi.raw.misc.GSSError: Major (851968): Unspecified GSS failure.  Minor code may provide more information, Minor (2529638928): KDC has no support for padata type

======================================================================
ERROR: test_add_cred_impersonate_name (gssapi.tests.test_raw.TestBaseUtilities)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/gnu/store/zc5mv2h8b7p3lzd4cx3pcbcn9ix25vk5-python-k5test-0.9.2/lib/python3.8/site-packages/k5test/unit.py", line 28, in ext_test
    func(self, *args, **kwargs)
  File "/tmp/guix-build-python-gssapi-1.6.5.drv-0/gssapi-1.6.5/gssapi/tests/test_raw.py", line 390, in test_add_cred_impersonate_name
    imp_resp = gb.add_cred_impersonate_name(input_creds,
  File "gssapi/raw/ext_s4u.pyx", line 199, in gssapi.raw.ext_s4u.add_cred_impersonate_name
gssapi.raw.misc.GSSError: Major (851968): Unspecified GSS failure.  Minor code may provide more information, Minor (2529638928): KDC has no support for padata type

----------------------------------------------------------------------
Ran 192 tests in 2.094s

FAILED (errors=3, skipped=9)
Test failed: <unittest.runner.TextTestResult run=192 errors=3 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=192 errors=3 failures=0>
command "python" "-c" "import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "test" failed with status 1
builder for `/gnu/store/38kbrahy7qjzwz629vfm62mg6cx95cb1-python-gssapi-1.6.5.drv' failed with exit code 1
build of /gnu/store/38kbrahy7qjzwz629vfm62mg6cx95cb1-python-gssapi-1.6.5.drv failed

-- 
Unsere Träume können wir erst dann verwirklichen, 
wenn wir uns entschließen, daraus zu erwachen.
(Josephine Baker)