Source: diet-ng
Version: 1.8.1-3
Severity: serious
Tags: ftbfs patch
Justification: fails to build from source (but built successfully in the past)
User: debian-ri...@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: i...@hack3r.moe

Dear maintainer(s),

We are currently porting packages to riscv64 platform. diet-ng fails to build
on riscv64, s390x and x32 due to unknown option -Wmain in D compiler.

This is the same problems as #944626 [1]. Full buildd log can be found [2].

Attached is a patch that disables testing on riscv64 and s390x as well; I don't
have an x32 environment so I cannot fix it. Please let me know if I missed
anything. 

Cheers,
Eric

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944626
[2]: 
https://buildd.debian.org/status/fetch.php?pkg=diet-ng&arch=riscv64&ver=1.8.1-3&stamp=1662361652&raw=0
--- a/meson.build
+++ b/meson.build
@@ -52,10 +52,13 @@
 # Check if machine is arm but not arm64/aarch64
 is_arm = (host_machine.cpu_family().startswith('arm') and host_machine.cpu() 
!= 'arm64')
 
+is_riscv64 = host_machine.cpu() == 'riscv64'
+is_s390x = host_machine.cpu() == 's390x'
+
 #
 # Tests
 #
-if not is_arm
+if not is_arm and not is_riscv64 and not is_s390x
         diet_test_exe = executable('test_diet',
             [diet_src],
             include_directories: [src_dir],

Reply via email to