Source: qemu
Version: 1:9.0.2+ds-6
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
Dear maintainers,
The test scenario is:
before running the loongarch64 binary on an x86_64 system, execute
command "apt install qemu-user-binfmt".
Abnormal results based on the above tests, maybe we need to filte out
loong64 in debian/binfmt-install.
Please consider the below patch.
```
diff --git a/debian/binfmt-install b/debian/binfmt-install
index c8e453e..4982b02 100755
--- a/debian/binfmt-install
+++ b/debian/binfmt-install
@@ -88,6 +88,7 @@
sparc32plus_magic='\x7f\x45\x4c\x46\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\
case "$DEB_HOST_ARCH" in
amd64 | i386 | x32) omit="i386|x86_64|x32" ;;
arm | armel | armhf | arm64) omit="arm|aarch64" ;;
+ loong64) omit="loongarch64" ;;
ppc64 | powerpc) omit="ppc|ppc64|ppc64abi32" ;;
ppc64el) omit="ppc64le" ;;
riscv64) omit="riscv32|riscv64" ;;
```
You could test on loong64's porterbox.
Any questions, please contact me, we can discuss it together.