meta-openembedded/meta-oe/recipes-kernel/ktls-utils/ktls-utils_1.3.0.bb
Khem Raj 07e4d9797b
ktls-utils: Fix build with musl
CMSG_NXTHDR results in different signed-ness for cmsghdr
on musl.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-10 08:56:15 -08:00

24 lines
1.1 KiB
BlitzBasic

SUMMARY = "TLS handshake utilities for in-kernel TLS consumers"
DESCRIPTION = "In-kernel TLS consumers need a mechanism to perform TLS \
handshakes on a connected socket to negotiate TLS session parameters that \
can then be programmed into the kernel's TLS record protocol engine."
DEPENDS = "gnutls keyutils glib-2.0 libnl"
RDEPENDS:${PN} += " gnutls"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=d568123389d9a12625cca2b089b1728b"
SRC_URI = "https://github.com/oracle/ktls-utils/releases/download/${BP}/${BP}.tar.gz \
file://0001-systemd-Fix-out-of-tree-builds.patch \
"
SRC_URI[sha256sum] = "8ee295b26b608450bc0c47ba199b34cf92f7f9ec4c81a62363e6450da76b6739"
inherit autotools pkgconfig systemd
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
PACKAGECONFIG[systemd] = "--with-systemd,,systemd"
SYSTEMD_SERVICE:${PN} = "tlshd.service"
# ../../../sources/ktls-utils-1.3.0/src/tlshd/quic.c:515:58: error: comparison of integers of different signs: 'unsigned long' and 'long' [-Werror,-Wsign-compare]
CFLAGS:append:libc-musl:toolchain-clang = " -Wno-error=sign-compare"