qmake plugin ignores source-subdir parameter?
Metadata
Current evaluation
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.
Suggested action: —
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 |
|---|---|---|---|---|
| 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:
31.5
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 | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
75
Complexity:
15
Confidence:
85
Support Request:
0
|
keep open | qmake plugin ignores source-subdir, failing to locate project files in subdirectories. Bug confirmed with a proposed fix in qmake_plugin.py. Internal ticket created. Waiting to be assigned. |
Update history
| Date | Change |
|---|---|
| closed |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1687 fix(plugins/qmake): use source-subdir if declared | craft-parts | merged | Merged qmake plugin fix to correctly resolve qmake-project-file paths when source-subdir is declared. Adjusts path resolution relative to source or subdirectory to prevent breaking configs. Approved by three reviewers and closes #950. | |
| #1599572 qmake plugin uses out-of-source build | snapcraft (launchpad) | closed | Abandoned. The qmake plugin out-of-source build failure was closed without resolution or code changes. |