Source: linux
Version: 6.12.17-1
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-CC: debian-loonga...@lists.debian.org
Dear maintainers,
Compiling the linux failed for loong64 in the Debian Package
Auto-Building environment.
The error log is as follows,
```
......
# ZSTD22 arch/loongarch/boot/vmlinuz
{ cat arch/loongarch/boot/vmlinux.bin | zstd -22 --ultra; printf
\000\000\116\001; } > arch/loongarch/boot/vmlinuz
/bin/sh: 1: zstd: not found
make[5]: ***
[/<<PKGBUILDDIR>>/drivers/firmware/efi/libstub/Makefile.zboot:27:
arch/loongarch/boot/vmlinuz] Error 127
make[5]: *** Deleting file 'arch/loongarch/boot/vmlinuz'
make[4]: *** [/<<PKGBUILDDIR>>/arch/loongarch/Makefile:177: vmlinuz.efi]
Error 2
make[4]: *** Waiting for unfinished jobs....
......
```
The full build log can be found at
https://buildd.debian.org/status/fetch.php?pkg=linux&arch=loong64&ver=6.12.17-1&stamp=1740878681&raw=0.
In fact, since linux 6.13.3-1~exp1 (experimental), linux was built
successfully on loong64.
We are waiting for linux to update from exp to unstable until we get
confirmation from the linux maintainers(until the trixie release what
goes to unstable will be based on 6.12.y).
Please consider adding zstd Build-Depends in linux 6.12.y.
```
diff --git a/../debian/templates/source.control.in
b/debian/templates/source.control.in
index c8789e9..005c52f 100644
--- a/../debian/templates/source.control.in
+++ b/debian/templates/source.control.in
@@ -34,6 +34,7 @@ Build-Depends-Arch:
# used by upstream to build genksyms, kconfig, and perf
bison <!pkg.linux.nokernel>,
bison <!pkg.linux.notools>,
+ zstd [loong64],
flex <!pkg.linux.nokernel>,
flex <!pkg.linux.notools>,
Rules-Requires-Root: no
```
Your opinions are welcome.
Best regards,
Dandan Zhang