Source: netdata
Version: 1.29.0-2
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

netdata fails to cross build from source, because it abuses
AC_CHECK_FILE to check for libbpf.a on the build system while
AC_CHECK_FILE is only meant to check for files on the host systems. For
this use case, a simple test -e is better suited. Please consider
applying the attached patch.

Helmut
--- netdata-1.29.0.orig/configure.ac
+++ netdata-1.29.0/configure.ac
@@ -1025,8 +1025,8 @@
         [#include <linux/bpf.h>]
     )
 
-    AC_CHECK_FILE(
-        externaldeps/libbpf/libbpf.a,
+    AS_IF(
+	[test -e externaldeps/libbpf/libbpf.a],
         [have_libbpf=yes],
         [have_libbpf=no]
     )

Reply via email to