[Pkg-libvirt-commits] [Git][libvirt-team/libvirt][debian/latest] 3 commits: control: Fix cross building

Andrea Bolognani (@abologna) gitlab at salsa.debian.org
Sun Jul 17 14:45:03 BST 2022



Andrea Bolognani pushed to branch debian/latest at Libvirt Packaging Team / libvirt


Commits:
94a98bdc by Andrea Bolognani at 2022-07-17T11:41:25+02:00
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.

- - - - -
eb48687b by Andrea Bolognani at 2022-07-17T11:41:25+02:00
control: Force more Build-Depends to be native

When cross building, we currently get the foreign version of
these packages instead of the native one.

While that's not affecting the build process negatively,
because we don't attempt to execute any of the binary files
but just check to see whether they exist in $PATH, it's still
more correct to require the native version instead.

Gbp-Dch: Ignore

- - - - -
47651edc by Andrea Bolognani at 2022-07-17T11:41:25+02:00
control: Force python3 to be native

Having a Build-Depends on python3:any already results in the
native version being installed, but since we've added a number
of uses of :native it makes sense to switch this one too for
consistency's sake.

Gbp-Dch: Ignore

- - - - -


1 changed file:

- debian/control


Changes:

=====================================
debian/control
=====================================
@@ -50,13 +50,13 @@ Build-Depends:
  libyajl-dev,
  lvm2 [linux-any],
  meson (>= 0.54.0~),
- nfs-common,
- numad [linux-any],
+ nfs-common:native,
+ numad:native [linux-any],
  open-iscsi [linux-any],
  po-debconf,
  python3-docutils,
- python3:any,
- qemu-system-common,
+ python3:native,
+ qemu-system-common:native,
  qemu-utils,
  systemtap-sdt-dev [linux-any],
  xsltproc,



View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt/-/compare/fea6d4d8909328abddc83121d6c161722ff9df07...47651edc1ce0676c2b5ed753f987f37bde309ff1

-- 
View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt/-/compare/fea6d4d8909328abddc83121d6c161722ff9df07...47651edc1ce0676c2b5ed753f987f37bde309ff1
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-commits/attachments/20220717/727e73e7/attachment-0001.htm>


More information about the Pkg-libvirt-commits mailing list