Your message dated Tue, 29 Sep 2020 11:03:27 +0000
with message-id <[email protected]>
and subject line Bug#946232: fixed in nss-mdns 0.14.1-2
has caused the Debian Bug report #946232,
regarding nss-mdns: please make autopkgtests cross-test-friendly
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.)


-- 
946232: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=946232
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: nss-mdns
Version: 0.14.1-1
Severity: minor
Tags: patch
User: [email protected]
Usertags: origin-ubuntu focal ubuntu-patch

Dear maintainers,

In Ubuntu, we are in the process of moving the i386 architecture to a
compatibility-only layer on amd64, and therefore we are also moving our
autopkgtest infrastructure to test i386 binaries in a cross-environment.

This requires changes to some tests so that they are cross-aware and can do
the right thing.

The nss-mdns tests /almost/ all pass in a cross environment, with the
exception of the remove-reinstall test, which fails because it winds up
acting on the amd64 package instead of the foreign-arch i386 package:

  
https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-focal/focal/i386/n/nss-mdns/20191205_172326_4b1c4@/log.gz

The attached patch should be sufficient to let the test pass again, as
should be seen here shortly:

  http://autopkgtest.ubuntu.com/packages/n/nss-mdns/focal/i386

Note that upstream autopkgtest doesn't currently set DEB_HOST_ARCH so this
is a complete no-op in Debian for the moment.  Support for cross-testing in
autopkgtest is currently awaiting review at
https://salsa.debian.org/ci-team/autopkgtest/merge_requests/69 and once
landed, will still have no effect unless autopkgtest is invoked with a '-a'
option.  So this change should be safe to land in your package despite this
not being upstream in autopkgtest.

There are also several autopkgtests in your package which wind up testing
the amd64 version of libnss-mdns instead of the i386 version, and giving a
false positive test result.  I haven't taken the time to fix these, since
there are other tests that are at least minimally testing aspects of the
i386 package, so it's useful to have the autopkgtests for this package as a
whole passing rather than us ignoring the test failures unconditionally for
i386.

Thanks for considering,

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
[email protected]                                     [email protected]
diff -Nru nss-mdns-0.14.1/debian/tests/remove-reinstall 
nss-mdns-0.14.1/debian/tests/remove-reinstall
--- nss-mdns-0.14.1/debian/tests/remove-reinstall       2018-04-25 
15:30:42.000000000 -0700
+++ nss-mdns-0.14.1/debian/tests/remove-reinstall       2019-12-05 
13:58:02.000000000 -0800
@@ -11,26 +11,36 @@
 assert_succeeds avahi-set-host-name "$distinctive_hostname"
 sleep 3
 
-assert_succeeds apt-get -y purge libnss-mdns
+pkg=libnss-mdns
+if [ -n "$DEB_HOST_ARCH" ]; then
+    pkg="$pkg:$DEB_HOST_ARCH"
+fi
+assert_succeeds apt-get -y purge "$pkg"
 
 assert_succeeds perl -i -pe 's/^hosts:.*/hosts: files dns/' /etc/nsswitch.conf
 
-assert_succeeds apt-get -y install libnss-mdns
+assert_succeeds apt-get -y install "$pkg"
 assert_hosts "hosts: files mdns4_minimal [NOTFOUND=return] dns"
-assert_succeeds getent hosts "$distinctive_hostname.local"
 
-assert_succeeds apt-get -y remove libnss-mdns
+# This is going to fail on a cross-test because 'getent' is from the testbed 
arch
+if [ -z "$DEB_HOST_ARCH" ]; then
+    assert_succeeds getent hosts "$distinctive_hostname.local"
+fi
+
+assert_succeeds apt-get -y remove "$pkg"
 # No assertion about whether it's in nsswitch.conf: debian/tests/nss-behaviour
 # demonstrates that it doesn't actually matter
 assert_status 2 getent hosts "$distinctive_hostname.local"
 
 echo "# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500478";
 echo "# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782282";
-assert_succeeds apt-get -y install libnss-mdns
+assert_succeeds apt-get -y install "$pkg"
 assert_hosts "hosts: files mdns4_minimal [NOTFOUND=return] dns"
-assert_succeeds getent hosts "$distinctive_hostname.local"
+if [ -z "$DEB_HOST_ARCH" ]; then
+    assert_succeeds getent hosts "$distinctive_hostname.local"
+fi
 
-assert_succeeds apt-get -y purge libnss-mdns
+assert_succeeds apt-get -y purge "$pkg"
 assert_hosts "hosts: files dns"
 assert_status 2 getent hosts "$distinctive_hostname.local"
 

--- End Message ---
--- Begin Message ---
Source: nss-mdns
Source-Version: 0.14.1-2
Done: Simon McVittie <[email protected]>

We believe that the bug you reported is fixed in the latest version of
nss-mdns, 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.
Simon McVittie <[email protected]> (supplier of updated nss-mdns 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: SHA256

Format: 1.8
Date: Tue, 29 Sep 2020 10:31:25 +0100
Source: nss-mdns
Architecture: source
Version: 0.14.1-2
Distribution: unstable
Urgency: medium
Maintainer: Utopia Maintenance Team 
<[email protected]>
Changed-By: Simon McVittie <[email protected]>
Closes: 946232
Changes:
 nss-mdns (0.14.1-2) unstable; urgency=medium
 .
   [ Ondřej Nový ]
   * d/changelog: Remove trailing whitespaces
 .
   [ Simon McVittie ]
   * d/salsa-ci.yml: Request standard CI on salsa.debian.org
   * Standards-Version: 4.5.0 (no changes required)
   * d/tests: Exit 77 if all tests are skipped.
     Mark all tests as skippable to support this.
   * Use debhelper-compat 12
   * d/README.Debian: Update to mention #466014, #892854 and .local SOA
     heuristic
   * d/tests/remove-reinstall: When using proposed cross-autopkgtest
     infrastructure to test i386 packages in an amd64 testbed, act on the
     i386 package. Thanks, Steve Langasek (Closes: #946232)
   * d/tests: When using proposed cross-autopkgtest infrastructure,
     distinguish between testbed and host versions of nss-mdns and getent,
     and automatically use host architecture as secondary architecture
     for multiarch tests
   * Fill in Homepage field.
   * Set field Upstream-Name in debian/copyright.
   * d/upstream/metadata: Add
Checksums-Sha1:
 eddb00a160216781a1a797524af6b3f358bad545 2230 nss-mdns_0.14.1-2.dsc
 4aa8404d53cbc0eaffc16c779d6ca3755ef9c72d 15192 nss-mdns_0.14.1-2.debian.tar.xz
 01cab29055867d780b0f157c4b57780e87548943 5191 
nss-mdns_0.14.1-2_source.buildinfo
Checksums-Sha256:
 0544f9148ec2af07de109c08b570ce351c5df4addbb74485c34d1501b32034ff 2230 
nss-mdns_0.14.1-2.dsc
 8316e6fb5340a79af366248a0bdc7c805086aeecc193ea38fffb0b621ace3b2e 15192 
nss-mdns_0.14.1-2.debian.tar.xz
 a5e323d5271f8ba0560412cf406a21a2ec0898af3e7a61810db2f9b619cc6007 5191 
nss-mdns_0.14.1-2_source.buildinfo
Files:
 0249e3af8b1c594e9f42915c28ac83f3 2230 admin optional nss-mdns_0.14.1-2.dsc
 cde6486f3f1a1afff94bee7513a8e1fc 15192 admin optional 
nss-mdns_0.14.1-2.debian.tar.xz
 70ba5b49433c9ad267174950b32f9e77 5191 admin optional 
nss-mdns_0.14.1-2_source.buildinfo

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

iQIzBAEBCAAdFiEENuxaZEik9e95vv6Y4FrhR4+BTE8FAl9zDswACgkQ4FrhR4+B
TE8kTQ//ci/OvFfLyoGhtc22kwu82NWX1B8+miWMI+xXlzoq/Zn+rDjeIE62YhRi
lTn2R4DQ8h/BWs83G1P3OvLCwfYMSWj2mUhNHaQxoGoPxDd1HWdOGYMjxQ2S6Jj/
ciqYgJ1t5mF/9D2OiUNNnfTKNt96psFG0tx/q5lucG86Piajp11I79QsVajEpQAa
hsxGyBVnbG4w9pUsk+gWYU40VNyNRamfqfQfsiJxbXGL64SuDlCwuguRP9vvbtDk
nxrczWDCi8fRZutZ0ELUhVGpg35NX2C2mojL+jPEK60MjQ34O8ZX0ZrlSz9YFNrE
Dyu2O0FNfXivl/Tx04988PIhJj87mIN4LZFI2AxANFG78PKevrCccp6R8oToy2UD
BYZfVNzHqnu1LjfSfNt+j7O0KBb3QFEa8PLn/In41R/Yms69za4qlCacWpwkcVRn
pSJwAIFyM07/IVMBBtchHjM71yrY8HOsoIkfcZlyTYtgq8hWOJ7O9G6W3KDGdB71
icSst7hLGebMdM6i8QQqGRUtdWSFzHdUPWeWfkIj/N4Wq0hPSKM5qpP0Kn15Wmk7
8V6lHgjSAH8ZP3sxZ+kdnQMoH8EIP2i2Rbx8yeDvxwhG0aLjnC86+6LFi4A1JxpU
SOnBOjfaPFYTkGVOafSjDofKvjDWPVFQBkc7KDQTc2n6h84xWgE=
=wWlU
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to