From 2231708c3502c9e7390394b60b842434f084c2a7 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Thu, 13 Jul 2023 10:56:43 -0700 Subject: [PATCH] Add detection for systemdunitdir not being set This variable is used in cases like thermald to detect if systemd is available and, if missing, will cause the systemd units to not be installed. Detect this not being set and add systemd to the buildreq in such cases. Signed-off-by: William Douglas --- autospec/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autospec/config.py b/autospec/config.py index 52bcbcb7..13169066 100644 --- a/autospec/config.py +++ b/autospec/config.py @@ -234,7 +234,8 @@ def __init__(self, download_path): (r"C library 'efivar' not found", "efivar-dev"), (r"Has header \"efi.h\": NO", "gnu-efi-dev"), (r"ERROR: Could not execute Vala compiler", "vala"), - (r".*: error: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL", 'gobject-introspection-dev') + (r".*: error: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL", 'gobject-introspection-dev'), + (r"[ ]*systemdunitdir:[ ]*$", 'systemd'), ] # failed_pattern patterns # contains patterns for parsing build.log for missing dependencies