Skip to content

Conversation

@ottok
Copy link
Contributor

@ottok ottok commented Dec 14, 2025

Description (=git commit message body)

This formats and sorts the files the same way they are in the official Debian packaging, making it easier to compare the files in Debian vs upstream using commands such as git difftool --dir-diff main -- debian. Comparing the contents at least once a year is important in ensuring all packaging improvements get their way into both Debian official and upstream Debian packaging.

See https://salsa.debian.org/mariadb-team/mariadb-server/-/tree/debian/latest/debian

The formatting done by debputy reformat --style black is basically the same as running wrap-and-sort -vast.

There are no functional changes, this is a pure formatting change.

This is intentionally done on the main branch in MariaDB. The stable release branches are unlikely to ever get any changes in the debian/control file, and thus formatting or maintaining it is irrelevant. The merges from stable releases to latest main should not bring any debian/control file changes, as adding or removing dependencies, changing Debian compat levels or other changes are invasive and shouldn't be done in stable releases at all.

Release Notes

Not applicable.

How can this PR be tested?

There should be no functional changes. This is formatting only.

Basing the PR against the correct MariaDB version

  • This is a new feature or a refactoring, and the PR is based against the main branch.

PR quality check

  • I checked the CODING_STANDARDS.md file and my PR conforms to this where appropriate.
  • For any trivial modifications to the PR, I am ok with the reviewer making the changes themselves.

@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Dec 17, 2025
@gkodinov gkodinov requested a review from grooverdan December 18, 2025 12:33
@gkodinov gkodinov changed the title Deb: Format files with debputy reformat --style black MDEV-38371: Deb: Format files with debputy reformat --style black Dec 18, 2025
This formats and sorts the files the same way they are in the official
Debian packaging, making it easier to compare the files in Debian vs
upstream using commands such as `git difftool --dir-diff main --
debian`. Comparing the contents at least once a year is important in
ensuring all packaging improvements get their way into both Debian
official and upstream Debian packaging.

See https://salsa.debian.org/mariadb-team/mariadb-server/-/tree/debian/latest/debian

The formatting done by `debputy reformat --style black` is basically the
same as running `wrap-and-sort -vast`.

There are no functional changes, this is a pure formatting change.

This is intentionally done on the `main` branch in MariaDB. The stable
release branches are unlikely to ever get any changes in the
`debian/control` file, and thus formatting or maintaining it is
irrelevant. The merges from stable releases to latest `main` should not
bring any `debian/control` file changes, as adding or removing
dependencies, changing Debian compat levels or other changes are
invasive and shouldn't be done in stable releases at all.
@ottok ottok force-pushed the format-upstream-debian-files branch from 6e867b2 to 01ea344 Compare December 22, 2025 18:16
@ottok
Copy link
Contributor Author

ottok commented Dec 22, 2025

Rebased on latest 'main'.

@grooverdan
Copy link
Member

Thanks for the rebase Otto.

@grooverdan grooverdan enabled auto-merge (rebase) December 23, 2025 02:24
@grooverdan grooverdan merged commit 5ed3668 into MariaDB:main Dec 23, 2025
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.

Development

Successfully merging this pull request may close these issues.

3 participants