Skip to content

rpmlint - #2608

Merged
jeckersb merged 3 commits into
bootc-dev:mainfrom
jeckersb:rpmlint
Nov 3, 2026
Merged

rpmlint#2608
jeckersb merged 3 commits into
bootc-dev:mainfrom
jeckersb:rpmlint

Conversation

@jeckersb

Copy link
Copy Markdown
Collaborator
  • packaging: Ship system-reinstall-bootc man page in its subpackage
  • packaging: Fix rpmlint errors
  • packaging: Address rpmlint warnings

Copilot AI balanced review requested due to automatic review settings October 30, 2026 21:41
@bootc-bot
bootc-bot Bot requested a review from henrywang October 30, 2026 21:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues for the packaging and release-synchronization changes.

No open issues 🎉

What changed in this PR

This PR addresses RPM packaging lint errors and warnings and places the reinstall utility’s manual page in its dedicated subpackage.

Changes:

  • Move the system-reinstall-bootc manual page from the main package to its subpackage.
  • Adjust the spec and add targeted rpmlint filters for intentional packaging details.
  • Configure Packit release synchronization to include the rpmlint configuration.
File Description
contrib/​packaging/​bootc.spec Correct manual-page ownership and address lint warnings in the spec and directory placeholder.
contrib/​packaging/​bootc.rpmlintrc Add filters for expected spelling, symlink, provides, and hidden-file warnings.
.packit.yaml Sync the spec, rpmlint configuration, and Packit configuration during release updates.

Review effort: Balanced

@jeckersb jeckersb linked an issue Oct 30, 2026 that may be closed by this pull request
@jeckersb jeckersb added this to the 1.18 milestone Oct 30, 2026
The %{_mandir}/man*/*bootc* glob in the main bootc package also
matched system-reinstall-bootc.8, so the man page ended up in the
wrong package. Exclude it from bootc and list it under
system-reinstall-bootc instead.

This also resolves the rpmlint no-manual-page-for-binary and
no-documentation warnings for system-reinstall-bootc.

Assisted-by: AI
Signed-off-by: John Eckersberg <dev@eckersberg.com>
- Silence stderr from the rustc version probe, which otherwise
  produces a specfile-error when rustc isn't installed (as in the
  Fedora CI rpmlint environment).
- Wrap the system-reinstall-bootc description to avoid
  description-line-too-long.
- Write explanatory text into the sysroot .keepdir placeholder
  rather than creating an empty file, which rpmlint flags as
  zero-length.

Closes: bootc-dev#2401

Assisted-by: AI
Signed-off-by: John Eckersberg <dev@eckersberg.com>
Escape macros in spec comments to avoid macro-in-comment, and add
an rpmlintrc filtering warnings that are expected for this package:

- "Bootable" flagged as a spelling error
- symlinks into /sysroot, which only exists on a booted system
- the made-up unversioned ostree-cli(ostree-container) provides
- the hidden .keepdir placeholder

Fedora CI picks up bootc.rpmlintrc from the root of dist-git, so
sync it there via files_to_sync in the propose_downstream job.
The spec and .packit.yaml are listed too, since setting
files_to_sync replaces Packit's default list.

Assisted-by: AI
Signed-off-by: John Eckersberg <dev@eckersberg.com>

@Johan-Liebert1 Johan-Liebert1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@jeckersb
jeckersb merged commit 725eafd into bootc-dev:main Nov 3, 2026
54 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.

rpmlint errors in packit-ci

4 participants