ktls-utils: Upgrade to 1.3.0
PATCH 1/2 ktls-utils: Upgrade to 1.3.0
Drop musl patch as it is fixed upstream [1]
[1] https://github.com/oracle/ktls-utils/commit/3b419faa9f67cc053031524cb3b079f054c6b029
Signed-off-by Khem Raj <[email protected]>
---
...PERMS-if-it-doesn-t-exist-to-fix-mus.patch | 36 -------------------
...tls-utils_1.2.1.bb => ktls-utils_1.3.0.bb} | 6 ++--
2 files changed, 2 insertions(+), 40 deletions(-)
delete mode 100644 meta-oe/recipes-kernel/ktls-utils/ktls-utils/0001-tlshd-Define-ALLPERMS-if-it-doesn-t-exist-to-fix-mus.patch
rename meta-oe/recipes-kernel/ktls-utils/{ktls-utils_1.2.1.bb => ktls-utils_1.3.0.bb} (74%)meta-oe/recipes-kernel/ktls-utils/ktls-utils/0001-tlshd-Define-ALLPERMS-if-it-doesn-t-exist-to-fix-mus.patch deleted +0 -36
@@ -1,36 +0,0 @@ -From ca95e956307672484e8c018263600749aa9c4f4d Mon Sep 17 00:00:00 2001 -From: Alistair Francis <[email protected]> -Date: Wed, 9 Apr 2025 11:14:52 +1000 -Subject: [PATCH] tlshd: Define ALLPERMS if it doesn't exist to fix musl build - -ALLPERMS exists in glibc, but not on musl, so we manually define -it if it doesn't exist. This fixes building on musl systems. - -Signed-off-by: Alistair Francis <[email protected]> -Upstream-Status: Submitted [https://github.com/oracle/ktls-utils/pull/88] ---- - src/tlshd/config.c | 8 ++++++++ - 1 file changed, 8 insertions(+) - -diff --git a/src/tlshd/config.c b/src/tlshd/config.c -index 38948e8..e653bd8 100644 ---- a/src/tlshd/config.c -+++ b/src/tlshd/config.c -@@ -46,6 +46,14 @@ - - static GKeyFile *tlshd_configuration; - -+/** -+ * ALLPERMS exists in glibc, but not on musl, so we -+ * manually define it if it doesn't exist -+ */ -+#ifndef ALLPERMS -+#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) -+#endif -+ - /** - * tlshd_config_init - Read tlshd's config file - * @pathname: Pathname to config file --- -2.49.0 -
meta-oe/recipes-kernel/ktls-utils/ktls-utils_1.3.0.bb renamed from meta-oe/recipes-kernel/ktls-utils/ktls-utils_1.2.1.bb +2 -4
@@ -7,11 +7,9 @@ RDEPENDS:${PN} += " gnutls" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=d568123389d9a12625cca2b089b1728b" -SRCREV = "03abde4ed7f539d77a412a1c98052e1c4d262963" -SRC_URI = "git://github.com/oracle/ktls-utils.git;nobranch=1;protocol=https;branch=ktls-utils-1.2-fixes \ - file://0001-tlshd-Define-ALLPERMS-if-it-doesn-t-exist-to-fix-mus.patch \ +SRC_URI = "https://github.com/oracle/ktls-utils/releases/download/${BP}/${BP}.tar.gz \ " - +SRC_URI[sha256sum] = "8ee295b26b608450bc0c47ba199b34cf92f7f9ec4c81a62363e6450da76b6739" inherit autotools-brokensep pkgconfig systemd
PATCH 2/2 ktls-utils: Fix out of tree builds
Signed-off-by Khem Raj <[email protected]>
--- .../0001-systemd-Fix-out-of-tree-builds.patch | 28 +++++++++++++++++++ .../ktls-utils/ktls-utils_1.3.0.bb | 3 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-kernel/ktls-utils/ktls-utils/0001-systemd-Fix-out-of-tree-builds.patch
meta-oe/recipes-kernel/ktls-utils/ktls-utils/0001-systemd-Fix-out-of-tree-builds.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 496b0ffd7cd685a1adb48b150157fdea14f5f159 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 9 Dec 2025 08:53:53 -0800 +Subject: [PATCH] systemd: Fix out-of-tree builds + +The systemd unit file installation does not work when the build directory +differs from the source directory because cp cannot find the source file. +Prefix the unit files with $(srcdir) to reference files from the source tree. + +This fixes out-of-tree builds which use separate build directories (B != S). + +Upstream-Status: Submitted [https://github.com/oracle/ktls-utils/pull/134] +Signed-off-by: Khem Raj <[email protected]> +--- + systemd/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/systemd/Makefile.am b/systemd/Makefile.am +index d2f8e25..d6435ad 100644 +--- a/systemd/Makefile.am ++++ b/systemd/Makefile.am +@@ -24,5 +24,5 @@ MAINTAINERCLEANFILES = Makefile.in + if INSTALL_SYSTEMD + install-data-hook: $(unit_files) + mkdir -p $(DESTDIR)/$(unitdir) +- cp $(unit_files) $(DESTDIR)/$(unitdir) ++ cp $(addprefix $(srcdir)/,$(unit_files)) $(DESTDIR)/$(unitdir) + endif
meta-oe/recipes-kernel/ktls-utils/ktls-utils_1.3.0.bb +2 -1
@@ -8,10 +8,11 @@ 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-brokensep pkgconfig systemd +inherit autotools pkgconfig systemd PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"