You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d28e835
Browse filesBrowse the repository at this point in the historyBrowse files
build: Don't build bootc to generate man pages in the RPM
`make manpages` builds bootc with the docgen feature, dumps its CLI as
JSON and syncs the generated options/subcommands sections of
docs/src/man/*.md before converting them to roff. The CI `validate`
job already enforces (via `update-generated from-code --check`) that
those committed sections match the CLI, so in a release build the sync
is a no-op that costs a full extra build of bootc (~7 minutes in Koji).
Add `xtask manpages --no-sync` and a `make manpages-no-sync` target
that only do the conversion, and use it from the spec. The output is
identical to `make manpages`.
xtask itself still needs to be built, and it must not disturb the
%cargo_build state that %cargo_test reuses. %cargo_prep symlinks
target/release to target/rpm, and the %cargo_* macros run cargo with
RUSTC_BOOTSTRAP=1, which some build scripts (proc-macro2, anyhow,
thiserror) track. Building xtask with plain `cargo run --release`
therefore caused %cargo_test to rebuild 100+ crates. Add XTASK_PROFILE
and CARGO variables to the Makefile, and have the spec build xtask with
the `rpm` profile and `%{__cargo}`.
Assisted-by: AI
Signed-off-by: John Eckersberg <dev@eckersberg.com>
0 commit comments