Page MenuHomeFreeBSD

devel/llvm20: Link LLDB with libxml2 to allow an interop with openocd
ClosedPublic

Authored by arrowd on Jun 6 2025, 12:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 8, 9:07 PM
Unknown Object (File)
Wed, Oct 8, 12:37 AM
Unknown Object (File)
Fri, Oct 3, 1:47 AM
Unknown Object (File)
Wed, Oct 1, 1:01 AM
Unknown Object (File)
Sat, Sep 27, 12:36 AM
Unknown Object (File)
Thu, Sep 25, 1:28 AM
Unknown Object (File)
Sep 12 2025, 6:59 PM
Unknown Object (File)
Sep 3 2025, 7:29 AM
Subscribers
None

Details

Summary

I got a report that LLDB may silently grap the libxml2 dependency if
it is installed on the building machine. Linking to libxml2 allows it to
interoperate with openocd and parse XML register descriptions.

This patch makes libxml2 a dependency if the LLDB is enabled

Test Plan

poud testport and ldd /usr/local/llvm20/bin/lldb | grep libxml

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

arrowd created this revision.

Thanks for the report. This works by accident as a later LLDB_USES squashes gnome, but clang adds it and then doesn't actually use it... I'm working on an alternate fix along with a bump of the lua version.

The issue is still there, so I'm updating the diff, just in case

Sorry for the delay, I've been traveling too much over the last couple weeks and am finally tuning back in. I've got a tested patch, but want to push an update to 20.1.7 along with this change to reduce the number of rebuilds globally. The build is in progress and I'll hopefully push in the next 24 hours.

This revision was not accepted when it landed; it landed in state Needs Review.Jun 30 2025, 10:07 PM
This revision was automatically updated to reflect the committed changes.