← Back to issue list

plainbox-provider plugin python shebangs are mismatched

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1626587
Type
issue
State
closed
Author
~cwayne
Labels
—
Created
Updated
Closed

Current evaluation

Fixed by merged PR #823 (a7771b8e4), adding plainbox-provider shebang rewriting; PR #830 (60e29ef1b) then narrowed Python-plugin rewriting and removed remaining conflicts.

Resolution: closed resolved

Reason: PR #823 added plainbox-provider Python shebang rewriting in commit a7771b8e4. Follow-up PR #830 restricted Python-plugin rewrites to proper shebangs in commit 60e29ef1b, resolving the remaining collisions.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Snapcraft: 2.17 As of 2.17, builds of checkbox-snappy are failing, as the python shebangs are being fixed by the python plugin, but not the plainbox-provider plugin, causing a conflict between the two. Suggested fix is for the plainbox-provider plugin to alter shebangs in the same way to avoid conflicts. The conflicting files are here: http://paste.ubuntu.com/23215861/

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #823 (a7771b8e4), adding plainbox-provider shebang rewriting; PR #830 (60e29ef1b) then narrowed Python-plugin rewriting and removed remaining conflicts.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #823 (a7771b8e4), which added plainbox-provider shebang rewriting; follow-up PR #830 (60e29ef1b) narrowed Python-plugin rewriting and eliminated remaining conflicts.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #823 (a7771b8e4), which rewrote plainbox-provider Python shebangs to /usr/bin/env python, preventing conflicts with the Python plugin.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The plainbox-provider plugin did not align Python shebangs with the python plugin, causing Snapcraft 2.17 build failures. No fix was applied, indicating the report was abandoned or superseded by later updates.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The mismatched Python shebangs between the python and plainbox-provider plugins in snapcraft 2.17 were not addressed, indicating the report was abandoned or resolved externally.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The report highlighted mismatched Python shebangs in the plainbox-provider plugin causing Snapcraft 2.17 build failures. The report was abandoned with no follow-up or fix implemented.
qwen3.6-35b-a3b-mtp-q6 — — Closed without resolution. The plainbox-provider plugin shebang mismatch causing Snapcraft 2.17 build failures was not addressed. The report received no comments and was abandoned.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcraft#823 (confidence 100%)

    Merged as commit a7771b8e4 to rewrite plainbox-provider Python shebangs.

  • Likely Fixed By: snapcraft#830 (confidence 100%)

    Merged as commit 60e29ef1b; limited Python-plugin rewriting to proper shebangs and eliminated remaining conflicts.

Related issues

Issue Project State Summary Similarity
#823 plainbox-provider plugin: rewrite python shebangs snapcraft merged Merged as a7771b8e4: added shebang rewriting to the plainbox-provider plugin so installed Python scripts use the in-snap interpreter, fixing LP #1626587. Approved despite 4 unresolved review comments.
89%
#830 python plugin: only replace proper shebangs. snapcraft merged Merged as commit 60e29ef1b, restricting Python plugin shebang replacement to file beginnings and fixing LP #1626587-related plainbox conflicts.
79%
#364 Create Plainbox Provider plugin snapcraft closed Plainbox Provider plugin PR by jocave was closed by sergiusens (2016-05-27) over build/stage-package and PYTHONPATH concerns; the work was later merged via PR #609 (commit 2b8ace75b).
73%
#2140 lp 1768233 workaround for plainbox_provider plugin snapcraft merged Merged PR #2140, restoring plainbox-provider Checkbox builds by adding pip, setuptools and wheel as stage-packages, with an integration test (commit d932f0fc6).
72%
#609 Create Plainbox Provider plugin snapcraft merged Merged as commit 2b8ace75b, adding the Plainbox Provider plugin, Checkbox integration tests, and a missing Python dependency in the demo snap.
70%