Merge ~agherzan/ubuntu/+source/backport-iwlwifi-dkms:ag/fix-kvm-builds into ubuntu/+source/backport-iwlwifi-dkms:ubuntu/devel

Proposed by Andrei Gherzan
Status: Merged
Merged at revision: 1da38ed4d1d502ea27d545ea193819ee67fb0cdd
Proposed branch: ~agherzan/ubuntu/+source/backport-iwlwifi-dkms:ag/fix-kvm-builds
Merge into: ubuntu/+source/backport-iwlwifi-dkms:ubuntu/devel
Diff against target: 13 lines (+5/-0)
1 file modified
debian/backport-iwlwifi-dkms.dkms.in (+5/-0)
Reviewer Review Type Date Requested Status
Dimitri John Ledkov (community) minor packaging comment Approve
Review via email: mp+437204@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Hi,

this is a debian package, and follows the normal ubuntu packaging guidelines. In the kernel team, there are automatic scripts that parse commits and generate appropriate debian/changelog automatically and are able to generate a summary for debian/changelog file, and convert buglinks to LP: #NNNNN form such that they end up in the .changes file and automatically close bug report in launchpad.

I would expect here for you to either provide a manual changelog entry (i.e. dch -i; type useful text with LP: #NNNN) and include it in your commit.

Or such that i can do that with the help of `gbp dch` command (git build package, generate debian packaging changelog entry). That does produce a useful changelog entry but without a bug number:

$ gbp dch --ignore-branch
gbp:info: Changelog last touched at '75ff6531785d9787cec0e4b1ee26f871c1dd4d0d'
gbp:info: Continuing from commit '75ff6531785d9787cec0e4b1ee26f871c1dd4d0d'

$ git diff
diff --git a/debian/changelog b/debian/changelog
index 8ed3d5af17..cf0d5ff836 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+backport-iwlwifi-dkms (9904-0ubuntu3.3) UNRELEASED; urgency=medium
+
+ [ Andrei Gherzan ]
+ * backport-iwlwifi-dkms.dkms.in: Avoid building when kernel config deps are not satisfied
+
+ -- Dimitri John Ledkov <email address hidden> Mon, 13 Feb 2023 14:35:38 +0000
+
 backport-iwlwifi-dkms (9904-0ubuntu3.2) lunar; urgency=medium

   * Support linux 6.1 (LP: #2003808):

As you see that didn't generate LP: #NNNN.

If your changelog entry instead of buglink had "LP: #NNN" it would have working:

$ git log -1
commit 0adf140000eb16d5a4f4b46f5543a036204e4c8a (HEAD -> ag/fix-kvm-builds)
Author: Andrei Gherzan <email address hidden>
Date: Mon Feb 13 13:56:46 2023 +0000

    backport-iwlwifi-dkms.dkms.in: Avoid building when kernel config deps are not satisfied

    Instruct dkms to avoid building when the kernel configuration
    dependencies for the targeted kernel are not in place. This initial
    change defines BUILD_EXCLUSIVE_CONFIG based on the dependencies
    definition of CONFIG_IWLWIFI. This needs to be kept in sync as the
    Kconfig files evolve.

    LP: #2007151

    Signed-off-by: Andrei Gherzan <email address hidden>

then gbp-dch gives me:

$ dpkg-parsechangelog
Source: backport-iwlwifi-dkms
Version: 9904-0ubuntu3.3
Distribution: UNRELEASED
Urgency: medium
Maintainer: Dimitri John Ledkov <email address hidden>
Timestamp: 1676299016
Date: Mon, 13 Feb 2023 14:36:56 +0000
Launchpad-Bugs-Fixed: 2007151
Changes:
 backport-iwlwifi-dkms (9904-0ubuntu3.3) UNRELEASED; urgency=medium
 .
   [ Andrei Gherzan ]
   * backport-iwlwifi-dkms.dkms.in: Avoid building when kernel config deps are not satisfied
     (LP: #2007151)

The generated Launchpad-Bugs-Fixed is the crucial bit here, as that ends up in .changes file and is processed by launchpad.

In the future, for the non-kernel team maintained packages please either provide changelog entries with LP:# or use LP: #NNN form in the git changelog.

Also maybe we should teach git-buildpackage about parsing BugLink: <launchpaddy url>.

review: Approve (minor packaging comment)
Revision history for this message
Andrei Gherzan (agherzan) wrote (last edit ):

That was very useful. Thanks, Dimitri. I have fixed the LP reference in `git log`.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

This is done, no idea how to set this to merged.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/backport-iwlwifi-dkms.dkms.in b/debian/backport-iwlwifi-dkms.dkms.in
2index 600531a..2087ed9 100644
3--- a/debian/backport-iwlwifi-dkms.dkms.in
4+++ b/debian/backport-iwlwifi-dkms.dkms.in
5@@ -1,3 +1,8 @@
6+# Building these modules have configuration requirements for the targeted
7+# kernel. Keep these in sync as the Kconfig files change.
8+# https://bugs.launchpad.net/bugs/2007151
9+BUILD_EXCLUSIVE_CONFIG="CONFIG_PCI CONFIG_HAS_IOMEM CONFIG_CFG80211"
10+
11 PACKAGE_NAME="@DKMS_PACKAGE_NAME@"
12 PACKAGE_VERSION="#MODULE_VERSION#"
13 AUTOINSTALL="yes"

Subscribers

People subscribed via source and target branches