[v4l-utils] keytable: do not use libbpf 1.0

Message ID Y15y8k5Y9Cu6V/jq@gofer.mess.org (mailing list archive)
State Rejected
Delegated to: Sean Young
Headers
Series [v4l-utils] keytable: do not use libbpf 1.0 |

Commit Message

Sean Young Oct. 30, 2022, 12:49 p.m. UTC
  The source code is not compatible with libbpf 1.0.

Signed-off-by: Sean Young <sean@mess.org>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/configure.ac b/configure.ac
index 05298981..3224bd61 100644
--- a/configure.ac
+++ b/configure.ac
@@ -564,7 +564,7 @@  AM_CONDITIONAL([WITH_V4L2_CTL_32], [test x${enable_v4l2_ctl_32} = xyes])
 AM_CONDITIONAL([WITH_V4L2_COMPLIANCE], [test x$ac_cv_func_fork = xyes])
 AM_CONDITIONAL([WITH_V4L2_COMPLIANCE_LIBV4L], [test x$ac_cv_func_fork = xyes -a x${enable_v4l2_compliance_libv4l} != xno])
 AM_CONDITIONAL([WITH_V4L2_COMPLIANCE_32], [test x$ac_cv_func_fork = xyes -a x${enable_v4l2_compliance_32} = xyes])
-PKG_CHECK_MODULES([LIBBPF], [libbpf], [bpf_pc=yes], [bpf_pc=no])
+PKG_CHECK_MODULES([LIBBPF], [libbpf < 1], [bpf_pc=yes], [bpf_pc=no])
 AM_CONDITIONAL([WITH_BPF],          [test x$enable_bpf != xno -a x$libelf_pkgconfig = xyes -a x$CLANG = xclang -a x$bpf_pc = xyes])
 
 # append -static to libtool compile and link command to enforce static libs