Open tttech-industrial-buchsbaum opened 2 years ago
BTW, this also is true for nuc11tnbi5/shared, since it also uses VBDF configurations.
Please use elementpath v2.4.0 instead because v2.5.0 has issues evaluating distinct-values
on a union of node sets.
We also have a requirements.txt under misc/config_tools which includes the version requirements of the Python libraries.
I can confirm that using elementpath 2.4.0 and xmlschema 1.9.2 (as stated in requirements.txt) solves this issue. Nevertheless the need for dedicated versions makes a packaged based build impossible for distributions already using newer version, like Debian Bookworm, Debian Sid and Ubuntu Jammy (which is already released!). They all use xmlschema 1.10.0, which somehow requires elementpath 2.5.0. For yocto based systems this is usually not a problem due to the flexibility of yocto (unless any other package on the system requires e.g. xmlschema >= 1.10.0). Even if we circumvent this problem at build time, we need these packages even when running the python based ACRN tools. This leads to conflicting situations on such distributions (providing the 'older' packages conflict with the distribution versions whit other packages depending on them). IMHO we should never required to pin to exact version but rather request a minimum version. This is the only way we can provide Debian packages with correct dependencies. Do you see any chance to switch to the new versions?
Please use elementpath v2.4.0 instead because v2.5.0 has issues evaluating
distinct-values
on a union of node sets.We also have a requirements.txt under misc/config_tools which includes the version requirements of the Python libraries.
The requirement of elementpath v2.4.0 effectively prevents the use of Ubuntu 22.04 (and later), and will be a problem for future releases of Debian as well. It looks to me like this has to be fixed at some point in the future anyway, so why not fix it now?
A real fix has to go to the elementpath library which fails to evaluate a valid XPATH it formerly can. The only workaround I can make on our side is to catch the exception and warn that some assertions failed to evaluate rather than blocking the build.
That said, I've cooked a patch to work this around at the cost of a slight increase in XML validation time. Building the updated version using elementpath 2.5.0 and xmlschema 1.10.0 works for me. Please verify if it is the case on your side as well. Thanks.
At latest master compilation of hypervisor with whl-ipc-i5/hybrid_rt or cfl-k700-i7/hybrid_rt as board/scenario fails. This came up when installing xmlschema for verification.
Platform Build on a debian-:bullseye docker image with the required packages installed: For elementpath and xmlschema the newest available packages have been repackaged and installed:
All other required packages are taken directly from Debian Bullseye
Codebase This has been observed on latest master, i.e. e748842da0fd642b3d5b2d5af0bc766062ecb78c
Scenario Board: whl-ipc-i5 or cfl-k700-i7, Scenario: hybrid_rt
To Reproduce
Expected behavior Builds without issues
Remark Temporarily reverting 5bd3e964264b9476a5f123b96d62ae3672d2e837 and db1799229336a382c127cd678d5e41f85ee1548f fixes this issue. To continue my work on adding debianization, I will skip compiling hybrid_rt scenarios for know ;-)