[Acked/CMT] [PATCH 1/1 H] UBUNTU: [packaging] Make the nvidia abi packages depend on nvidia-kernel-common

Andy Whitcroft apw at canonical.com
Wed Mar 10 09:10:35 UTC 2021


On Tue, Mar 09, 2021 at 05:37:49PM +0100, Alberto Milone wrote:
> Having both the metapackage and the actual binaries depend on a
> specific driver series from userspace, we can prevent cases where
> packages such as linux-modules-nvidia-450-5.4.0-66-generic and
> linux-modules-nvidia-460-5.4.0-66-generic can be installed at the
> same time.
> 
> BugLink: https://bugs.launchpad.net/bugs/1918298
> Signed-off-by: Alberto Milone <alberto.milone at canonical.com>
> ---
>  debian/scripts/gen-rules.lrm | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/debian/scripts/gen-rules.lrm b/debian/scripts/gen-rules.lrm
> index a79eef0..574a00e 100755
> --- a/debian/scripts/gen-rules.lrm
> +++ b/debian/scripts/gen-rules.lrm
> @@ -170,6 +170,7 @@ Depends:
>   linux-image-${src_abi}-${flavour} | linux-image-unsigned-${src_abi}-${flavour},
>   linux-signatures-nvidia-${src_abi}-${flavour} (= ${src_sigs_version}),
>   linux-objects-nvidia-${suffix_minus}-${src_abi}-${flavour} (= \${binary:Version}),
> + \${nvk:nvidia-${suffix_minus}},
>  Description: Linux kernel nvidia modules for version ${src_abi}
>   This package pulls together the Linux kernel nvidia modules for
>   version ${src_abi} with the appropriate signatures.
> --
> 2.25.1

Acked-by: Andy Whitcroft <apw at canonical.com>

Talked this through off list with Alberto and the reasoning seems sound.
We want to remove both the meta and binary packages, and when we only
had this on the binary packages we found apt was unable to resolve the
removals.  But if we only have it on the meta packages, they are removed
successfully preventing new installations, but existing installations
are protected by the kernels autoremove protection.

-apw



More information about the kernel-team mailing list