new file mode 100644
@@ -0,0 +1,29 @@
+From 59c00248b19eafc2e0632d0608c3d70c1488b8bf Mon Sep 17 00:00:00 2001
+From: Khem Raj <khem.raj@oss.qualcomm.com>
+Date: Tue, 1 Dec 2026 23:38:18 -0800
+Subject: [PATCH] basics.h: Include stdbool.h for bool
+
+isempty() returns bool, but basics.h does not include <stdbool.h>.
+That only builds where bool is a keyword (C23, e.g. GCC 15's default);
+with clang's default C17 it fails:
+
+ lib/basics.h:62:15: error: unknown type name 'bool'
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+ lib/basics.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/basics.h b/lib/basics.h
+index bb803a6..e03a17f 100644
+--- a/lib/basics.h
++++ b/lib/basics.h
+@@ -3,6 +3,7 @@
+ #pragma once
+
+ #include <errno.h>
++#include <stdbool.h>
+ #include <unistd.h>
+
+ #define _unused_ __attribute__((unused))
similarity index 75%
rename from meta-oe/recipes-extended/wtmpdb/wtmpdb_0.76.0.bb
rename to meta-oe/recipes-extended/wtmpdb/wtmpdb_0.80.0.bb
@@ -5,19 +5,25 @@ LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=020090a00b69dd2af9ab82eb0003ea2c"
SECTION = "libs"
-SRCREV = "89c0861f74e576c5ad0ec9f5302aa635a4e50dc6"
+SRCREV = "33fe03bad30243f588f588416e81acea9ca669db"
SRC_URI = "git://github.com/thkukuk/wtmpdb.git;branch=main;protocol=https;tag=v${PV} \
file://0001-pam_wtmpdb-Drop-pam_sm_chauthtok-from-the-version-sc.patch \
+ file://0001-basics.h-Include-stdbool.h-for-bool.patch \
"
+UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
inherit meson pkgconfig systemd features_check
DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} sqlite3 "
REQUIRED_DISTRO_FEATURES = "pam"
-SYSTEMD_SERVICE:${PN} = "wtmpdb-update-boot.service wtmpdb-rotate.service"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
+PACKAGECONFIG[systemd] = "-Dwtmpdbd=enabled -Dsystemd=enabled,-Dwtmpdbd=disabled -Dsystemd=disabled,systemd"
+
+SYSTEMD_SERVICE:${PN} = "wtmpdb-update-boot.service wtmpdb-rotate.service \
+ ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'wtmpdbd.socket', '', d)}"
EXTRA_OEMESON = " -Dpamlibdir=${base_libdir}/security"
Bug-fix release: - pam_wtmpdb: fix pam_data usage - import: don't follow symlinks when importing wtmp files, handle non NUL-terminated strings - rotate: don't delete data on a failed backup, create the backup file atomically, require an argument for days - GetID (wtmpdbd varlink): check that the peer UID is 0 - wtmpdbd.service: use DefaultDependencies=no - logout time is now always later than login time The wtmpdbd daemon option is now enabled by default and requires libsystemd >= 257, so the build fails without systemd in the sysroot. Add a systemd PACKAGECONFIG (default on with the systemd distro feature) that builds wtmpdbd plus soft-reboot detection and enables wtmpdbd.socket, and disables both otherwise. Add UPSTREAM_CHECK_GITTAGREGEX to match only the vX.Y.Z release tags. Add a patch including <stdbool.h> in lib/basics.h: isempty() returns bool, which only builds with C23 compilers (GCC 15s default), not clang C17. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- ...-basics.h-Include-stdbool.h-for-bool.patch | 29 +++++++++++++++++++ .../{wtmpdb_0.76.0.bb => wtmpdb_0.80.0.bb} | 10 +++++-- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 meta-oe/recipes-extended/wtmpdb/wtmpdb/0001-basics.h-Include-stdbool.h-for-bool.patch rename meta-oe/recipes-extended/wtmpdb/{wtmpdb_0.76.0.bb => wtmpdb_0.80.0.bb} (75%)