Hi,

Brendan Tildesley <[email protected]> skribis:

> Building python-pyqtwebengine, it is unable to find the .sip files needed 
> since it only searches one global path:
>
> openat(AT_FDCWD, "QtCore/QtCoremod.sip", O_RDONLY) = -1 ENOENT (No such file 
> or directory)
> openat(AT_FDCWD, 
> "/tmp/guix-build-python-pyqtwebengine-5.15.2.drv-0/PyQtWebEngine-5.15.2/sip/QtWebEngineCore/QtCore/QtCoremod.sip",
>  O_RDONLY) = -1 ENOENT (No such file or directory)
> openat(AT_FDCWD, 
> "/tmp/guix-build-python-pyqtwebengine-5.15.2.drv-0/PyQtWebEngine-5.15.2/sip/QtCore/QtCoremod.sip",
>  O_RDONLY) = -1 ENOENT (No such file or directory)
> openat(AT_FDCWD, 
> "/tmp/guix-build-python-pyqtwebengine-5.15.2.drv-0/PyQtWebEngine-5.15.2/build/bindings/QtCore/QtCoremod.sip",
>  O_RDONLY) = -1 ENOENT (No such file or directory)
> openat(AT_FDCWD, 
> "/lib/python3.8/site-packages/PyQt5/PyQt5/bindings/QtCore/QtCoremod.sip", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> write(2, ".sip-build-real: Unable to find "..., 61.sip-build-real: Unable to 
> find file "QtCore/QtCoremod.sip"

Do you know how Qt (or whatever component is involved) searches for .sip
files?

Most of the time, there’s a “search path” typically associated with an
environment variable that we need to set accordingly (like PYTHONPATH,
GUILE_LOAD_PATH, etc.).

Sometimes, that mechanism doesn’t exist upstream so we end up patching
the software to add it.  This is what was done with OBS for instance,
and that patch is now upstream.

HTH!

Ludo’.

Reply via email to