Source: falcosecurity-libs
Version: 0.14.1-2
Severity: serious
Tags: patch ftbfs
Justification: fails to build from source (but built successfully in the past)
falcosecurity-libs now build-depends unconditionally on
libluajit-5.1-dev. This prevents the package to be buildable on some
architectures where it was available before: ppc64el for release
architectures, and riscv64 and ppc64 for non-release architectures.
The version 0.14.1-1 force libsinsp to be linked to a few additional
libraries, including -lluajit-5.1. This causes FTBFS on architectures
where it was not build-depended on. This has been wrongly fixed in
version 0.14.1-2 by changing the build-depends on libluajit-5.1-dev to
be unconditional.
The patch below fixes the issue by using the ${LUAJIT_LIB} cmake
variable instead of using -lluajit-5.1 and reverting the
build-dependency changes. At the same time, the list of architectures
which have libluajit-5.1-dev has been updated to reflect the current
status.
--- falcosecurity-libs-0.14.1/debian/control
+++ falcosecurity-libs-0.14.1/debian/control
@@ -21,7 +21,7 @@
protobuf-compiler,
protobuf-compiler-grpc,
libprotobuf-dev,
- libluajit-5.1-dev,
+ libluajit-5.1-dev [amd64 arm64 armel armhf i386 mips64el s390x]
| liblua5.1-0-dev,
libelf-dev,
libre2-dev,
libcap-dev,
---
falcosecurity-libs-0.14.1/debian/patches/libsinsp-added-missing-libraries.patch
+++
falcosecurity-libs-0.14.1/debian/patches/libsinsp-added-missing-libraries.patch
@@ -7,7 +7,7 @@
"${JSONCPP_LIB}"
"${RE2_LIB}"
+ -lprotobuf
-+ -lluajit-5.1
++ "${LUAJIT_LIB}"
+ -lgrpc++
)