Packaging Rust for Debian - Side Effects
When packaging a rust crate for Debian, bug fixing is a part of the process. There is of course multiple sources of bugs, but a common one is that the crate doesn’t build on all architectures. The builds in Debian happens on a lot of different architectures, and normally you only have an x86_64 machine to test on before pushing a new version of a package. The full list of different architectures is: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x alpha arc hppa hurd-i386 ia64 kfreebsd-amd64 kfreebsd-i386 m68k powerpc ppc64 riscv64 sh4 sparc64 x32 But it’s not mandatory that the build succeeds on all of them, only the top 9 have Supported status and the rest are more of a nice-to-have. As an example I got this failure on riscv64 recently: failures: ---- src/xy.rs - xy::XY<bool>::both (line 502) stdout ---- malloc_consolidate(): unaligned fastbin chunk detected Couldn't compile the test. failures: src/xy.rs - xy::XY<bool>::both (line 502) What happens then is that I will investigate the error, try to produc