Your message dated Tue, 26 Apr 2016 21:50:44 +0000
with message-id <[email protected]>
and subject line Bug#769095: fixed in dkms 2.2.0.3-2.1
has caused the Debian Bug report #769095,
regarding dkms: Add script for autopkgtesting DKMS packages
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.)


-- 
769095: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769095
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dkms
Version: 2.2.0.3-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-ubuntu ubuntu-patch vivid
User: [email protected]
Usertags: autopkgtest

Hello,

With autodep8 [1] we can now generate autopkgtest metadata for entire
classes of similar packages, such as the already existing Perl/Ruby
ones. We should do the same for DKMS, to check that a particular DKMS
package builds against our default kernel, installs correctly, and has
sufficient dependencies.

This new script provides a general test for DKMS packages. It was
derived from Ubuntu's tailored scripts [2], but we are moving that to
autopkgtest to avoid custom infrastructure and run everything in the
same way. When applying it, please take care to chmod it to 755.

The other half of this is to teach autodep8 to recognize a DKMS
package and generate test metadata. That happens in [3].

After that, one can do

  adt-run dkms_2.2.0.3-2dkms1_all.deb sl-modem --- schroot sid

to test e. g. sl-modem, where dkms_2.2.0.3-2dkms1_all.deb is the
locally built dkms with this patch applied. Once that's in the
archive, that argument gets dropped of course.

Thanks for considering,

Martin

[1] https://packages.debian.org/sid/autodep8
[2] https://jenkins.qa.ubuntu.com/view/DKMS/?
[3] https://bugs.debian.org/766668
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
 * Add debian/scripts/dkms-autopkgtest script: Common autopkgtest script for
   testing a dkms source package.
diff -Nru dkms-2.2.0.3/debian/install dkms-2.2.0.3/debian/install
--- dkms-2.2.0.3/debian/install 2014-01-15 12:55:33.000000000 +0100
+++ dkms-2.2.0.3/debian/install 2014-10-24 00:11:06.000000000 +0200
@@ -2,3 +2,4 @@
 debian/scripts/dh_dkms.1    usr/share/man/man1/
 debian/scripts/*-dkms       usr/share/debhelper/autoscripts/
 debian/scripts/dkms.pm      usr/share/perl5/Debian/Debhelper/Sequence/
+debian/scripts/dkms-autopkgtest usr/lib/dkms/
diff -Nru dkms-2.2.0.3/debian/scripts/dkms-autopkgtest 
dkms-2.2.0.3/debian/scripts/dkms-autopkgtest
--- dkms-2.2.0.3/debian/scripts/dkms-autopkgtest        1970-01-01 
01:00:00.000000000 +0100
+++ dkms-2.2.0.3/debian/scripts/dkms-autopkgtest        2014-10-24 
18:10:01.000000000 +0200
@@ -0,0 +1,66 @@
+#!/bin/sh
+# Common autopkgtest script for testing a dkms source package.
+# Author: Martin Pitt <[email protected]>
+# Copyright: (C) 2014 Canonical Ltd.
+set -eu
+
+run_pkg() {
+    pkg="$1"
+
+    echo "I: Installing binary package $pkg"
+    export DEBIAN_FRONTEND=noninteractive
+    RC=0
+    apt-get install -yq $pkg </dev/null || RC=$?
+    # collect build logs as artifacts
+    (cd /var/lib/dkms; find -name "make.log" -print0 | xargs -0 tar c) > 
"$ADT_ARTIFACTS/$pkg-make-logs.tar"
+
+    if [ "$RC" -ne 0 ]; then
+        echo "E: Package $pkg failed to install" >&2
+        exit 1
+    fi
+
+    echo "I: Testing binary package $pkg"
+
+    if ! dkms_conf=$(dpkg -L $pkg | grep 'dkms.conf$'); then
+        echo "I: Package $pkg has no dkms.conf, skipping"
+        return
+    fi
+    dkms_pkg=$(bash -c ". $dkms_conf; echo \$PACKAGE_NAME" 2>/dev/null)
+
+    echo "I: Testing if $dkms_pkg modules are correctly installed"
+    dkmsstatus="$(dkms status $dkms_pkg)"
+    if [ -z "$dkmsstatus" ]; then
+        echo "E: dkms status output is empty!" >&2
+        exit 1
+    fi
+    echo "$dkmsstatus"
+
+    if ! echo "$dkmsstatus" | grep -q "installed$"; then
+        echo "E: not installed" >&2
+        exit 1
+    fi
+
+    # skip modprobing for now; this fails too often (needs particular
+    # hardware/firmware/etc)
+    # for mod in $(awk -F '"' '/^BUILT_MODULE_NAME/ {print $2}' $dkms_conf); do
+    #     echo "I: modprobe $mod"
+    #     if ! modprobe $mod; then
+    #         echo "E: Failed to modprobe module $mod" >&2
+    #         exit 1
+    #     else
+    #         echo "I: $modname loaded"
+    #     fi
+    # done
+}
+
+# Try and remove dkms to spot packages which miss a dkms dependency
+dpkg --remove dkms || true
+
+for pkg in $(awk '/^Package:/ { print $2 }' debian/control); do
+    # package might be arch: restriction or udeb etc.
+    if ! apt-cache show $pkg >/dev/null 2>&1; then
+        echo "I: Skipping unavailable package $pkg"
+        continue
+    fi
+    run_pkg $pkg
+done

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: dkms
Source-Version: 2.2.0.3-2.1

We believe that the bug you reported is fixed in the latest version of
dkms, 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.
Petter Reinholdtsen <[email protected]> (supplier of updated dkms 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: Sat, 23 Apr 2016 19:55:25 +0200
Source: dkms
Binary: dkms
Architecture: source
Version: 2.2.0.3-2.1
Distribution: unstable
Urgency: medium
Maintainer: Dynamic Kernel Modules Support Team 
<[email protected]>
Changed-By: Petter Reinholdtsen <[email protected]>
Description:
 dkms       - Dynamic Kernel Module Support Framework
Closes: 769095
Changes:
 dkms (2.2.0.3-2.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Add dkms-autopkgtest script from Ubuntu (Closes: #769095).
   * Updated Standards-Version from 3.9.2 to 3.9.7.
Checksums-Sha1:
 81757fb92eccd590ad462fabb5721ca89ee1fbec 1965 dkms_2.2.0.3-2.1.dsc
 cdef39728312e084a98c0e7c2900184d248f6c8e 15960 dkms_2.2.0.3-2.1.debian.tar.xz
Checksums-Sha256:
 77dc6f615f3565b1ab781edb6b502ad71c66c408b2e17528089f9ab12b46b10b 1965 
dkms_2.2.0.3-2.1.dsc
 3b2ab2b4220aca210a7a00b74944a414efc5de36f2b4e4e9a85b828cc87dd693 15960 
dkms_2.2.0.3-2.1.debian.tar.xz
Files:
 e68126a1286eb99ec81c2b8f93e55790 1965 kernel optional dkms_2.2.0.3-2.1.dsc
 6cde43bdcc76d87c1d67efd00f1b9289 15960 kernel optional 
dkms_2.2.0.3-2.1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXH8WoAAoJEIEoCqCHuvsOwlAQALX33FRGFyzopKeIRykF06Lz
Tnx/S5AiyTzUA1VkTE7mMK73Po6N5cOr/eM4Eoct0Z4JJUwjnyCSj2psY4B8/FBA
srwsTXb9S6mK0vjrxcTNUwAb4HUlFKMO+PAG7sjsPDw6m5A+HCV5F4pPlG3t8oAD
EqlGEHOQF74ZRzDOsJLRy+4HxZ5V8pb2hwFcKLbf8WcVthrjeUv+WF7eAFoM29OM
QLSE0MwqdyfRlNHMIzfajirMfr6OQL050H9Vg8rmclu0sxnocVjVfOOKWhnSrktV
/83l98jaeXrYBWh5SLb7t4qDyWSe5UgSNIHVHORtvUbA+ba885mlESBOSL/m+Dkf
24J/ZTykF2X4XXf9iDI0u1T34csHObcwoXEgt55FEzLMBAzRic5zRLQUUyJaiKkP
8qj2dQkmgujy6gN7B08G2QHyFzdurjL4K10Kr/9hJNdVSO+wxptjD/x1mIx9wMzg
pz8nEATSWYpMeP7mIemzOnz4b6nP7/t/Z/Qo9uPRJXZdns2zxg3AWfJ2UI4B5WyI
g6mopNQiK4FQO/rWmRzF08SkmW3h6FYwJuOBS5BEwNmjpJinzB1sq0QuydKLgo6q
trGoibQRaDA8kPch49mUWa+Uqy8+c+t712rfqMCso0UUJmBYuA/IDY12d77X2wXH
DYbCKxo9WYqSEE7cr+PK
=MV4B
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-dkms-maint mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-dkms-maint

Reply via email to