Your message dated Wed, 29 May 2024 09:04:58 +0000
with message-id <[email protected]>
and subject line Bug#1071000: fixed in sbuild 0.85.9
has caused the Debian Bug report #1071000,
regarding sbuild-qemu: runs lintian on .changes file with Distribution != 
changelog target and lintian complains
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1071000: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071000
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sbuild-qemu
Version: 0.85.8
Severity: normal
X-Debbugs-Cc: [email protected]

Hello!

I am still trying to set up sbuild-qemu to build (and check/test) Debian
packages.

After creating the virtual machine image:

  $ mkdir -p ~/.cache/sbuild/build
  $ cd /dev/shm
  $ TMPDIR=/dev/shm mmdebstrap-autopkgtest-build-qemu \
                    --size=25G --boot=efi sid unstable-autopkgtest-amd64.img
  $ mv -i unstable-autopkgtest-amd64.img ~/.cache/sbuild/

I prepared the following configuration file:

  $ cat ~/.sbuildrc 
  $source_only_changes = 1;
  $run_lintian = 1;
  $lintian_require_success = 0;
  $run_piuparts = 1;
  $piuparts_root_args = '';
  $piuparts_require_success = 1;
  $run_autopkgtest = 1;
  $autopkgtest_root_args = '';
  $autopkgtest_require_success = 1;
  $build_dir = "$HOME/.cache/sbuild/build";
  
  # don't remove this, Perl needs it:
  1;

I can update the virtual machine:

  $ sbuild-qemu-update --boot=efi unstable-autopkgtest-amd64.img

and I can build a package from within the unpacked source tree:

  $ sbuild-qemu --boot=efi --overlay-dir=/dev/shm

However, when I do so, I am not necessarily planning to upload the
Debian package to the Debian archive: it could be still in development
(not yet ready for an upload) and I just want to check that it can be
built and perform the usual checks on it, namely lintian (first of all!),
followed by piuparts and autopkgtest.
If this is the case, my latest changelog entry will read 'UNRELEASED' in the
distribution field, but, at the same time, I want to build the package
with the 'unstable-autopkgtest-amd64.img' VM image (to build it for
unstable).

What happens here? It turns out that sbuild-qemu modifies the Distribution
field in the .changes file and sets it to 'unstable', despiting reading
'UNRELEASED' in the latest changelog entry.
Hence lintian complains with an error:

  [...]
  Running lintian...
  E: $PKG_NAME changes: unreleased-changes
  W: $PKG_NAME: changelog-distribution-does-not-match-changes-file unreleased 
!= unstable [usr/share/doc/$PKG_NAME/changelog.gz:1]
  
  E: Lintian run failed (runtime error)
  [...]

How can I fix this issue?
Shouldn't it work out of the box?

I found bug report [#934721], which, however, seems to advocate that
this is the right behavior ?!? Or am I misinterpreting it?

[#934721]: <https://bugs.debian.org/934721>

How can I run lintian on a still-in-developed UNRELEASED package (with
sbuild-qemu)?

Please note that my current setup with pbuilder does not have this issue:
pdebuild generates a .changes file with 'Distribution: UNRELEASED'
and with the latest changelog entry correctly quoted (with 'UNRELEASED'
after the version number parenthesis), and hence lintian is happy...

It has to work out of the box with sbuild-qemu, as well!

Please fix the issue and/or explain what's wrong.

Thanks for your time and patience.


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

Kernel: Linux 6.7.12-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages sbuild-qemu depends on:
ii  autopkgtest      5.34
ii  python3          3.11.8-1
ii  python3-pexpect  4.9-2
ii  python3-psutil   5.9.8-2
ii  qemu-system-x86  1:8.2.3+ds-2
ii  qemu-utils       1:8.2.3+ds-2
ii  sbuild           0.85.8
ii  vmdb2            0.40-1

Versions of packages sbuild-qemu recommends:
ii  qemu-system-arm  1:8.2.3+ds-2
ii  qemu-system-ppc  1:8.2.3+ds-2

sbuild-qemu suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: sbuild
Source-Version: 0.85.9
Done: Jochen Sprickerhof <[email protected]>

We believe that the bug you reported is fixed in the latest version of
sbuild, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jochen Sprickerhof <[email protected]> (supplier of updated sbuild package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 29 May 2024 10:46:22 +0200
Source: sbuild
Architecture: source
Version: 0.85.9
Distribution: unstable
Urgency: medium
Maintainer: sbuild maintainers <[email protected]>
Changed-By: Jochen Sprickerhof <[email protected]>
Closes: 1070007 1071000 1071234
Changes:
 sbuild (0.85.9) unstable; urgency=medium
 .
   [ Aurelien Jarno ]
   * Unshare: add IPv6 loopback address to /etc/hosts
   * Unshare: preserve HOME environment variable
   * Unshare: define the LOGNAME environment variable
 .
   [ Christian Kastner ]
   * sbuild-qemu: Fix typo breaking one guess for image path
   * sbuild-qemu: Don't add --dist (Closes: #1071000)
 .
   [ Helmut Grohne ]
   * lib/Sbuild/ChrootUnshare.pm: Do not expose /sys/kernel in the unshare 
backend.
     (Closes: #1071234)
 .
   [ Timo Röhling ]
   * Relax permissions on pipes connected to STDOUT (Closes: #1070007)
 .
   [ Johannes Schauer Marin Rodrigues ]
   * lib/Sbuild/Conf.pm: make the schroot binary configurable via ~/.sbuildrc
   * bin/sbuild: only check group membership if 'schroot' is configured as the 
schroot binary
Checksums-Sha1:
 f1d84f487a5a94835cd2458b3f8d3d2013bb11df 2555 sbuild_0.85.9.dsc
 6b5f0ec455a045f3ff8ea1c883fb25ce905a9526 259364 sbuild_0.85.9.tar.xz
Checksums-Sha256:
 c2943c5591ebac127c688aab1108534dae00b294332b4ec3f3a0a4f6591009e0 2555 
sbuild_0.85.9.dsc
 c42b43d36d3e822c455f9c8a97e4055193b425ec89a89463c6517c4bb50c600d 259364 
sbuild_0.85.9.tar.xz
Files:
 2cb0a410215d8da2fc4bfbc9cf654d12 2555 devel optional sbuild_0.85.9.dsc
 405dae402217499c1b35a44a0570ac9a 259364 devel optional sbuild_0.85.9.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEc7KZy9TurdzAF+h6W//cwljmlDMFAmZW7koACgkQW//cwljm
lDNLBRAAg4Xzm47bmFeyIWcA6X2EmuucPp3H4HtrCGlg/1cptczC+A+k/+9i5Rs+
yAuuEFQn0AVIKsu9e6NCOd5KJ97lDmHQGNSZaL/L+6PZSbeYkdgCcTjzgoy7XdRW
k0M8r3DOW/wjtyM0QvA3Huh28fRJgEkRspC3Qk9AOIFK+KJkWOceJ1faKN8QWLo6
lg1j17zuca2qZj9K5ZqQDC+HyosnIi3FzUoHgoRADCdnhJIbZYpcEghy/pKmJ+0+
+cat8MYc8i19siKzkHCuo6suoW3kmoqnMB+7MqNqaXRAhSVSkVSOjxji91jWwZbI
JyUvZMzUeLtmolquISy8k/y+0oEl1MhIAKsCm3KMXQ+zdIsj0U/7i2RtPNZMzMcc
8LCDoiXsS5cbib+iSWJ5yFj9+fOLCHBecTLmZHKMEsgmc4XFq0ukDAtoKGZKTxx6
ARIzu7lZBlijK2NDpylgugcGHSUm8Ng+DcInASZ7jQ1uhtQRENtr+VqQkOohI3qa
2CWWMEO+y2U3n0MVpbs0Q9bUt0ZF0cgbkO0+NwM3FVlYwQOE3W1ZO/yJNTqSi+yU
W9OBohn6QV8baq8bk+LR0ByOqex+mfecMGqdLsitWlDS3lxA7ovjsLvCGodf85tR
iqo75ZoM6ojo4mZNgwgVm0ou88qTIQUe+jOEQau/NyVyD072UjA=
=5/J0
-----END PGP SIGNATURE-----

Attachment: pgpKYVsn4eFlj.pgp
Description: PGP signature


--- End Message ---

Reply via email to