UBUNTU: [Packaging] generate linux-lib-rust only on amd64

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@canonical.com>
This commit is contained in:
Andrea Righi
2023-05-22 13:14:03 +02:00
committed by Paolo Pisati
parent 1b4226f746
commit ebc2f12e8c
+4
View File
@@ -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 \