Subject: python-xdo: Fails to build (failing sanity check)
From: Ivan Vilata i Balaguer <[email-masked]>
To: [email-masked]
Date: Tue, 11 Jan 2022 09:48:08 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi!  When trying to upgrade package `python-xdo 0.3` from Guix commit
`404f6953` to that of commit `4a943cfd`, the build fails with this error:

```
phase `check' succeeded after 0.0 seconds
starting phase `sanity-check'
validating 'xdo' /gnu/store/2ad74b3s417prg3smyjk7ckxyksa6838-python-xdo-0.3/lib/python3.9/site-packages
...checking requirements: OK
...trying to load module xdo: ERROR:
Traceback (most recent call last):
  File "/gnu/store/nwwr89v2vyg1hs48i49m083vhczsgh3m-sanity-check.py", line 69, in <module>
    importlib.import_module(name)
  File "/gnu/store/p5fgysbcnnp8b1d91mrvjvababmczga0-python-3.9.6/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/gnu/store/2ad74b3s417prg3smyjk7ckxyksa6838-python-xdo-0.3/lib/python3.9/site-packages/xdo/__init__.py", line 8, in <module>
    from ._xdo import libxdo as _libxdo
  File "/gnu/store/2ad74b3s417prg3smyjk7ckxyksa6838-python-xdo-0.3/lib/python3.9/site-packages/xdo/_xdo.py", line 14, in <module>
    libc = ctypes.CDLL(ctypes.util.find_library('libc'))
  File "/gnu/store/p5fgysbcnnp8b1d91mrvjvababmczga0-python-3.9.6/lib/python3.9/ctypes/util.py", line 330, in find_library
    _get_soname(_findLib_gcc(name)) or _get_soname(_findLib_ld(name))
  File "/gnu/store/p5fgysbcnnp8b1d91mrvjvababmczga0-python-3.9.6/lib/python3.9/ctypes/util.py", line 147, in _findLib_gcc
    if not _is_elf(file):
  File "/gnu/store/p5fgysbcnnp8b1d91mrvjvababmczga0-python-3.9.6/lib/python3.9/ctypes/util.py", line 99, in _is_elf
    with open(filename, 'br') as thefile:
FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a'
error: in phase 'sanity-check': uncaught exception:
%exception #<&invoke-error program: "python" arguments: ("/gnu/store/nwwr89v2vyg1hs48i49m083vhczsgh3m-sanity-check.py" "/gnu/store/2ad74b3s417prg3smyjk7ckxyksa6838-python-xdo-0.3/lib/python3.9/site-packages") exit-status: 1 term-signal: #f stop-signal: #f> 
phase `sanity-check' failed after 0.2 seconds
command "python" "/gnu/store/nwwr89v2vyg1hs48i49m083vhczsgh3m-sanity-check.py" "/gnu/store/2ad74b3s417prg3smyjk7ckxyksa6838-python-xdo-0.3/lib/python3.9/site-packages" failed with status 1
```

Attaching the whole `/var/log/guix/drvs/k6/ndh9y02w2n3f7n98wj0jamfywv3blz-python-xdo-0.3.drv.bz2`.

Thanks, and a happy new year! `:)`

-- 
Ivan Vilata i Balaguer -- https://elvil.net/