mbox series

[0/1,SRU,Lunar] Add XB-Modaliases field for standalone linux-modules-foo-* packages

Message ID 20231013043630.1667443-1-vicamo.yang@canonical.com
Headers show
Series Add XB-Modaliases field for standalone linux-modules-foo-* packages | expand

Message

You-Sheng Yang Oct. 13, 2023, 4:36 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/2021740

[Impact]

Need modaliases info for ubuntu-drivers integration.

[Fix]

This Ubuntu sauced patch copies modaliases info from source dkms deb packages to
standalone `linux-modules-<mod>-<version>-<variant>` ones if available.

[Test Case]

```bash
$ sudo add-apt-repository ppa:canonical-hwe-team/experimental-unstable
$ apt-cache show linux-modules-ivsc-6.6.0-9005-generic | grep Modaliases
Modaliases: mei-vsc(acpi*:INTC1009:*, acpi*:INTC1058:*, acpi*:INTC1094:*, acpi*:INTC10D0:*)
```

[Where problems could occur]

With **XB-Modaliases** field added to deb control, `ubuntu-drivers` will then
give a list of installable `linux-modules-<mod>-<version>-<variant>` candidates
on available platforms. So far based on current `debian/dkms-versions`, the only
one will be enabled will be ivsc-driver, and ipu6-drivers to be SRUed soon.

[Other Info]

To nominate Unstable/Mantic/Lunar/OEM-6.5/OEM-6.1.

Note that this adds a build-dep to dh-modaliases from universe pocket.

You-Sheng Yang (1):
  UBUNTU: [Packaging] support modaliases for standalone dkms packages

 debian.master/control.stub.in        |  1 +
 debian/control.d/flavour-module.stub |  1 +
 debian/rules                         |  1 +
 debian/rules.d/2-binary-arch.mk      | 10 +++++++++-
 debian/scripts/dkms-build            |  9 +++++++++
 5 files changed, 21 insertions(+), 1 deletion(-)