Skip to content

Commit

Permalink
Add detection for systemdunitdir not being set
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bryteise committed Jul 13, 2023
1 parent f56284c commit 1598972
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autospec/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ def __init__(self, download_path):
(r"checking for UDEV\.\.\. no", "libudev"),
(r"XMLLINT not set and xmllint not found in path", "libxml-2.0"),
(r"error\: xml2-config not found", "libxml-2.0"),
(r"error: must install xorg-macros", "xorg-macros")
(r"error: must install xorg-macros", "xorg-macros"),
(r"[ ]*systemdunitdir:[ ]*$", 'systemd'),
]
# simple_pattern patterns
# contains patterns for parsing build.log for missing dependencies
Expand Down Expand Up @@ -234,7 +235,7 @@ 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'),
]
# failed_pattern patterns
# contains patterns for parsing build.log for missing dependencies
Expand Down

0 comments on commit 1598972

Please sign in to comment.