Source: cracklib2
Version: 2.9.6-2
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

When building cracklib2 in a dirty chroot (i.e. with extra packages),
the build result is not reproducible. The presence of zlib1g-dev adds
additional features. Moreover, when doing a cross build, the presence of
zlib1g-dev:$DEB_BUILD_ARCH can result in a build failure of
zlib1g-dev:$DEB_HOST_ARCH is missing. Please curse me for attempting to
do such things.

Anyway, cracklib2 could easily support this mode by being explicit about
its zlib integration. The status quo would be --without-zlib. Please
consider applying the attached patch.

Helmut
diff --minimal -Nru cracklib2-2.9.6/debian/changelog 
cracklib2-2.9.6/debian/changelog
--- cracklib2-2.9.6/debian/changelog    2018-12-31 12:04:32.000000000 +0100
+++ cracklib2-2.9.6/debian/changelog    2019-05-04 18:28:10.000000000 +0200
@@ -1,3 +1,10 @@
+cracklib2 (2.9.6-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Explicitly disable zlib support. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 04 May 2019 18:28:10 +0200
+
 cracklib2 (2.9.6-2) unstable; urgency=medium
 
   * Add missing 2.9.6-1 changelog bug tracker references
diff --minimal -Nru cracklib2-2.9.6/debian/rules cracklib2-2.9.6/debian/rules
--- cracklib2-2.9.6/debian/rules        2018-12-31 12:04:32.000000000 +0100
+++ cracklib2-2.9.6/debian/rules        2019-05-04 18:28:09.000000000 +0200
@@ -38,6 +38,7 @@
                --prefix=/usr --disable-rpath --without-python \
                --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
                --with-default-dict=/var/cache/cracklib/cracklib_dict \
+               --without-zlib \
                CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
        for i in $(PYVERS) $(PY3VERS); do \
                mkdir -p $(CURDIR)/debian/buildtmp/python$$i; \
@@ -47,6 +48,7 @@
                        --prefix=/usr --disable-rpath \
                        --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
                        --with-default-dict=/var/cache/cracklib/cracklib_dict \
+                       --without-zlib \
                        PYTHON_PREFIX=$(call py_builddir_sh,$$i) \
                        PYTHON=/usr/bin/python$$i \
                        CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" 
LDFLAGS="$(LDFLAGS)"; \

Reply via email to