On Sat, 30 May 2020 17:03:21 +0200 Holger Levsen <[email protected]> wrote:
> package: devscripts
> Version: 2.20.3
> Severity: normal
> x-debbugs-cc: [email protected]
> 
> Dear Maintainer,
> 
> TTBOMK currently there is no tool to assemble the source for a binNMU. The 
> source for a binNMU has do be assembled like this:
> 
> - take the normal source package and unpack it
> - extract the d/changelog stanza from the .buildinfo file in question and
>   concatenate that with d/changelog from the source package.
> - use dpkg-source to build the source package.
> 
> It would be great if debrebuild would this if instructed to.
> 
> "#961861 «debrebuild: should (optionally) download the source too»" is a
> blocker/requirement to fix this bug.
> 
> 
> -- 
> cheers,
>       Holger
> 
> [...]


I think sbuild do this for us by relying on the Binary-Only-Changes
field from the buildinfo.

> 
> --binNMU-changelog=changelog
>     Set the complete content of a binary-only changelog entry. This option 
> allows full customization of the new changelog entry. It is up to the user to 
> make sure that the changelog entry is well-formed. The argument has to 
> include all necessary newlines. Leading and trailing newlines will be 
> stripped. Sbuild will not interpret any backslash escapes. This option is 
> incompatible with --make-binNMU, --binNMU, --append-to-version and 
> --binNMU-timestamp. This command line option sets the BIN_NMU_CHANGELOG 
> configuration variable. See sbuild.conf(5) for more information.

But it implies a multi-line command line (e.g. the
"SBUILD_CMDLINE=<...>" part will contain newlines).


For the manual part, adding the following instructions:

echo <unwrapped-shell-quoted-Binary-Only-Changes> | \
  cat - debian/changelog  >> debian/changelog.binNMU && \
  mv debian/changelog.binNMU debian/changelog

Would "probably" work.

Neither of these approaches seem to need #961861.

Thanks,
~Niels

Reply via email to