← Back to issue list

make plugin fails to include a Makefile via a relative path from another Makefile

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1636238
Type
issue
State
open
Author
~ivan-lezhnjov-iv
Labels
plugin
Created
Updated
Closed

Current evaluation

make plugin fails to build PostgreSQL contrib because its Makefile includes ../src/Makefile.global, which lies outside the declared source directory. 10 years old, zero comments, no maintainer response. Failure stems from user source config, not a plugin defect.

Suggested action: close not a bug

Reason: The error 'Makefile:5: ../src/Makefile.global: No such file or directory' is caused by the user's 'source: parts/postgresql/src/contrib/' pointing at a subdirectory whose Makefile references a file outside that directory, so the include target is absent from the build tree; the plugin merely runs 'make -f Makefile' in the source directory, which is working as intended. The issue is also 3598 days old with zero comments and no maintainer engagement, and the fix is a configuration change (point source at the full src tree or restructure), not a code change.

Impact: 15 Quick Win: 10.5 Staleness: 95 Complexity: 30 Confidence: 55 Support Request: 70

Issue body

Here's another issue I ran into when I tried to build contrib modules shipped with PostgreSQL project: ... Building contrib make -f Makefile -j1 Makefile:5: ../src/Makefile.global: No such file or directory make: *** No rule to make target '../src/Makefile.global'. Stop. Command '['/bin/sh', '/tmp/tmpxgmn5skk', 'make', '-f', 'Makefile', '-j1']' returned non-zero exit status 2 It seems like make plugin fails to include a Makefile that is referenced as a relative path from the main Makefile. Corresponding snapcraft.yaml section looks like this: contrib: plugin: make source: parts/postgresql/src/contrib/ after: - postgresql

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 15
Quick Win: 10.5
Staleness: 95
Complexity: 30
Confidence: 55
Support Request: 70
close not a bug make plugin fails to build PostgreSQL contrib because its Makefile includes ../src/Makefile.global, which lies outside the declared source directory. 10 years old, zero comments, no maintainer response. Failure stems from user source config, not a plugin defect.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 45
Confidence: 90
Support Request: 10
close stale Make plugin fails to resolve relative Makefile includes during build. Issue is over 9 years old with no maintainer response or comments.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 40
Confidence: 90
Support Request: 10
close stale Snapcraft make plugin fails to resolve relative paths in included Makefiles when building PostgreSQL contrib modules. Unaddressed for ~9.7 years with no maintainer interaction.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 25
Confidence: 85
Support Request: 10
close stale Snapcraft make plugin fails to resolve relative paths in Makefile include directives. No maintainer response or activity for over 9 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 30
Confidence: 90
Support Request: 10
close stale make plugin fails to resolve relative paths when including other Makefiles. Open, untriaged, and inactive for over nine years.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1889268 `make` plugin interprets relative source paths incorrectly snapcraft (launchpad) closed Closed without comments or resolution. The make plugin incorrectly resolved relative source paths, triggering permission errors, but received no follow-up or fix.
72%