Skip to content

deb: declare Standards-Version 4.7.4 in generated control file - #1221

Closed
cpuguy83 wants to merge 1 commit into
project-dalec:mainfrom
cpuguy83:cpuguy83-debian-standards-version
Closed

cpuguy83 wants to merge 1 commit into
project-dalec:mainfrom
cpuguy83:cpuguy83-debian-standards-version

Conversation

@cpuguy83

@cpuguy83 cpuguy83 commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

PMC source ingestion requires a Standards-Version field in debian/control. This adds it as a package const in packaging/linux/deb and wires it through the existing controlWrapper template data conventions, alongside DebHelperCompat.

Scope is limited to the Standards-Version field; no copyright handling or other compliance changes are included.

Adds a focused test (TestWriteControlStandardsVersion) verifying the generated control content includes exactly one Standards-Version field with the expected value.

PMC source ingestion requires a Standards-Version field in
debian/control. Add it as a package const alongside the other
debian/control template constants and wire it through the existing
controlWrapper template data conventions.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Copilot AI balanced review requested due to automatic review settings September 3, 2026 16:38

Copilot AI 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.

馃煝 Approval recommended

The focused implementation correctly emits and tests the required field without unrelated changes.

Pull request overview

Adds the required Debian Standards-Version field to generated control files.

Changes:

  • Declares Debian Policy version 4.7.4.
  • Exposes it through controlWrapper and the control template.
  • Tests field value and uniqueness.
File summaries
File Description
packaging/linux/deb/debroot.go Defines the policy version constant.
packaging/linux/deb/template_control.go Exposes the version to templates.
packaging/linux/deb/templates/debian_control.tmpl Emits the new control field.
packaging/linux/deb/template_control_test.go Verifies the generated field.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Balanced

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cpuguy83

cpuguy83 commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #1222.

@cpuguy83 cpuguy83 closed this Sep 3, 2026
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