#1150395 bpfilter: FTBFS on loongarch64 - missing __NR_bpf definition

Package:
bpfilter
Source:
bpfilter
Description:
Packet filtering framework based on eBPF
Submitter:
张娜
Date:
2026-10-09 08:49:07 UTC
Severity:
normal
Tags:
#1150395#5
Date:
2026-10-09 08:47:23 UTC
From:
To:
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