[PATCH 3/4 F][SRU][L-R-M] UBUNTU: [packaging] expose dependency on nvidia-kernel-common on meta packages
Alberto Milone
alberto.milone at canonical.com
Wed Jun 3 15:27:52 UTC 2020
We discussed this with the Foundations team (Steve Langasek and Dimitri
Ledkov), and the idea was to use a package to make sure that kernel space
and user space don't get out of sync. Both the dkms package and the l-r-m
would depend on nvidia-kernel-common. Of course, we don't want to have to
rebuild the modules if there is a minor packaging change in the nvidia
drivers (hence the relatively loose dependency).
On Mon, 1 Jun 2020 at 21:59, Seth Forshee <seth.forshee at canonical.com>
wrote:
> On Fri, May 29, 2020 at 04:34:33PM +0200, Alberto Milone wrote:
> > Expose the dependency data on nvidia-kernel-common on the meta-packages.
> >
> > BugLink: https://bugs.launchpad.net/bugs/1881137
> >
> > Signed-off-by: Alberto Milone <alberto.milone at canonical.com>
>
> Can you explain why we want this change?
>
> This will make it so that the Provides: are indicating a version that
> may or may not be the exact version we used when building l-r-m. Why is
> that desirable?
>
> Thanks,
> Seth
>
> > ---
> > debian/control.d/meta-nvidia | 30 ++++++++++++++++++++----------
> > 1 file changed, 20 insertions(+), 10 deletions(-)
> >
> > diff --git a/debian/control.d/meta-nvidia b/debian/control.d/meta-nvidia
> > index 253ef9c..7a6ddd5 100644
> > --- a/debian/control.d/meta-nvidia
> > +++ b/debian/control.d/meta-nvidia
> > @@ -5,7 +5,8 @@ Section: kernel
> > Provides: ${dkms:nvidia-390-modules}
> > Depends:
> > ${misc:Depends},
> > - linux-modules-nvidia-390- at ABI@-generic (= ${binary:Version})
> > + linux-modules-nvidia-390- at ABI@-generic (= ${binary:Version}),
> > + ${nvk:nvidia-390}
> > Description: Extra drivers for nvidia-390 for generic${variant:suffix}
> > Install extra signed nvidia-390 modules compatible with
> > generic${variant:suffix}
> > @@ -17,7 +18,8 @@ Section: kernel
> > Provides: ${dkms:nvidia-435-modules}
> > Depends:
> > ${misc:Depends},
> > - linux-modules-nvidia-435- at ABI@-generic (= ${binary:Version})
> > + linux-modules-nvidia-435- at ABI@-generic (= ${binary:Version}),
> > + ${nvk:nvidia-435}
> > Description: Extra drivers for nvidia-435 for generic${variant:suffix}
> > Install extra signed nvidia-435 modules compatible with
> > generic${variant:suffix}
> > @@ -29,7 +31,8 @@ Section: kernel
> > Provides: ${dkms:nvidia-440-modules}
> > Depends:
> > ${misc:Depends},
> > - linux-modules-nvidia-440- at ABI@-generic (= ${binary:Version})
> > + linux-modules-nvidia-440- at ABI@-generic (= ${binary:Version}),
> > + ${nvk:nvidia-440}
> > Description: Extra drivers for nvidia-440 for generic${variant:suffix}
> > Install extra signed nvidia-440 modules compatible with
> > generic${variant:suffix}
> > @@ -41,7 +44,8 @@ Section: kernel
> > Provides: ${dkms:nvidia-418-server-modules}
> > Depends:
> > ${misc:Depends},
> > - linux-modules-nvidia-418-server- at ABI@-generic (= ${binary:Version})
> > + linux-modules-nvidia-418-server- at ABI@-generic (= ${binary:Version}),
> > + ${nvk:nvidia-418-server}
> > Description: Extra drivers for nvidia-418-server for
> generic${variant:suffix}
> > Install extra signed nvidia-418-server modules compatible with
> > generic${variant:suffix}
> > @@ -53,7 +57,8 @@ Section: kernel
> > Provides: ${dkms:nvidia-440-server-modules}
> > Depends:
> > ${misc:Depends},
> > - linux-modules-nvidia-440-server- at ABI@-generic (= ${binary:Version})
> > + linux-modules-nvidia-440-server- at ABI@-generic (= ${binary:Version}),
> > + ${nvk:nvidia-440-server}
> > Description: Extra drivers for nvidia-440-server for
> generic${variant:suffix}
> > Install extra signed nvidia-440-server modules compatible with
> > generic${variant:suffix}
> > @@ -65,7 +70,8 @@ Section: kernel
> > Provides: ${dkms:nvidia-390-modules}
> > Depends:
> > ${misc:Depends},
> > - linux-modules-nvidia-390- at ABI@-lowlatency (= ${binary:Version})
> > + linux-modules-nvidia-390- at ABI@-lowlatency (= ${binary:Version}),
> > + ${nvk:nvidia-390}
> > Description: Extra drivers for nvidia-390 for
> lowlatency${variant:suffix}
> > Install extra signed nvidia-390 modules compatible with
> > lowlatency${variant:suffix}
> > @@ -77,7 +83,8 @@ Section: kernel
> > Provides: ${dkms:nvidia-435-modules}
> > Depends:
> > ${misc:Depends},
> > - linux-modules-nvidia-435- at ABI@-lowlatency (= ${binary:Version})
> > + linux-modules-nvidia-435- at ABI@-lowlatency (= ${binary:Version}),
> > + ${nvk:nvidia-435}
> > Description: Extra drivers for nvidia-435 for
> lowlatency${variant:suffix}
> > Install extra signed nvidia-435 modules compatible with
> > lowlatency${variant:suffix}
> > @@ -89,7 +96,8 @@ Section: kernel
> > Provides: ${dkms:nvidia-440-modules}
> > Depends:
> > ${misc:Depends},
> > - linux-modules-nvidia-440- at ABI@-lowlatency (= ${binary:Version})
> > + linux-modules-nvidia-440- at ABI@-lowlatency (= ${binary:Version}),
> > + ${nvk:nvidia-440}
> > Description: Extra drivers for nvidia-440 for
> lowlatency${variant:suffix}
> > Install extra signed nvidia-440 modules compatible with
> > lowlatency${variant:suffix}
> > @@ -101,7 +109,8 @@ Section: kernel
> > Provides: ${dkms:nvidia-418-server-modules}
> > Depends:
> > ${misc:Depends},
> > - linux-modules-nvidia-418-server- at ABI@-lowlatency (= ${binary:Version})
> > + linux-modules-nvidia-418-server- at ABI@-lowlatency (=
> ${binary:Version}),
> > + ${nvk:nvidia-418-server}
> > Description: Extra drivers for nvidia-418-server for
> lowlatency${variant:suffix}
> > Install extra signed nvidia-418-server modules compatible with
> > lowlatency${variant:suffix}
> > @@ -113,7 +122,8 @@ Section: kernel
> > Provides: ${dkms:nvidia-440-server-modules}
> > Depends:
> > ${misc:Depends},
> > - linux-modules-nvidia-440-server- at ABI@-lowlatency (= ${binary:Version})
> > + linux-modules-nvidia-440-server- at ABI@-lowlatency (=
> ${binary:Version}),
> > + ${nvk:nvidia-440-server}
> > Description: Extra drivers for nvidia-440-server for
> lowlatency${variant:suffix}
> > Install extra signed nvidia-440-server modules compatible with
> > lowlatency${variant:suffix}
> > --
> > 2.25.1
> >
> >
> > --
> > kernel-team mailing list
> > kernel-team at lists.ubuntu.com
> > https://lists.ubuntu.com/mailman/listinfo/kernel-team
>
--
Alberto Milone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20200603/00fc906e/attachment-0001.html>
More information about the kernel-team
mailing list