Bug#894504: backportpackage: sbuild creates .changes for release rather than release-backports

2021-12-05 Thread Mattia Rizzolo
On Sat, Mar 31, 2018 at 02:00:06PM +0100, Christopher Hoskin wrote:
> Using backportpackage with the -b and --builder=sbuild options produces a 
> .changes file for release rather than release-backports.
> 
> e.g.
> 
> backportpackage -b -w build --builder=sbuild --destination=stretch 
> --suffix=~bpo9+1 dh-golang
> 
> cat build/buildresult/dh-golang_1.34~debian9.0.1~bpo9+1_amd64.changes | grep 
> Distribution
> Distribution: stretch
> 
> This appears to be different to the behaviour with --builder=pbuilder. I 
> think pbuilder uses the release specified in debian/changelog to produce the 
> .changes file, whereas sbuild overrides this with the option passed to it in 
> --dist.

This is exactly what is happening.

ubuntutools/builder.py in Sbuild().build() uses --dist; that's the wrong
flag, and should most likely be --chroot, but changing this is sure to
break somebody's setup, so I'm relucanct to do it.
Not to mention that I don't use sbuild.

-- 
regards,
Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540  .''`.
More about me:  https://mapreri.org : :'  :
Launchpad user: https://launchpad.net/~mapreri  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-


signature.asc
Description: PGP signature


Bug#894504: backportpackage: sbuild creates .changes for release rather than release-backports

2018-03-31 Thread Christopher Hoskin
Package: ubuntu-dev-tools
Version: 0.162
Severity: normal

Dear Maintainer,

Using backportpackage with the -b and --builder=sbuild options produces a 
.changes file for release rather than release-backports.

e.g.

backportpackage -b -w build --builder=sbuild --destination=stretch 
--suffix=~bpo9+1 dh-golang

cat build/buildresult/dh-golang_1.34~debian9.0.1~bpo9+1_amd64.changes | grep 
Distribution
Distribution: stretch

This appears to be different to the behaviour with --builder=pbuilder. I think 
pbuilder uses the release specified in debian/changelog to produce the .changes 
file, whereas sbuild overrides this with the option passed to it in --dist.

If I try instead to run:

backportpackage -b -w build --builder=sbuild --destination=stretch-backports 
--suffix=~bpo9+1 dh-golang

Then I get the message:

dpkg-source: info: extracting dh-golang in dh-golang-stretch-backports
dpkg-source: info: unpacking dh-golang_1.34.tar.xz
backportpackage: Error: Unknown release codename stretch-backports

One possible solution would be to append -backports to the release passed to 
sbuild via --dist. The user would then need to have a chroot with a name like 
$release-backports-$arch-sbuild, $release-backports-sbuild, 
$release-backports-$arch or $release-backports. Alternatively the chroot name 
could be specified to sbuild separately with the --chroot option.

Or, backportpackage could be changed to accept release-backports as a 
destination.

Thanks.

Christopher Hoskin

-- System Information:
Debian Release: 9.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ubuntu-dev-tools depends on:
ii  binutils   2.28-5
ii  dctrl-tools2.24-2+b1
ii  devscripts 2.17.6+deb9u1
ii  diffstat   1.61-1+b1
ii  distro-info0.14
ii  dpkg-dev   1.18.24
ii  lsb-release9.20161125
ii  perl   5.24.1-3+deb9u2
ii  python 2.7.13-2
ii  python-apt 1.4.0~beta3
ii  python-debian  0.1.30
ii  python-distro-info 0.14
ii  python-httplib20.9.2+dfsg-1
ii  python-launchpadlib1.10.4-1
ii  python-lazr.restfulclient  0.13.4-6
ii  python-ubuntutools 0.157
ii  sudo   1.8.19p1-2.1

Versions of packages ubuntu-dev-tools recommends:
ii  bzr 2.7.0+bzr6619-7+deb9u1
ii  bzr-builddeb2.8.10
ii  ca-certificates 20161130+nmu1
ii  cowbuilder  0.85
ii  debian-archive-keyring  2017.5
ii  debian-keyring  2017.05.28
ii  debootstrap 1.0.89
ii  dput0.12.1
ii  genisoimage 9:1.1.11-3+b2
ii  libwww-perl 6.15-1
ii  lintian 2.5.50.4
ii  patch   2.7.5-1+b2
ii  pbuilder0.228.7
ii  python-dns  2.3.6-3
ii  python-soappy   0.12.22-1
ii  quilt   0.63-8
ii  reportbug   7.1.7+deb9u1
ii  sbuild  0.73.0-4

Versions of packages ubuntu-dev-tools suggests:
ii  python 2.7.13-2
ii  python-simplejson  3.10.0-1
pn  qemu-user-static   

-- no debconf information