Skip to content

Makefile: Remove build dependency from install target#2019

Merged
cgwalters merged 1 commit intobootc-dev:mainfrom
cgwalters:completion-fix
Feb 25, 2026
Merged

Makefile: Remove build dependency from install target#2019
cgwalters merged 1 commit intobootc-dev:mainfrom
cgwalters:completion-fix

Conversation

@cgwalters
Copy link
Collaborator

@cgwalters cgwalters commented Feb 24, 2026

The Makefile's CARGO_FEATURES auto-detection based on /usr/lib/os-release
can produce different results in the install environment vs build
environment. This causes 'make install' to rebuild the binary without
the intended features (e.g., rhsm).

Pass CARGO_FEATURES explicitly to ensure the install step doesn't
trigger an unwanted rebuild with different features.

@bootc-bot bootc-bot bot requested a review from henrywang February 24, 2026 15:42
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request effectively decouples the build and install steps in the Makefile by introducing a new all target for building and removing the build dependency from the install target. This is a good change that follows standard Makefile practices and solves the issue of unintended rebuilds in different environments. The addition of checks in the install target to ensure build artifacts exist is also a great improvement for user experience. I have one suggestion to make the completion artifact check more robust.

The Makefile's CARGO_FEATURES auto-detection based on /usr/lib/os-release
can produce different results in the install environment vs build
environment. This causes 'make install' to rebuild the binary without
the intended features (e.g., rhsm).

Pass CARGO_FEATURES explicitly to ensure the install step doesn't
trigger an unwanted rebuild with different features.

Assisted-by: OpenCode (Claude Opus 4.5)
Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters
Copy link
Collaborator Author

Already trying this downstream in https://gitlab.com/redhat/centos-stream/rpms/bootc/-/merge_requests/81

@cgwalters cgwalters enabled auto-merge (rebase) February 24, 2026 18:08
@cgwalters cgwalters merged commit 32643e8 into bootc-dev:main Feb 25, 2026
58 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants