Package: dgit
Version: 15.9
Severity: normal

Dear Maintainer,

When trying to build a backport of a package, it was suggested to pass
`--debbuildopts="-v<version>"' so that not only changelog of the
backport version (which is usually just "Rebuild for backports"), but
also all the changes from the previous versions after <version> are
included. Say stable has 1.0-1, and testing has 1.1-1, and with
`--debbuildopts="-v1.0-1"' I can have the changelog of both 1.1-1 and
1.1-1~bpo13+1.

When I tried to add this to the dgit command, e.g. `dgit
sbuild -d trixie-backports --debbuildopts="-v<1.0-1>"', the resulting
*_multi.changes only contain the change for 1.1-1~bpo13+1. On close
inspection, the *_amd64.changes file did include the changelog of 1.1-1,
but the *_source.changes did not. As (I think) dgit uses `mergechanges'
to combine these 2 changelogs into *_multi.changes, the *_source.changes
took over so the other changelog is lost.

I'm not sure whether this is a dgit issue or a sbuild issue,
specifically whether it is caused by how dgit invokes sbuild or sbuild
somehow does not generate the intended *_source.changes with
`--debbuildopts="-v<version>"'.

-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (200, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 7.0.9+deb14-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dgit depends on:
ii  apt                        3.3.1
ii  ca-certificates            20260223
ii  coreutils                  9.10-1
ii  curl                       8.20.0-2
ii  devscripts                 2.26.9
ii  dpkg-dev                   1.23.7
ii  dput                       1.2.4
ii  git                        1:2.53.0-1
ii  git-buildpackage           0.9.42
ii  libdpkg-perl               1.23.7
ii  libjson-perl               4.10000-1
ii  liblist-moreutils-perl     0.430-2
ii  liblocale-gettext-perl     1.07-10
ii  libtext-csv-perl           2.06-1
ii  libtext-glob-perl          0.11-3
ii  libtext-iconv-perl         1.7-9
ii  libwww-curl-perl           4.17-13+b1
ii  perl [libdigest-sha-perl]  5.40.1-7+b1
ii  python3                    3.13.9-3+b1

Versions of packages dgit recommends:
ii  distro-info-data             0.69
ii  liburi-perl                  5.34-2
ii  openssh-client [ssh-client]  1:10.3p1-2

Versions of packages dgit suggests:
ii  sbuild  0.91.9

-- no debconf information

-- 
Regards,
Xiyue Deng

Attachment: signature.asc
Description: PGP signature

Reply via email to