Просмотр исходного кода

package/snort3: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB

Package snort3 requires libtirpc rpcdb option enabled with non-glibc
toolchains since the bump of libtirpc to version 1.3.7 with buildroot
commit 3f3d6e43de9b4aac7df8545fd811171256f878d3 which includes upstream
commit:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193

These build errors, caused by the forementioned upstream commit, only
occur with non-glibc toolchains:
https://patchwork.yoctoproject.org/comment/30091/
"but I believe it breaks the build with musl".

The build error during configure stage:

-- Looking for getrpcent - not found
CMake Error at cmake/sanity_checks.cmake:51 (message):
  Couldn't find an RPC program number database implementation!
Call Stack (most recent call first):
  CMakeLists.txt:31 (include)

was not yet found by the autobuilders but can be reproduced by this
defconfig:

 BR2_x86_64=y
 BR2_x86_corei7=y
 BR2_TOOLCHAIN_EXTERNAL=y
 BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_64_MUSL_BLEEDING_EDGE=y
 BR2_PER_PACKAGE_DIRECTORIES=y
 BR2_INIT_NONE=y
 # BR2_PACKAGE_BUSYBOX is not set
 BR2_PACKAGE_SNORT3=y
 # BR2_TARGET_ROOTFS_TAR is not set

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Bernd Kuhls 1 неделя назад
Родитель
Сommit
b7106fb5e9
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      package/snort3/Config.in

+ 1 - 0
package/snort3/Config.in

@@ -17,6 +17,7 @@ config BR2_PACKAGE_SNORT3
 	select BR2_PACKAGE_LUAJIT
 	select BR2_PACKAGE_PCRE
 	select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
+	select BR2_PACKAGE_LIBTIRPC_RPCDB if BR2_PACKAGE_LIBTIRPC
 	select BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_ZLIB
 	help