Your message dated Mon, 03 Feb 2020 23:06:27 +0000 with message-id <[email protected]> and subject line Bug#939925: fixed in gmime 3.2.5-2 has caused the Debian Bug report #939925, regarding gmime: Add a superficial test for the -dev package 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.) -- 939925: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939925 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Source: gmime Version: 3.2.1-1 Severity: wishlist Tags: patch I've recently been adding superficial autopkgtests for -dev packages in GNOME and GNOME-adjacent libraries. These tests check that the -dev package is usable, and in particular often detect missing -dev dependencies like #939222 in gcab (although gmime does not seem to have that problem). Please consider the attached patch. Thanks, smcv>From f66dced886616031deed2af1a3b6c63f8c460f75 Mon Sep 17 00:00:00 2001 From: Simon McVittie <[email protected]> Date: Tue, 10 Sep 2019 09:05:16 +0100 Subject: [PATCH] d/tests/libgmime-3.0-dev: Add a superficial test for the -dev package Tests like this one check that the -dev package is usable, and in particular often detect missing -dev dependencies like #939222 in gcab. --- debian/tests/control | 5 +++++ debian/tests/libgmime-3.0-dev | 29 +++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 debian/tests/libgmime-3.0-dev diff --git a/debian/tests/control b/debian/tests/control index dce76310..4f0b0a1a 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -1,2 +1,7 @@ Tests: gir Depends: diffutils, gir1.2-gmime-3.0, python3-gi + +Tests: libgmime-3.0-dev +Depends: build-essential, + libgmime-3.0-dev +Restrictions: allow-stderr superficial diff --git a/debian/tests/libgmime-3.0-dev b/debian/tests/libgmime-3.0-dev new file mode 100755 index 00000000..43d1670d --- /dev/null +++ b/debian/tests/libgmime-3.0-dev @@ -0,0 +1,29 @@ +#!/bin/sh +# autopkgtest check: Build and run a program against gmime, to verify +# that the headers and pkg-config file are installed correctly +# (C) 2012 Canonical Ltd. +# (C) 2018-2019 Simon McVittie +# Authors: Martin Pitt, Simon McVittie + +set -eux + +WORKDIR=$(mktemp -d) +trap 'rm -rf "$WORKDIR"' 0 INT QUIT ABRT PIPE TERM +cd "$WORKDIR" +cat <<'EOF' > trivial.c +#include <gmime/gmime.h> + +int main(void) +{ + g_assert_true(g_mime_check_version(3, 0, 0)); + return 0; +} +EOF + +# Deliberately word-splitting pkg-config's output: +# shellcheck disable=SC2046 +gcc -o trivial trivial.c $(pkg-config --cflags --libs gmime-3.0) +echo "build: OK" +[ -x trivial ] +./trivial +echo "run: OK" -- 2.23.0
--- End Message ---
--- Begin Message ---Source: gmime Source-Version: 3.2.5-2 We believe that the bug you reported is fixed in the latest version of gmime, 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. Daniel Kahn Gillmor <[email protected]> (supplier of updated gmime 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: Mon, 03 Feb 2020 17:12:00 -0500 Source: gmime Architecture: source Version: 3.2.5-2 Distribution: unstable Urgency: medium Maintainer: Daniel Kahn Gillmor <[email protected]> Changed-By: Daniel Kahn Gillmor <[email protected]> Closes: 939925 Changes: gmime (3.2.5-2) unstable; urgency=medium . [ Simon McVittie ] * Add a superficial test for the -dev package (Closes: #939925) Checksums-Sha1: 3d13f0466e65dab6f798e47d9d9c6bbec89a8130 1831 gmime_3.2.5-2.dsc 0d2ce1f9d609df006a698b4639531c646ffa3de6 13344 gmime_3.2.5-2.debian.tar.xz 3eda6476de56df895bdb6c2defc77f631505c4c1 13905 gmime_3.2.5-2_source.buildinfo Checksums-Sha256: 5936b95a8113c84abcd13909b876d73358922b60269557d0e999c265c2355535 1831 gmime_3.2.5-2.dsc 3eb5b107d2359a2ad7677258a531b5e4e42a7283275313a3f3aff18249750111 13344 gmime_3.2.5-2.debian.tar.xz 09148e75fe32c3e55c4aac02a17ead2b6299695015f45094ad711ac1ce1f4699 13905 gmime_3.2.5-2_source.buildinfo Files: 74f79fee08a42504605058fbd5f680c7 1831 libs optional gmime_3.2.5-2.dsc 751e346ae966a4a17499eff3fbb04ed4 13344 libs optional gmime_3.2.5-2.debian.tar.xz 3fadaacc94ec1bcb2572e439a0e2bb94 13905 libs optional gmime_3.2.5-2_source.buildinfo -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQsv6x2UaqQJzY+dXHEDyVUMvKBDwUCXjibHAAKCRDEDyVUMvKB D1nHAQDYswYJEzNAZqq642JS9z+viMrEdmLfpd68ZwIyhhgeqAEA0Yua2SRvNK88 /CYop/52p4Ih08mIExZmxFrzLFfoUAY= =OutR -----END PGP SIGNATURE-----
--- End Message ---

