From 75eb241552b88df55f64c508620342b1bbfb2b2e Mon Sep 17 00:00:00 2001 From: Gioele Barabucci Date: Wed, 13 Sep 2023 08:36:38 +0200 Subject: [PATCH] Support build profile `xsltproc`, `docbook` and all other XML-related packages are not needed when the `` build profile is active, as long as `./configure` is called with `--disable-man`. Closes: #1051827 --- debian/control | 10 +++++----- debian/rules | 4 ++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/debian/control b/debian/control index 88198468..a3374060 100644 --- a/debian/control +++ b/debian/control @@ -9,13 +9,13 @@ Build-Depends: debhelper-compat (= 13), libcrypt-dev, libpam0g-dev, quilt, - xsltproc, - docbook-xsl, - docbook-xml, - libxml2-utils, + xsltproc , + docbook-xsl , + docbook-xml , + libxml2-utils , libselinux1-dev [linux-any], libsemanage-dev [linux-any], - itstool, + itstool , bison, libaudit-dev [linux-any] Standards-Version: 4.6.1 diff --git a/debian/rules b/debian/rules index ea56ab93..da3c3810 100755 --- a/debian/rules +++ b/debian/rules @@ -21,6 +21,10 @@ DEB_CONFIGURE_EXTRA_FLAGS := --without-libcrack \ --without-tcb \ SHELL=/bin/sh +ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) +DEB_CONFIGURE_EXTRA_FLAGS += --disable-man +endif + # Set the default editor for vipw/vigr CFLAGS += -DDEFAULT_EDITOR="\"sensible-editor\""