← Back to issue list

CMake plugin should support installing via prefix instead of DESTDIR

View original Launchpad issue

Metadata

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

Current evaluation

Prefix-based installation landed for Autotools in merged PR #351; referenced PR #346 was closed unmerged after targeting the wrong plugin.

Resolution: closed superseded

Reason: The maintainer linked PR #346, but it was closed unmerged because it modified CMake rather than Autotools. Equivalent install-via-prefix support was subsequently merged in PR #351.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Currently the CMake plugin uses an empty install prefix when running cmake, and calls `make install` with DESTDIR in order to place the files into the .snap. However, not every piece of software will work with this. Some (e.g. PHP7) only work if configured to install into the .snap via the prefix and then simply installed without DESTDIR. The CMake plugin should support this via a config option.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Prefix-based installation landed for Autotools in merged PR #351; referenced PR #346 was closed unmerged after targeting the wrong plugin.
stealth/space-bunny-alpha — closed superseded Maintainer kyrofa closed the request pointing to PR #346, which was closed unmerged (patch touched CMake instead of Autotools); equivalent Autotools install-via-prefix support landed via merged PR #351.
stealth/space-bunny-alpha — closed stale Closed unimplemented; CMake remained DESTDIR-based, with no prefix-install option added.
stealth/space-bunny-alpha — closed stale Prefix installation was implemented for Autotools in PR #351 (commit 72dbc3285); the CMake proposal in PR #346 was closed unmerged, leaving the reported CMake gap unresolved.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The CMake plugin remains limited to DESTDIR-based installations, failing to support prefix-based builds. No configuration option was added.
qwen/qwen3.6-35b-a3b — — Closed without implementation, likely abandoned. The CMake plugin was never updated to support prefix-based installs via a configuration option.
qwen/qwen3.6-35b-a3b — — The CMake plugin feature request to support installing via prefix instead of DESTDIR was closed without implementation. Zero comments indicate the request was abandoned.
qwen3.6-35b-a3b-mtp-q6 — — Request to add a CMake plugin config option for prefix-based installation was closed without implementation. No resolution or merge details were provided, indicating the feature request was abandoned.

Update history

Date Change
created

Related work

  • Related To: ubuntu-core/snapcraft#346 (confidence 98%)

    Maintainer-linked fix that was closed unmerged because it targeted CMake instead of Autotools.

  • Superseded By: ubuntu-core/snapcraft#351 (confidence 94%)

    Merged implementation providing install-via-prefix support in the Autotools plugin.

Related issues

Issue Project State Summary Similarity
#346 CMake plugin: Support installing via prefix. snapcraft closed Closed unmerged after the change was found to target CMake instead of Autotools; equivalent prefix-install support merged in snapcraft#351 via commit 72dbc3285.
85%
#1544629 Autotools plugin should support installing via prefix instead of DESTDIR snapcraft (launchpad) closed Prefix-based Autotools installation was merged in canonical/snapcraft#351, resolving Launchpad bug #1544629 in commit 72dbc3285.
81%
#351 Autotools plugin: Support installing via prefix. snapcraft merged Merged PR #351 by kyrofa adds an Autotools plugin config option to install via prefix instead of DESTDIR, fixing LP bug #1544629 (commit 72dbc3285). Reviewed and approved by sergiusens and come-maiz.
81%
#536 Always set prefix in the autotools plugin snapcraft closed Closed unmerged: hard-coding an autotools prefix would break existing builders; maintainers suggested a separate install-via option instead.
72%
#352 Backport to 1.x: Autotools plugin: Support installing via prefix. snapcraft merged Merged into Snapcraft 1.x, adding prefix-based installation to the Autotools plugin as a backport of #351.
72%