Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Changelog patching when building DSC format 3.0. #831

Conversation

ila-embsys
Copy link
Contributor

'debtransform' is patching 'changelog' when make *.diff for DSC 1.0. It adds a 'changelog' entry with the actual build package version.

Missing the actual build package version in 'changelog' is the reason for misbehavior because after 'debtransform' finishes its work, the version from the last 'changelog' entry is used for determining the package version.

This merge request contains changes to maintain 'changelog' patching during the build DSC 3.0 in the same way as for DSC 1.0.
To do it, the patching procedure was separated into a separate function dopatch_changelog() then used for both building scenarios.

In case of building DSC 3.0 added 'changelog' catching in two different cases:

  • When adding a file with the name "debian.changelog" dofile_quilt().
  • When adding tar contents containing "debian/changelog" dotar_quilt().

Also added test number 5. It contains the 'changelog' with the outdated version in the last entry in 'debian.tar.gz'. Test checks that after 'debtransform' finishes its work, the 'changelog' is patched and comes with a new entry with the actual build package version. It is the case of a broken building of packages, as mentioned in #830.

'debtransform' is patching 'changelog' when make *.diff for DSC 1.0.
It adds a 'changelog' entry with the actual build package version.

Missing the actual build package version in 'changelog' is the reason for misbehavior because after 'debtransform' finishes its work, the version from the last 'changelog' entry is used for determining the package version.

This commit contains changes to maintain 'changelog' patching during the build DSC 3.0 in the same way as for DSC 1.0.
To do it, the patching procedure was separated into a separate function dopatch_changelog then used for both building scenarios.

In case of building DSC 3.0 added 'changelog' catching in two different cases:
- When adding a file with the name "debian.changelog".
- When adding tar contents containing "debian/changelog".
@darix
Copy link
Member

darix commented Jun 13, 2022

+1 confirmed with darktable testbuild

@adrianschroeter adrianschroeter merged commit 3c3b709 into openSUSE:master Jun 13, 2022
adrianschroeter pushed a commit that referenced this pull request Jun 13, 2022
'debtransform' is patching 'changelog' when make *.diff for DSC 1.0.
It adds a 'changelog' entry with the actual build package version.

Missing the actual build package version in 'changelog' is the reason for misbehavior because after 'debtransform' finishes its work, the version from the last 'changelog' entry is used for determining the package version.

This commit contains changes to maintain 'changelog' patching during the build DSC 3.0 in the same way as for DSC 1.0.
To do it, the patching procedure was separated into a separate function dopatch_changelog then used for both building scenarios.

In case of building DSC 3.0 added 'changelog' catching in two different cases:
- When adding a file with the name "debian.changelog".
- When adding tar contents containing "debian/changelog".
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.

None yet

3 participants