Package: bpfilter
Version: 0.6.0-2
Severity: serious
Tags: sid
User: [email protected]
Usertags: loong64

Dear Maintainer,

bpfilter 0.6.0-2 fails to build from source on loongarch64 due to a missing 
__NR_bpf syscall definition for the LoongArch architecture.

The error is:
  src/libbpfilter/bpf.c:28:2: error: _BF_NR_bpf not defined
   #error _BF_NR_bpf not defined. bpfilter does not support your arch.

This has been fixed upstream in PR #549:   
https://github.com/facebook/bpfilter/pull/549

The fix adds the missing `__loongarch__` guard to define `_BF_NR_bpf` as 280 
(same as aarch64). A Debian patch has been prepared to backport this fix.

Best regards,
Na Zhang

Attachment: fix-loongarch-ftbfs.patch
Description: Binary data

Reply via email to