openbmc / openbmc-build-scripts

Apache License 2.0
21 stars 52 forks source link

build-unit-test-docker: libxml2 #41

Closed ewalkusx closed 1 month ago

ewalkusx commented 1 month ago

Hi 😀

Can I add

    "GNOME/libxml2": PackageDef(
        rev="v2.13.1",
        build_type="cmake",
    ), 

to build-unit-test-docker? (or higher version than 2.13.1)

Ubuntu Noble has this package: 2.9.14+dfsg-1.3ubuntu3 but when we need to have a newer version and we install it as a subproject there will be multiple errors like these during clang++ compilation:

clang++: /usr/local/lib/x86_64-linux-gnu/libxml2.so.2: no version information available (required by /lib/x86_64-linux-gnu/libLLVM-18.so.18.1)
clang++: /usr/local/lib/x86_64-linux-gnu/libxml2.so.2: no version information available (required by /lib/x86_64-linux-gnu/libLLVM-18.so.18.1)

And this slows down the script a lot...

By adding a higher version of libxml2 we liminate this problem.

geissonator commented 1 month ago

No need for an issue for something like this, feel free to just submit it to gerrit and we'll give it a review.

This commit has been pending for a bit, it may also solve your issue - https://gerrit.openbmc.org/c/openbmc/openbmc-build-scripts/+/74244