Explicitly enable logind on linux-any

This commit is contained in:
Chris Hofstaedtler
2024-06-13 03:22:57 +02:00
parent 8199342364
commit 1526e6cde8
2 changed files with 9 additions and 1 deletions

2
debian/control vendored
View File

@@ -19,8 +19,10 @@ Build-Depends:
libpam0g-dev,
libselinux1-dev [linux-any],
libsemanage-dev [linux-any],
libsystemd-dev [linux-any],
libxml2-utils <!nodoc>,
quilt,
systemd-dev [linux-any],
xsltproc <!nodoc>
Standards-Version: 4.6.1
Vcs-Git: https://salsa.debian.org/debian/shadow.git -b master

8
debian/rules vendored
View File

@@ -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\""