meson: Define missing HAVE_LIBAUDIT

Resolves: RHEL-1846
This commit is contained in:
Joan Torres 2025-04-29 12:35:12 +02:00
parent a4232ce248
commit 0e7e69f72c
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From 0d5fd96165d3bebc0d17245d31aee5bb424ea3ec Mon Sep 17 00:00:00 2001
From: Joan Torres <joantolo@redhat.com>
Date: Mon, 28 Apr 2025 11:51:58 +0200
Subject: [PATCH] meson: Define missing HAVE_LIBAUDIT
This allows using libaudit to use audit logs.
---
meson.build | 1 +
1 file changed, 1 insertion(+)
diff --git a/meson.build b/meson.build
index 8da5ae878..eaa93a652 100644
--- a/meson.build
+++ b/meson.build
@@ -263,6 +263,7 @@ conf.set_quoted('GNOME_SETTINGS_DAEMON_DIR', gnome_settings_daemon_dir)
conf.set_quoted('LANG_CONFIG_FILE', lang_config_file)
conf.set_quoted('PAM_PROFILES_DIR', pam_profiles_dir[0] == '/' ? pam_profiles_dir : '/' + pam_profiles_dir)
conf.set('HAVE_ADT', have_adt)
+conf.set('HAVE_LIBAUDIT', libaudit_dep.found())
conf.set('HAVE_UTMP_H', have_utmp_header)
conf.set('HAVE_UTMPX_H', have_utmpx_header)
conf.set('HAVE_POSIX_GETPWNAM_R', have_posix_getpwnam_r)
--
2.49.0

View File

@ -30,6 +30,10 @@ Patch: 0002-data-Drop-X11-fallback-rules.patch
# https://gitlab.gnome.org/GNOME/gdm/-/merge_requests/272
Patch: 0001-schema-Add-banner-message-path-and-source-settings.patch
# RHEL-1846
# https://gitlab.gnome.org/GNOME/gdm/-/merge_requests/284
Patch: 0001-meson-Define-missing-HAVE_LIBAUDIT.patch
BuildRequires: dconf
BuildRequires: desktop-file-utils
BuildRequires: gettext-devel