[Pkg-libvirt-maintainers] Bug#1090732: libguestfs: Add build support for loongarch64

zhangdandan zhangdandan at loongson.cn
Wed Dec 18 11:37:16 GMT 2024


Source: libguestfs
Version: 1:1.52.2-6
Severity: wishlist
Tags: patch
User: debian-loongarch at lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the libguestfs failed for loong64 in the Debian Package 
Auto-Building environment.
The error log is as follows,
```
--- Checking for QEMU ---
checking for qemu-system-loongarch64... no
configure: error: qemu must be installed
     cd debian/build-1 && tail -v -n \+0 config.log
```

Please consider the patch I attached.
Due to qemu-system-loongarch64 was included in qemu-system-misc.
Now libguestfs 1:1.52.2-6 was built successfully on my locally.
```
dpkg-deb: building package 'lua-guestfs-dbgsym' in 
'../lua-guestfs-dbgsym_1.52.2-6+loong64_loong64.deb'.
dpkg-deb: building package 'guestfsd-dbgsym' in 
'../guestfsd-dbgsym_1.52.2-6+loong64_loong64.deb'.
dpkg-deb: building package 'libguestfs-dev' in 
'../libguestfs-dev_1.52.2-6+loong64_loong64.deb'.
dpkg-deb: building package 'libguestfs0t64-dbgsym' in 
'../libguestfs0t64-dbgsym_1.52.2-6+loong64_loong64.deb'.
dpkg-deb: building package 'libguestfs-gfs2' in 
'../libguestfs-gfs2_1.52.2-6+loong64_loong64.deb'.
dpkg-deb: building package 'libguestfs-java' in 
'../libguestfs-java_1.52.2-6+loong64_loong64.deb'.
  dpkg-genbuildinfo --build=any 
-O../libguestfs_1.52.2-6+loong64_loong64.buildinfo
```

Best regards,
Dandan Zhang

-------------- next part --------------
diff -Nru libguestfs-1.52.2/debian/changelog libguestfs-1.52.2/debian/changelog
--- libguestfs-1.52.2/debian/changelog	2024-11-11 00:55:58.000000000 +0800
+++ libguestfs-1.52.2/debian/changelog	2024-12-18 18:02:13.000000000 +0800
@@ -1,3 +1,9 @@
+libguestfs (1:1.52.2-6+loong64) unstable; urgency=medium
+
+  * Enable loongarch64 build.
+
+ -- Dandan Zhang <zhangdandan at loongson.cn>  Wed, 18 Dec 2024 18:02:13 +0800
+  
 libguestfs (1:1.52.2-6) unstable; urgency=medium
 
   [ Chris Hofstaedtler ]
diff -Nru libguestfs-1.52.2/debian/control libguestfs-1.52.2/debian/control
--- libguestfs-1.52.2/debian/control	2024-11-11 00:37:53.000000000 +0800
+++ libguestfs-1.52.2/debian/control	2024-12-18 17:50:03.000000000 +0800
@@ -30,6 +30,7 @@
   qemu-system-ppc [powerpc powerpcspe ppc64 ppc64el],
   qemu-system-sparc [sparc sparc64],
   qemu-system-x86 [i386 amd64],
+  qemu-system-misc,
   xorriso,
   sqlite3,
   pkgconf,
@@ -60,6 +61,7 @@
   linux-image-powerpc64le [ppc64el] <!nocheck>,
   linux-image-riscv64 [riscv64] <!nocheck>,
   linux-image-s390x [s390x] <!nocheck>,
+  linux-image-loong64 [loong64] <!nocheck>,
 #-# appliance start
   acl,
   attr,
@@ -193,6 +195,7 @@
   qemu-system-ppc [powerpc ppc64 ppc64el],
   qemu-system-sparc [sparc],
   qemu-system-x86 [i386 amd64],
+  qemu-system-misc,
   qemu-utils,
   db-util,
   icoutils,


More information about the Pkg-libvirt-maintainers mailing list