[pkg-go] Bug#1065437: debos: Build on arm64

Colin Watson cjwatson at debian.org
Mon Mar 4 16:12:24 GMT 2024


Source: debos
Version: 1.1.3-1
Severity: wishlist
Tags: patch

Since fakemachine now builds on arm64 as well as amd64, it should be
possible to build debos on arm64 too.  I've only build-tested this
patch, but I think it should work given that debos is tested upstream on
arm64.

Note that qemu-system-x86 provides qemu-system-amd64, so the substvar
here shouldn't change behaviour on amd64; this was simpler than
computing a custom substvar in debian/rules.

diff --git a/debian/control b/debian/control
index ed69af8..12d3ef8 100644
--- a/debian/control
+++ b/debian/control
@@ -29,7 +29,7 @@ XS-Go-Import-Path: github.com/go-debos/debos
 Testsuite: autopkgtest-pkg-go
 
 Package: debos
-Architecture: amd64
+Architecture: amd64 arm64
 Built-Using:
  ${misc:Built-Using},
 Recommends:
@@ -38,7 +38,7 @@ Recommends:
  dosfstools,
  e2fsprogs,
  fdisk,
- linux-image-amd64,
+ linux-image-${Arch},
  mount,
  ovmf,
  parted,
@@ -49,7 +49,7 @@ Recommends:
 Depends:
  busybox | busybox-static,
  debootstrap,
- qemu-system-x86,
+ qemu-system-${Arch},
  qemu-user-static,
  systemd-container,
  ${misc:Depends},

Thanks,

-- 
Colin Watson (he/him)                              [cjwatson at debian.org]



More information about the Pkg-go-maintainers mailing list