[SRU][L][M][U][PATCH 1/1] UBUNTU: [Packaging] generate linux-lib-rust only on amd64

Emil Renner Berthing emil.renner.berthing at canonical.com
Mon May 22 11:24:10 UTC 2023


On Mon, 22 May 2023 at 13:14, Andrea Righi <andrea.righi at canonical.com> wrote:
>
> BugLink: https://bugs.launchpad.net/bugs/2020356
>
> Rust is only supported by amd64 at the moment, so there is no reason to
> generate linux-lib-rust packages on the other architectures.
>
> This can prevent generating empty packages or even build errors.
>
> Signed-off-by: Andrea Righi <andrea.righi at canonical.com>

Tested-by: Emil Renner Berthing <emil.renner.berthing at canonical.com>

> ---
>  debian/rules.d/2-binary-arch.mk | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
> index 630a335616a74..b796e67dadb1f 100644
> --- a/debian/rules.d/2-binary-arch.mk
> +++ b/debian/rules.d/2-binary-arch.mk
> @@ -132,7 +132,9 @@ $(stampdir)/stamp-install-%: $(stampdir)/stamp-build-% $(stampdir)/stamp-install
>         dh_prep -p$(bin_pkg_name)-$*
>         dh_prep -p$(mods_pkg_name)-$*
>         dh_prep -p$(hdrs_pkg_name)-$*
> +ifeq ($(build_arch),x86)
>         dh_prep -p$(rust_pkg_name)-$*
> +endif
>         $(foreach _m,$(all_standalone_dkms_modules), \
>           $(if $(enable_$(_m)),dh_prep -p$(dkms_$(_m)_pkg_name)-$*;)\
>         )
> @@ -675,7 +677,9 @@ endif
>
>         $(call dh_all,$(pkgbldinfo))
>         $(call dh_all,$(pkghdr))
> +ifeq ($(build_arch),x86)
>         $(call dh_all,$(pkgrust))
> +endif
>
>  ifneq ($(skipsub),true)
>         @set -e; for sub in $($(*)_sub); do             \
> --
> 2.39.2
>
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team



More information about the kernel-team mailing list