← Back to issue list

cmake plugin doesn't work properly

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1770838
Type
issue
State
closed
Author
~gobne
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Reported a cmake plugin bug causing duplicate CMAKE_INSTALL_PREFIX flags. The issue was closed without comments or a documented fix, leaving the configuration duplication unaddressed.

Suggested action:

No scores available.

Issue body

Hi, I'm trying to compile a part for my application but I can't because the cmake plugin doesn't work properly. I'll show you why: parts:   application:     plugin: cmake     source: . output: Failed to run 'cmake /root/build_libvlc/parts/application/src -DCMAKE_INSTALL_PREFIX=' for 'application': Exited with code 1. Verify that the part is using the correct parameters and try again. parts:   application:     plugin: cmake     configflags:       - -DCMAKE_INSTALL_PREFIX=/anydirectory     source: . output: Failed to run 'cmake /root/build_app/parts/application/src -DCMAKE_INSTALL_PREFIX= -DCMAKE_INSTALL_PREFIX=/anydirectory' for 'application': Exited with code 1. Verify that the part is using the correct parameters and try again. As you can see in the second case "-DCMAKE_INSTALL_PREFIX=" clause is there twice. How come? Thank you :)

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Reported a cmake plugin bug causing duplicate CMAKE_INSTALL_PREFIX flags. The issue was closed without comments or a documented fix, leaving the configuration duplication unaddressed.
qwen/qwen3.6-35b-a3b Abandoned. Reported a bug where cmake plugin configflags handling caused duplicate -DCMAKE_INSTALL_PREFIX arguments, breaking builds.
qwen3.6-35b-a3b-mtp-q6 The cmake plugin duplicated the CMAKE_INSTALL_PREFIX flag when configflags were used. The report was closed without resolution, indicating it was abandoned.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1704933 cmake plugin: difficult to patch src using scriptlets snapcraft (launchpad) closed Closed without resolution. The cmake plugin incorrectly passes the source directory to cmake, preventing build-dir patching. The issue was abandoned, likely superseded by newer plugin architecture.
71%
#346 CMake plugin: Support installing via prefix. snapcraft closed Closed without merging. The author realized the changes were applied to the wrong plugin and determined CMake did not require them. The pull request was abandoned, though a later comment notes the underlying installation issue persists.
71%