URL:
https://github.com/SSSD/sssd/pull/5636
Title: #5636: Improve assertion when verifying paths for Python modules
sergiodj commented:
"""
Thanks for the reply, @elkoniu.
Here's how the paths are evaluated:
```
realpath(pyhbac.__file__) = /tmp/sssd/build/.libs/_py3hbac.so
realpath(MODPATH + /pyhbac.so) = /tmp/sssd/build/.libs/_py3hbac.so
```
You can also check that, without the patch, the paths are evaluated as:
```
'/<<PKGBUILDDIR>>/build/./tp_pyhbac_xw2omut2/pyhbac.so'
'./tp_pyhbac_xw2omut2/pyhbac.so'
```
Where `<<PKGBUILDDIR>>` is just a mnemonic for some temporary path that
`sbuild` uses. They are the same path, but the second one is relative.
Thanks.
"""
See the full comment at
https://github.com/SSSD/sssd/pull/5636#issuecomment-843595627