From 1526e6cde87c48e0691c9e8cd2ca9755adcfd4b6 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Thu, 13 Jun 2024 03:22:57 +0200 Subject: [PATCH] Explicitly enable logind on linux-any --- debian/control | 2 ++ debian/rules | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index f54a3d6e..3105238d 100644 --- a/debian/control +++ b/debian/control @@ -19,8 +19,10 @@ Build-Depends: libpam0g-dev, libselinux1-dev [linux-any], libsemanage-dev [linux-any], + libsystemd-dev [linux-any], libxml2-utils , quilt, + systemd-dev [linux-any], xsltproc Standards-Version: 4.6.1 Vcs-Git: https://salsa.debian.org/debian/shadow.git -b master diff --git a/debian/rules b/debian/rules index 09d9aa77..ed701d92 100755 --- a/debian/rules +++ b/debian/rules @@ -21,12 +21,18 @@ DEB_CONFIGURE_EXTRA_FLAGS := \ --without-attr \ --without-su \ --without-tcb \ - SHELL=/bin/sh + + +ifneq ($(DEB_HOST_ARCH_OS),linux) +DEB_CONFIGURE_EXTRA_FLAGS += --enable-logind +endif ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) DEB_CONFIGURE_EXTRA_FLAGS += --disable-man endif +DEB_CONFIGURE_EXTRA_FLAGS += SHELL=/bin/sh + # Set the default editor for vipw/vigr CFLAGS += -DDEFAULT_EDITOR="\"sensible-editor\""