Your message dated Fri, 22 Jan 2021 10:18:29 +0000
with message-id <[email protected]>
and subject line Bug#941428: fixed in libsdl2-mixer 2.0.4+dfsg1-3
has caused the Debian Bug report #941428,
regarding libsdl2-mixer-dev: please add a superficial autopkgtest
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.)


-- 
941428: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941428
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libsdl2-mixer-dev
Version: 2.0.4+dfsg1-2
Severity: wishlist
Tags: patch

While backporting libsdl2-mixer to a Debian derivative I added the
attached autopkgtest. It doesn't have much coverage, but it does
demonstrate that the -dev package doesn't have missing dependencies
and that the library doesn't immediately crash. I've found that smoke
tests of this sort are surprisingly effective for detecting regressions.

    smcv
>From 3c1369c5be0c1ccbe1312a83684129be8f2f448c Mon Sep 17 00:00:00 2001
From: Simon McVittie <[email protected]>
Date: Tue, 24 Sep 2019 12:30:52 +0100
Subject: [PATCH] Add a superficial autopkgtest for libsdl2-mixer-dev

This builds the two example programs, playmus and playwave, and runs
them with the dummy audio backend. It doesn't provide much coverage,
but does at least demonstrate that the -dev package is working
correctly, without missing dependencies.

Signed-off-by: Simon McVittie <[email protected]>
---
 debian/tests/control           |  7 +++++++
 debian/tests/libsdl2-mixer-dev | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 debian/tests/control
 create mode 100755 debian/tests/libsdl2-mixer-dev

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..792ed48
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,7 @@
+Tests: libsdl2-mixer-dev
+Restrictions: allow-stderr, superficial
+Depends:
+ alsa-utils,
+ libsdl2-mixer-dev,
+ xauth,
+ xvfb,
diff --git a/debian/tests/libsdl2-mixer-dev b/debian/tests/libsdl2-mixer-dev
new file mode 100755
index 0000000..59318e1
--- /dev/null
+++ b/debian/tests/libsdl2-mixer-dev
@@ -0,0 +1,32 @@
+#!/bin/sh
+# Copyright 2019 Collabora Ltd.
+# SPDX-License-Identifier: Zlib
+# (see "zlib/libpng" in debian/copyright)
+
+set -eux
+
+if [ -n "${AUTOPKGTEST_ARTIFACTS-}" ]; then
+	WORKDIR="$AUTOPKGTEST_ARTIFACTS"
+else
+	WORKDIR="$(mktemp -d)"
+	trap 'cd /; rm -fr "$WORKDIR"' 0 INT QUIT ABRT PIPE TERM
+fi
+
+export SDL_AUDIODRIVER=dummy
+
+cp playmus.c "$WORKDIR"
+cp playwave.c "$WORKDIR"
+
+cd "$WORKDIR"
+
+# Deliberately word-splitting pkg-config's output:
+# shellcheck disable=SC2046
+gcc -oplaymus playmus.c $(pkg-config --cflags --libs SDL2_mixer)
+# shellcheck disable=SC2046
+gcc -oplaywave playwave.c $(pkg-config --cflags --libs SDL2_mixer)
+
+set -- xvfb-run -a
+
+# This audio file is shipped in the alsa-utils package
+"$@" ./playmus /usr/share/sounds/alsa/Front_Center.wav
+"$@" ./playwave /usr/share/sounds/alsa/Front_Center.wav
-- 
2.23.0


--- End Message ---
--- Begin Message ---
Source: libsdl2-mixer
Source-Version: 2.0.4+dfsg1-3
Done: Fabian Greffrath <[email protected]>

We believe that the bug you reported is fixed in the latest version of
libsdl2-mixer, 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.
Fabian Greffrath <[email protected]> (supplier of updated libsdl2-mixer 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: Fri, 22 Jan 2021 10:59:38 +0100
Source: libsdl2-mixer
Architecture: source
Version: 2.0.4+dfsg1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian SDL packages maintainers 
<[email protected]>
Changed-By: Fabian Greffrath <[email protected]>
Closes: 941428
Changes:
 libsdl2-mixer (2.0.4+dfsg1-3) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Simon McVittie ]
   * Add a superficial autopkgtest for libsdl2-mixer-dev (Closes: #941428)
   * d/rules: Don't explicitly use --as-needed linker option.
     It's the default with bullseye toolchains.
 .
   [ Felix Geyer ]
   * Switch to debhelper compat level v12
 .
   [ Debian Janitor ]
   * Use secure copyright file specification URI.
   * debian/copyright: use spaces rather than tabs to start continuation
     lines.
   * Rely on pre-initialized dpkg-architecture variables.
 .
   [ Fabian Greffrath ]
   * Backport a patch from upstream that fixes a use-after-free in
     music_fluidsynth.c, which would cause a segmentation fault with
     libfluidsynth 2.1.6 whenever a song was stopped.
Checksums-Sha1:
 5d1c5747ae9d722b9eb33e8447b8a092a3351bd4 2444 libsdl2-mixer_2.0.4+dfsg1-3.dsc
 cc087027151d0148b31c2d601e41d59cfe39385f 9736 
libsdl2-mixer_2.0.4+dfsg1-3.debian.tar.xz
 ff4a9d1c1b14e75107e47d737dc8c499face02f3 11943 
libsdl2-mixer_2.0.4+dfsg1-3_amd64.buildinfo
Checksums-Sha256:
 78aee6c1d670e8c21b4d0862116bf235299933fe54560a62e4aa50709e8a8afa 2444 
libsdl2-mixer_2.0.4+dfsg1-3.dsc
 9c8fc0bc031fec08d7b785f0f9de14ce6705bab437ec97b4298c78ea4a090e65 9736 
libsdl2-mixer_2.0.4+dfsg1-3.debian.tar.xz
 92d113e99667b14cadd1f3c5b29f6fc8cd339a25b356d6f43d25b0487f26fe26 11943 
libsdl2-mixer_2.0.4+dfsg1-3_amd64.buildinfo
Files:
 be5cb3f18f6f183fbcc3018344c73b9d 2444 libs optional 
libsdl2-mixer_2.0.4+dfsg1-3.dsc
 a94c633fa4d48ad8ddb49b421f4cf73f 9736 libs optional 
libsdl2-mixer_2.0.4+dfsg1-3.debian.tar.xz
 e2e2668fdc1cfbbaa326d9656c623f35 11943 libs optional 
libsdl2-mixer_2.0.4+dfsg1-3_amd64.buildinfo

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

iQJGBAEBCAAwFiEEIsF2SKlSa4TfGRyWy+qOlwzNWd8FAmAKor0SHGZhYmlhbkBk
ZWJpYW4ub3JnAAoJEMvqjpcMzVnfyv8QANElNM94BDzXc7xXMwQqP8IHex9YBwR5
nUbFFau/cf3gRiWj4nLQBaSAaf3rcl3W9mr71hiCdWF4++xQmaeGeHe1pfvsOi0U
S9b/jARtBjf2xRC3sIRzeGHLXxg6KiFzh5Uf4mgoFvFtYomS4bVTTPAhMXncXO9a
qd4gAIT+FCXb1sC4zEVEKb5HkGyKv40EUwPjSP78vk8eH+I9uaOEB7i/N2U1jPoq
jhHVr7+ytB1OvTWaEx3hTx7RaRQZQtyimnl6WxG01aT1WvLmZ0U0978CCEU1x8HN
ggYxy1HbLpaBloA1CDGeEvCLJLL4I7E1he7b4HqGfxgTBu6F89Cka/ktfJwAa0oz
01SDEmtbsFn42rt/Q/30LHfiOLurJrV0owtTg7RtjfR/Hz9whJtXOwt20jBIx5yE
KNMAJULDYzKZN+3MmV6su/qRM9d2wj7+GPSdRiKGiWcy6eLcx3ZDP1dHdN5hYRrt
/zZ25RjE9crqXNpRpcQEGzGnl4sg6beon3lg/lj2ycxhWHcPBqPiUNi3clkuGLGE
wa06Du0mJ1Z1WKQIXs+npdjqCjEUE2+aZjSb8ZlvUzMZ7qBFq5SGNm9QFhk+vH8j
EcBP7myZmVgVQefWWPs2/Gm8ENllanjcJvnk3YgR+OAg4BJReP46QYwCZ1FxLfiO
LhY4iKKKNZpW
=ZT9A
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to