Skip to content
Snippets Groups Projects
Commit 94a98bdc authored by Andrea Bolognani's avatar Andrea Bolognani
Browse files

control: Fix cross building

Starting with version 1:2.6.1-1, nfs-common Depends on python3.

As a result, when cross building and targeting for example
arm64, nfs-common:arm64 will be installed to satisfy libvirt's
Build-Depends and python3:arm64 will in turn be installed to
satisfy nfs-common's Depends.

Attempting to do so will however result in an error:

  Setting up python3.10-minimal:arm64 (3.10.5-1) ...
  /var/lib/dpkg/info/python3.10-minimal.postinst: 51: /usr/bin/python3.10: Exec format error
  dpkg: error processing package python3.10-minimal:arm64 (--configure):
   installed python3.10-minimal:arm64 package post-installation script subprocess returned error exit status 126
  Errors were encountered while processing:
   python3.10-minimal:arm64
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  E: Failed to process build dependencies

In order to avoid this issue, force the native version of
nfs-common to be installed. This was always the version we
wanted anyway.
parent fea6d4d8
No related branches found
No related tags found
1 merge request!148control: Fix cross building
......@@ -50,7 +50,7 @@ Build-Depends:
libyajl-dev,
lvm2 [linux-any],
meson (>= 0.54.0~),
nfs-common,
nfs-common:native,
numad [linux-any],
open-iscsi [linux-any],
po-debconf,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment