[Python-modules-team] Bug#901672: python-pygit2: FTBFS on i386: error: struct git_time: wrong total size (cdef says 12, but C compiler says 16)

Andreas Beckmann anbe at debian.org
Sat Jun 16 16:21:12 BST 2018


Source: python-pygit2
Version: 0.27.0-1
Severity: serious
Justification: fails to build from source (but built successfully in the past)

Hi,

python-pygit2/experimental FTBFS on i386 which is a regression compared
to sid:
https://buildd.debian.org/status/fetch.php?pkg=python-pygit2&arch=i386&ver=0.27.0-1&stamp=1527351321&raw=0

======================================================================
ERROR: test_blame_for_line (test.test_blame.BlameTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_blame.py", line 94, in test_blame_for_line
    self.assertEqualSignature(HUNKS[i][2], hunk.final_committer)
  File "pygit2/blame.py", line 73, in final_committer
    return wrap_signature(self._hunk.final_signature)
  File "pygit2/blame.py", line 43, in wrap_signature
    csig.when.time, csig.when.offset, 'utf-8')
error: struct git_time: wrong total size (cdef says 12, but C compiler says 16). fix it or use "...;" in the cdef for struct git_time to make it flexible

======================================================================
ERROR: test_blame_index (test.test_blame.BlameTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_blame.py", line 67, in test_blame_index
    self.assertEqualSignature(HUNKS[i][2], hunk.final_committer)
  File "pygit2/blame.py", line 73, in final_committer
    return wrap_signature(self._hunk.final_signature)
  File "pygit2/blame.py", line 43, in wrap_signature
    csig.when.time, csig.when.offset, 'utf-8')
error: struct git_time: wrong total size (cdef says 12, but C compiler says 16). fix it or use "...;" in the cdef for struct git_time to make it flexible

======================================================================
ERROR: test_blame_newest (test.test_blame.BlameTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_blame.py", line 131, in test_blame_newest
    self.assertEqualSignature(HUNKS[i][2], hunk.final_committer)
  File "pygit2/blame.py", line 73, in final_committer
    return wrap_signature(self._hunk.final_signature)
  File "pygit2/blame.py", line 43, in wrap_signature
    csig.when.time, csig.when.offset, 'utf-8')
error: struct git_time: wrong total size (cdef says 12, but C compiler says 16). fix it or use "...;" in the cdef for struct git_time to make it flexible

----------------------------------------------------------------------
Ran 347 tests in 7.533s

FAILED (errors=3, skipped=10)


Andreas



More information about the Python-modules-team mailing list