Skip to content

docs: add --no-clean-source explanation and fix architecture variants section in build-packages-locally#709

Open
rkratky wants to merge 2 commits into
ubuntu:mainfrom
rkratky:fix/issue-536-build-packages-locally
Open

docs: add --no-clean-source explanation and fix architecture variants section in build-packages-locally#709
rkratky wants to merge 2 commits into
ubuntu:mainfrom
rkratky:fix/issue-536-build-packages-locally

Conversation

@rkratky

@rkratky rkratky commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Description

  • Add --no-clean-source explanation to the "Useful sbuild options" section, clarifying that sbuild runs debian/rules clean by default (requiring build dependencies on the host) and that --no-clean-source skips this step — particularly useful when maintaining the source tree in git
  • Fix the "Building for architecture variants" section: change incorrect --host= to --arch= (the correct sbuild option for specifying the build architecture, per the sbuild manpage), add instructions for creating a schroot for the variant using mk-sbuild, and add a note about the schroot backend requirement

Related issue

Checklist

  • I have read and followed the Ubuntu Project contributing guide
  • My pull request is linked to an existing issue (if applicable)
  • I have tested my changes, and they work as expected

@rkratky
rkratky requested a review from s-makin as a code owner July 14, 2026 18:40
@rkratky

rkratky commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator Author

@BAMF0, could you please review this one?

@BAMF0 BAMF0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! One small comment, but I say: do with that as you like :)

Comment thread docs/contributors/building/build-packages-locally.rst
Comment thread docs/contributors/building/build-packages-locally.rst Outdated
Co-authored-by: Simon Johnsson <73998667+BAMF0@users.noreply.github.com>
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.

How to build packages locally: address prior revision comments

2 participants