flatpak: libclang from the llvm20 SDK extension

The package-flatpak job failed in bindgen (the PipeWire bindings):
the Freedesktop SDK has no libclang. Add the llvm20 extension and point
LIBCLANG_PATH at it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
Claude committed 2026-09-26 20:07:14 +00:00
1 parent 0648172336
commit fa9e626c5b
2 files changed
+10 -4

No files matched your search

@@ -6,6 +6,8 @@ runtime-version: "25.08"
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
# libclang for bindgen (the PipeWire bindings); the SDK has none.
- org.freedesktop.Sdk.Extension.llvm20
command: tsc-desktop
finish-args:
@@ -30,10 +32,12 @@ finish-args:
# no permission.
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
append-path: /usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm20/bin
prepend-ld-library-path: /usr/lib/sdk/llvm20/lib
env:
CARGO_HOME: /run/build/tsc/cargo
CARGO_NET_OFFLINE: "true"
LIBCLANG_PATH: /usr/lib/sdk/llvm20/lib
modules:
- name: tsc