Source: pam
Version: 1.1.8-3.8
Tags: patch
User: [email protected]
Usertags: rebootstrap

pam was one of the early adopters when it came to build profiles. That
is why it uses the singular DEB_BUILD_PROFILE rather than the current
DEB_BUILD_PROFILES. It also does not annotate Build-Depends.

Given that build profiles are quite well supported now, I think it is
time to update pam. Let me propose the attached patch to that end.

 * Use DEB_BUILD_PROFILES rather than DEB_BUILD_PROFILE.
 * Rename the profile from stage1 to a more descriptive pkg.pam.noaudit.
 * Support unknown profiles (e.g. nocheck in addition to
   pkg.pam.noaudit)
 * Annotate droppable Build-depends.

Helmut
diff -u pam-1.1.8/debian/changelog pam-1.1.8/debian/changelog
--- pam-1.1.8/debian/changelog
+++ pam-1.1.8/debian/changelog
@@ -1,3 +1,11 @@
+pam (1.1.8-3.9) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Convert DEB_BUILD_PROFILE=stage1 to DEB_BUILD_PROFILES=pkg.pam.noaudit.
+    (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Tue, 28 Aug 2018 19:19:35 +0200
+
 pam (1.1.8-3.8) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u pam-1.1.8/debian/control pam-1.1.8/debian/control
--- pam-1.1.8/debian/control
+++ pam-1.1.8/debian/control
@@ -4,7 +4,7 @@
 Uploaders: Sam Hartman <[email protected]>, Roger Leigh <[email protected]>
 Maintainer: Steve Langasek <[email protected]>
 Standards-Version: 3.9.8
-Build-Depends: libcrack2-dev (>= 2.8), bzip2, debhelper (>= 9), quilt (>= 
0.48-1), flex, libdb-dev, libselinux1-dev [linux-any], po-debconf, 
dh-autoreconf, autopoint, libaudit-dev [linux-any], pkg-config, libfl-dev, 
libfl-dev:native, docbook-xsl, docbook-xml, xsltproc, libxml2-utils, w3m
+Build-Depends: libcrack2-dev (>= 2.8), bzip2, debhelper (>= 9), quilt (>= 
0.48-1), flex, libdb-dev, libselinux1-dev [linux-any], po-debconf, 
dh-autoreconf, autopoint, libaudit-dev [linux-any] <!pkg.pam.noaudit>, 
pkg-config, libfl-dev, libfl-dev:native, docbook-xsl, docbook-xml, xsltproc, 
libxml2-utils, w3m
 Build-Conflicts-Indep: fop
 Build-Conflicts: libdb4.2-dev, libxcrypt-dev
 Vcs-Bzr: https://alioth.debian.org/scm/loggerhead/pkg-pam/debian/sid
diff -u pam-1.1.8/debian/rules pam-1.1.8/debian/rules
--- pam-1.1.8/debian/rules
+++ pam-1.1.8/debian/rules
@@ -21,7 +21,7 @@
        dh $@ --with quilt,autoreconf
 
 # avoid libaudit-dev when bootstrapping
-ifneq (,$(filter $(DEB_BUILD_PROFILE),stage1))
+ifneq (,$(filter pkg.pam.noaudit,$(DEB_BUILD_PROFILES)))
   CONFIGURE_OPTS += --disable-audit
 endif  
 

Reply via email to