feat(init): emb init flatpak --sdk extends the embedder's flatpak-sdk target

Open
#360 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
22/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cmake, dart, github-actions
Domain
build-system, cli

Research direction

Start with the code that emb init flatpak --sdk <arch> uses to write each sdk-<arch> target and the workflow's apt package list, which the payload does not name by path. Locate the generator in this Dart repo, and check whether the output needs extends: source#flatpak-sdk-<arch> with provider: flatpak-sdk kept and libpugixml-dev added. Blocked on #357 and on an embedder pin that includes toyota-connected/ivi-homescreen#888; done when the generated manifest matches the ivi-homescreen layout.

Written by the indexing model from the issue text.

Description

The sdk-<arch> target emb init flatpak --sdk <arch> writes does not build with the default embedder. It names only provider: flatpak-sdk and the triple, so it has none of what ivi-homescreen needs for a flatpak-sdk build:

  1. wayland-cxx-scanner, built host-native. A flatpak-sdk build is a cross build to CMake, and cmake/wayland_cxx.cmake resolves the scanner with find_program (run).
  2. libstdc++ instead of libc++ under clang (run).

ivi-homescreen now has both: flatpak-sdk-x86_64 and flatpak-sdk-aarch64 in .emb/flatpak.emb.yaml (toyota-connected/ivi-homescreen#887), and the stdlib choice (toyota-connected/ivi-homescreen#888). With them, the generated repo builds and packages on ubuntu-latest (run).

For the default embedder, emb init --sdk should:

  • write extends: source#flatpak-sdk-<arch> on each sdk-<arch> target. Keep provider: flatpak-sdk, since the manifest's shared provider: arm-gnu otherwise wins over the extended target's (#359);
  • add libpugixml-dev to the workflow's apt list. It is the scanner's host build dep, and the target declares it in host_dev_packages;
  • pin the embedder at a commit with toyota-connected/ivi-homescreen#888 in it. v3.0 HEAD when generated is fine once that merges; until then it is not.

Needs #357 first, or the workflow also has to emb boards sync. Extending into ivi-homescreen resolves its Raspberry Pi targets, which extend the board library.

Not needed, checked: the AppArmor kernel.apparmor_restrict_unprivileged_userns=0 that firebase_ffi's flatpak job sets. flatpak-builder built and packaged without it (run).

Dominant language
Dart
Stars
15
Forks
6
Avg merge
6h 44m
Merged PRs (30d)
60

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from toyota-connected/emb_cli

All issues in toyota-connected/emb_cli

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.