qmake plugin ignores source-subdir parameter?
Metadata
Current evaluation
Fixed by merged PR canonical/craft-parts#1687 (commit 0162da71): qmake now honors source-subdir for default and explicit project-file paths.
Resolution: closed resolved
Reason: PR #1687 was merged with commit 0162da71, changing qmake path resolution to use source-subdir while preserving paths already prefixed from the source root.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Bug Description
Looks like the "source-subdir" is being ignored for the qmake plugin (snapcraft 8.5.1) here.
It looks for the project file in the src dir, not the subdir.
Setting the "qmake-project-file" to the file doesn't work either, only including the subdir path sources/project.pro works.
Is this a bug or am I doing something wrong?
Thanks!
### To Reproduce
Try to build a minimal project.
### part yaml
```shell
parts:
test:
plugin: qmake
source: https://<some git repo>
source-type: git
source-subdir: sources
qmake-major-version: 6
(qmake-project-file: project.pro
```
### Relevant log output
```shell
Without qmake-project-file:
Cannot read /root/parts/test/src: file to open is a directory
With qmake-project-file:
Cannot find file: /root/parts/test/src/project.pro
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR canonical/craft-parts#1687 (commit 0162da71): qmake now honors source-subdir for default and explicit project-file paths. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed in canonical/craft-parts#1687 (commit 0162da71): qmake now honors source-subdir for default and explicit project-file paths while preserving source-root-prefixed paths. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #1687 (commit 0162da71): qmake now resolves project files from source-subdir while preserving source-root compatibility. | |
| qwen/qwen3.6-35b-a3b | — | — | The qmake plugin source-subdir bug was identified in craft_parts. A developer proposed replacing part_src_dir with part_build_subdir to fix it. The issue was closed after being escalated to internal ticket CRAFT-3857. | |
| qwen/qwen3.8-27b |
Impact:
45
Quick Win:
32
Staleness:
55
Complexity:
30
Confidence:
85
Support Request:
5
|
keep open | qmake plugin ignores source-subdir, so qmake looks for the project file in the wrong directory and builds fail. Maintainer confirmed the bug and pinpointed the fix; open PR #1687 addresses it. Reporter asked for status in May 2025. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
75
Complexity:
20
Confidence:
90
Support Request:
5
|
keep open | qmake plugin ignores source-subdir parameter, causing build failures. A maintainer confirmed the bug and identified the exact code fix, but it remains unresolved after over a year. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
80
Complexity:
20
Confidence:
80
Support Request:
0
|
keep open | qmake plugin ignores source-subdir parameter; maintainer confirmed bug and suggested fix, but no PR or implementation after 13 months of inactivity |
Update history
| Date | Change |
|---|---|
| closed |
Related work
-
Likely Fixed By:
canonical/craft-parts#1687
(confidence 100%)
Merged fix titled “fix(plugins/qmake): use source-subdir if declared.”
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1687 fix(plugins/qmake): use source-subdir if declared | craft-parts | merged | Merged PR #1687 (commit 0162da71), fixing qmake path resolution to honor source-subdir while preserving source-root-relative project files. |