diff options
author | Sam Hartman <hartmans@debian.org> | 2025-01-16 13:48:19 -0700 |
---|---|---|
committer | Sam Hartman <hartmans@debian.org> | 2025-01-16 13:51:07 -0700 |
commit | 3f880fa7c550800ff0e0a29bde62da5cb7892acd (patch) | |
tree | cf443803d1b1238976aefb85b92115e99e0013cf | |
parent | 9fc6228d62bc39534a632735d2d6827adc3c07a8 (diff) | |
download | pam-3f880fa7c550800ff0e0a29bde62da5cb7892acd.tar.gz pam-3f880fa7c550800ff0e0a29bde62da5cb7892acd.tar.bz2 pam-3f880fa7c550800ff0e0a29bde62da5cb7892acd.zip |
Only build-depend on documentation tools for arch-indep builds; do not build docs for arch all builds
-rw-r--r-- | debian/control | 11 | ||||
-rwxr-xr-x | debian/rules | 11 |
2 files changed, 14 insertions, 8 deletions
diff --git a/debian/control b/debian/control index 611c6f9c..9955a3a5 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,8 @@ Section: libs Priority: optional Maintainer: Sam Hartman <hartmans@debian.org> Standards-Version: 4.6.2 -Build-Depends: debhelper-compat (= 13), dh-exec, flex, libcrypt-dev, libdb-dev, libselinux1-dev [linux-any], libsystemd-dev [linux-any] <!stage1>, po-debconf, meson, libaudit-dev [linux-any] <!stage1>, pkgconf, libfl-dev, libfl-dev:native, docbook-xsl-ns, docbook5-xml, xsltproc, libxml2-utils, w3m, fop +Build-Depends: debhelper-compat (= 13), dh-exec, flex, libcrypt-dev, libdb-dev, libselinux1-dev [linux-any], libsystemd-dev [linux-any] <!stage1>, po-debconf, meson, libaudit-dev [linux-any] <!stage1>, pkgconf, libfl-dev, libfl-dev:native +Build-Depends-Indep: docbook-xsl-ns, docbook5-xml, xsltproc, libxml2-utils, w3m, fop Build-Conflicts: libdb4.2-dev, libxcrypt-dev Vcs-Browser: https://salsa.debian.org/vorlon/pam Vcs-Git: https://salsa.debian.org/vorlon/pam.git @@ -57,8 +58,8 @@ Priority: required Architecture: all Multi-Arch: foreign Depends: ${misc:Depends}, debconf (>= 1.5.19) | cdebconf, libpam-modules (>= 1.0.1-6) -Replaces: libpam0g-util, libpam0g-dev -Conflicts: libpam0g-util +Replaces: libpam-modules (<= 1.7.0), libpam-modules-bin (<= 1.7.0) +Breaks: libpam-modules (<= 1.7.0), libpam-modules-bin (<= 1.7.0) Description: Runtime support for the PAM library Contains configuration files and directories required for authentication to work on Debian systems. This package is required @@ -70,6 +71,7 @@ Architecture: any Multi-Arch: same Depends: ${misc:Depends}, libpam0g (= ${binary:Version}), libc6-dev|libc-dev Provides: libpam-dev +Recommends: libpam-doc Description: Development files for PAM Contains C header files and development libraries for libpam, the Pluggable Authentication Modules, a library that enables the local system @@ -81,10 +83,13 @@ Description: Development files for PAM Package: libpam-doc Provides: pam-doc +Build-Profiles: <!nodoc> Section: doc Architecture: all Depends: ${misc:Depends} Multi-Arch: foreign +Replaces: libpam0g-dev (<= 1.7.0) +Breaks: libpam0g-dev (<= 1.7.0) Description: Documentation of PAM Contains documentation (in HTML, ASCII, and PostScript format) for libpam, the Pluggable Authentication Modules library, a library that enables the diff --git a/debian/rules b/debian/rules index 177a7517..f63788a9 100755 --- a/debian/rules +++ b/debian/rules @@ -21,14 +21,15 @@ dl = $(d)/local dh $@ -# avoid libaudit-dev when bootstrapping +# avoid libaudit-dev and libsystemd-dev when bootstrapping ifneq (,$(filter stage1,$(DEB_BUILD_PROFILES))) - meson_OPTS += -Daudit=disabled -else -meson_opts += -Daudit=enabled + meson_OPTS += -Daudit=disabled -Dlogind=disabled endif +packages := $(shell dh_listpackages) -meson_opts += -Dlogind=enabled +ifneq (,$(filter libpam-doc libpam-runtime,$(packages))) +meson_OPTS += -Ddocs=enabled +endif override_dh_auto_configure: |