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:
1 parent
0648172336
commit
fa9e626c5b
2 files changed
+10
-4
No files matched your search
+5
-3
@@ -26,15 +26,17 @@ curl -LO https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/master/
|
|||||||
python3 flatpak-cargo-generator.py Cargo.lock -o packaging/flatpak/cargo-sources.json
|
python3 flatpak-cargo-generator.py Cargo.lock -o packaging/flatpak/cargo-sources.json
|
||||||
|
|
||||||
flatpak install flathub org.freedesktop.Platform//25.08 org.freedesktop.Sdk//25.08 \
|
flatpak install flathub org.freedesktop.Platform//25.08 org.freedesktop.Sdk//25.08 \
|
||||||
org.freedesktop.Sdk.Extension.rust-stable//25.08
|
org.freedesktop.Sdk.Extension.rust-stable//25.08 org.freedesktop.Sdk.Extension.llvm20//25.08
|
||||||
flatpak-builder --user --install --force-clean build-flatpak packaging/flatpak/io.github.faumaray.TsClient.yml
|
flatpak-builder --user --install --force-clean build-flatpak packaging/flatpak/io.github.faumaray.TsClient.yml
|
||||||
flatpak run io.github.faumaray.TsClient
|
flatpak run io.github.faumaray.TsClient
|
||||||
```
|
```
|
||||||
|
|
||||||
Regenerate `cargo-sources.json` whenever `Cargo.lock` changes. Inside the build
|
Regenerate `cargo-sources.json` whenever `Cargo.lock` changes. Inside the build
|
||||||
`rust-toolchain.toml` does not apply: the `rust-stable` extension must provide at
|
`rust-toolchain.toml` does not apply: the `rust-stable` extension must provide at
|
||||||
least the workspace's `rust-version`. The SDK has everything else the build needs
|
least the workspace's `rust-version`. The `llvm20` extension provides libclang for
|
||||||
(CMake for libopus, ALSA, fontconfig, xkbcommon, libvpx, PipeWire, clang).
|
bindgen (PipeWire bindings); the SDK has everything else the build needs (CMake for
|
||||||
|
libopus, ALSA, fontconfig, xkbcommon, libvpx, PipeWire). CI builds the bundle in the
|
||||||
|
`package-flatpak` job ([docs/building.md](../docs/building.md)).
|
||||||
|
|
||||||
Permissions (`finish-args`): network, Wayland with X11 fallback, DRI, PulseAudio
|
Permissions (`finish-args`): network, Wayland with X11 fallback, DRI, PulseAudio
|
||||||
(microphone and speakers), the PipeWire socket (application audio when streaming),
|
(microphone and speakers), the PipeWire socket (application audio when streaming),
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ runtime-version: "25.08"
|
|||||||
sdk: org.freedesktop.Sdk
|
sdk: org.freedesktop.Sdk
|
||||||
sdk-extensions:
|
sdk-extensions:
|
||||||
- org.freedesktop.Sdk.Extension.rust-stable
|
- org.freedesktop.Sdk.Extension.rust-stable
|
||||||
|
# libclang for bindgen (the PipeWire bindings); the SDK has none.
|
||||||
|
- org.freedesktop.Sdk.Extension.llvm20
|
||||||
command: tsc-desktop
|
command: tsc-desktop
|
||||||
|
|
||||||
finish-args:
|
finish-args:
|
||||||
@@ -30,10 +32,12 @@ finish-args:
|
|||||||
# no permission.
|
# no permission.
|
||||||
|
|
||||||
build-options:
|
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:
|
env:
|
||||||
CARGO_HOME: /run/build/tsc/cargo
|
CARGO_HOME: /run/build/tsc/cargo
|
||||||
CARGO_NET_OFFLINE: "true"
|
CARGO_NET_OFFLINE: "true"
|
||||||
|
LIBCLANG_PATH: /usr/lib/sdk/llvm20/lib
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
- name: tsc
|
- name: tsc
|
||||||
|
|||||||
Reference in new issue
Block a user