feat(gnome): Add SNAPCRAFT_GNOME_SDK env
Metadata
Current evaluation
Merged addition of the SNAPCRAFT_GNOME_SDK environment variable to expose the GNOME SDK snap path, eliminating hardcoded values. Approved by three reviewers and passing CI, the change modifies three files with six lines added.
Suggested action: —
No scores available.
Issue body
While building package using the gnome extension it's often required to define new environment paths that are based on the gnome sdk snap path.
Instead of having to make such path a static string, expose it as an env variable to make it easier to set new variables and to simplify updates on core changes
- [x] Have you followed the [guidelines for contributing](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `make lint`?
- [x] Have you successfully run `make test`?
---
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged addition of the SNAPCRAFT_GNOME_SDK environment variable to expose the GNOME SDK snap path, eliminating hardcoded values. Approved by three reviewers and passing CI, the change modifies three files with six lines added. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged addition of the SNAPCRAFT_GNOME_SDK environment variable. Exposes the GNOME SDK path to prevent hardcoding in extensions and applications, streamlining path management and future updates. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Introduces the SNAPCRAFT_GNOME_SDK environment variable to expose the GNOME SDK path, preventing hardcoding in snapcraft builds and simplifying extension updates. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5514 extensions/gnome: Add sdk include directories to C_INCLUDE_PATH | snapcraft | open | Adds GNOME SDK include dirs to C_INCLUDE_PATH in the gnome extension so headers like xkbcommon/xkbcommon.h resolve. Approved by one reviewer, but maintainers (lengau, bepri) deferred it to core26/Snapcraft 9 over core24 backward-compat risk; one CI job failing. | |
| #5461 feat(gnome): add cmake prefix path | snapcraft | merged | Merged to resolve #5272. Injects CMAKE_PREFIX_PATH into the GNOME extension environment to prevent conflicts with part-level cmake parameters, fixing build failures for affected snaps like Remmina. |