Skip to content

Commit 32643e8

Browse files
committed
spec: Pass CARGO_FEATURES explicitly to make install
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>
1 parent 564de0b commit 32643e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

contrib/packaging/bootc.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ sed -i -e '/https:\/\//d' cargo-vendor.txt
146146
%endif
147147

148148
%install
149-
%make_install INSTALL="install -p -c"
149+
# Pass CARGO_FEATURES explicitly to prevent auto-detection rebuild in install environment
150+
%make_install INSTALL="install -p -c" CARGO_FEATURES="%{?with_rhsm:rhsm}"
150151
%if %{with ostree_ext}
151152
make install-ostree-hooks DESTDIR=%{?buildroot}
152153
%endif

0 commit comments

Comments
 (0)