Your message dated Mon, 12 Aug 2013 09:33:37 +0000
with message-id <[email protected]>
and subject line Bug#679962: fixed in cracklib2 2.9.0-1
has caused the Debian Bug report #679962,
regarding Build for multiarch
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
679962: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679962
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cracklib2
Version: 2.8.19-1
Severity: wishlist
User: [email protected]
Usertags: origin-ubuntu quantal ubuntu-patch
Tags: patch

Hi there,

I just uploaded libpwquality which depends on libcrack2. I'd like to
make it multiarch, so it'd be good if cracklib2 could be made so too.
I'm attaching a patch series (against git) for your consideration. Some
notes:

  - To be conservative, I only multiarched the shared lib and the
    support package, not the -dev or anything else. You might want to do
    that.
  - I noticed that xmlto didn't generate the same output on i386 and
    amd64, which broke the multiarch conversion since all files need to
    have the same contents. Fortunatly docbook2html seems to, and works
    fine for your documentation, so I converted that.

I gave the python library a quick go, and tested that pam_cracklib still
works.

Please consider reviewing and applying. :-)

Cheers,

-- 
Iain Lane                                  [ [email protected] ]
Debian Developer                                   [ [email protected] ]
Ubuntu Developer                                   [ [email protected] ]
PhD student                                       [ [email protected] ]
From 3a4178af7e906137bee59d6a51f0edfcce8b6990 Mon Sep 17 00:00:00 2001
From: Iain Lane <[email protected]>
Date: Mon, 2 Jul 2012 13:01:50 +0100
Subject: [PATCH 1/3] Update for multiarch.

---
 debian/changelog           |    6 ++++++
 debian/control             |    6 +++++-
 debian/libcrack2-dev.links |    1 -
 debian/rules               |   18 +++++++++++++-----
 4 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 63beeb7..c4993c2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+cracklib2 (2.8.19-2) UNRELEASED; urgency=low
+
+  * Update for multiarch.
+
+ -- Iain Lane <[email protected]>  Mon, 02 Jul 2012 12:45:00 +0100
+
 cracklib2 (2.8.19-1) unstable; urgency=low
 
   * New upstream version
diff --git a/debian/control b/debian/control
index 741ad83..b1df4a2 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Jan Dittberner <[email protected]>
 Uploaders: Martin Pitt <[email protected]>
 Standards-Version: 3.9.3
-Build-Depends: debhelper (>= 7.0.50), python-all-dev (>= 2.6.6-3~),
+Build-Depends: debhelper (>= 9), python-all-dev (>= 2.6.6-3~),
  python3-all-dev (>= 3.1.3-2~), chrpath, xmlto, automake (>= 1.10),
  autoconf (>=2.61), libtool, python-setuptools, python3-setuptools,
  dpkg-dev (>= 1.16.1~), autotools-dev
@@ -14,6 +14,8 @@ Vcs-Browser: http://git.debian.org/?p=pkg-cracklib/pkg-cracklib.git
 
 Package: libcrack2
 Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Recommends: cracklib-runtime
 Description: pro-active password checker library
@@ -40,6 +42,8 @@ Description: pro-active password checker library - development files
 Package: cracklib-runtime
 Section: admin
 Architecture: any
+Multi-Arch: foreign
+Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends}, libcrack2 (>=${binary:Version}), file,
  ${misc:Depends}
 Recommends: wamerican | wordlist
diff --git a/debian/libcrack2-dev.links b/debian/libcrack2-dev.links
index 2bde974..4b01ff6 100644
--- a/debian/libcrack2-dev.links
+++ b/debian/libcrack2-dev.links
@@ -1,2 +1 @@
-/usr/lib/libcrack.so.2 /usr/lib/libcrack.so
 /usr/share/man/man3/FascistCheck.3 /usr/share/man/man3/cracklib.3
diff --git a/debian/rules b/debian/rules
index f3abdd9..36b2940 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,7 @@ include /usr/share/python/python.mk
 
 DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 PYVERS := $(shell pyversions -vs)
 PY3VERS := $(shell py3versions -vs)
@@ -19,6 +20,7 @@ override_dh_auto_configure:
 	$(CURDIR)/configure \
 		--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
 		--prefix=/usr --disable-rpath --without-python \
+		--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
 		--with-default-dict=/var/cache/cracklib/cracklib_dict \
 		CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
 	for i in $(PYVERS) $(PY3VERS); do \
@@ -27,6 +29,7 @@ override_dh_auto_configure:
 		$(CURDIR)/configure \
 			--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
 			--prefix=/usr --disable-rpath \
+			--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
 			--with-default-dict=/var/cache/cracklib/cracklib_dict \
 			PYTHON_PREFIX=$(call py_builddir_sh,$$i) \
 			PYTHON=/usr/bin/python$$i \
@@ -75,11 +78,11 @@ override_dh_auto_clean:
 override_dh_auto_install:
 	$(MAKE) -C $(CURDIR)/debian/buildtmp/base DESTDIR=$(CURDIR)/debian/libcrack2 install
 	# move files to libcrack2-dev
-	mkdir -p $(CURDIR)/debian/libcrack2-dev/usr/lib
+	mkdir -p $(CURDIR)/debian/libcrack2-dev/usr/lib/$(DEB_HOST_MULTIARCH)
 	mv $(CURDIR)/debian/libcrack2/usr/include \
 	   $(CURDIR)/debian/libcrack2-dev/usr
-	mv $(CURDIR)/debian/libcrack2/usr/lib/*.a \
-	   $(CURDIR)/debian/libcrack2-dev/usr/lib
+	mv $(CURDIR)/debian/libcrack2/usr/lib/$(DEB_HOST_MULTIARCH)/*.a \
+	   $(CURDIR)/debian/libcrack2-dev/usr/lib/$(DEB_HOST_MULTIARCH)
 	# move files to cracklib-runtime
 	mkdir -p $(CURDIR)/debian/cracklib-runtime/usr/share/dict
 	mv $(CURDIR)/debian/libcrack2/usr/sbin \
@@ -87,8 +90,8 @@ override_dh_auto_install:
 	mv $(CURDIR)/debian/libcrack2/usr/share/cracklib/cracklib-small \
 	   $(CURDIR)/debian/cracklib-runtime/usr/share/dict
 	# remove unused files
-	rm -f $(CURDIR)/debian/libcrack2/usr/lib/*.la \
-	      $(CURDIR)/debian/libcrack2/usr/lib/libcrack.so
+	rm -f $(CURDIR)/debian/libcrack2/usr/lib/$(DEB_HOST_MULTIARCH)/*.la \
+	      $(CURDIR)/debian/libcrack2/usr/lib/$(DEB_HOST_MULTIARCH)/libcrack.so
 	rm -rf $(CURDIR)/debian/libcrack2/usr/share/cracklib
 	chrpath -d \
 	  $(CURDIR)/debian/cracklib-runtime/usr/sbin/cracklib-check \
@@ -103,6 +106,11 @@ override_dh_auto_install:
 		python$$i setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-cracklib; \
 	done
 
+override_dh_link:
+	dh_link -plibcrack2-dev usr/lib/$(DEB_HOST_MULTIARCH)/libcrack.so.2 \
+		usr/lib/$(DEB_HOST_MULTIARCH)/libcrack.so
+	dh_link
+
 override_dh_installchangelogs:
 	dh_installchangelogs NEWS
 
-- 
1.7.10.4

From a90a62811e56b847326deb9f4691eb18997812f8 Mon Sep 17 00:00:00 2001
From: Iain Lane <[email protected]>
Date: Mon, 2 Jul 2012 13:57:57 +0100
Subject: [PATCH 2/3] Use docbook2html instead of xmlto, for determinstic
 output.

---
 debian/changelog |    1 +
 debian/control   |    2 +-
 debian/rules     |    4 ++--
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c4993c2..a726b40 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 cracklib2 (2.8.19-2) UNRELEASED; urgency=low
 
   * Update for multiarch.
+  * Use docbook2html instead of xmlto, for determinstic output. 
 
  -- Iain Lane <[email protected]>  Mon, 02 Jul 2012 12:45:00 +0100
 
diff --git a/debian/control b/debian/control
index b1df4a2..2dbdc72 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Maintainer: Jan Dittberner <[email protected]>
 Uploaders: Martin Pitt <[email protected]>
 Standards-Version: 3.9.3
 Build-Depends: debhelper (>= 9), python-all-dev (>= 2.6.6-3~),
- python3-all-dev (>= 3.1.3-2~), chrpath, xmlto, automake (>= 1.10),
+ python3-all-dev (>= 3.1.3-2~), chrpath, docbook-utils, automake (>= 1.10),
  autoconf (>=2.61), libtool, python-setuptools, python3-setuptools,
  dpkg-dev (>= 1.16.1~), autotools-dev
 Homepage: http://sourceforge.net/projects/cracklib
diff --git a/debian/rules b/debian/rules
index 36b2940..646d47d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -49,8 +49,8 @@ override_dh_auto_build:
 		      . ; \
 		CFLAGS="-I$(CURDIR)/lib $(CFLAGS)" LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)" python$$i setup.py build ; \
 	done
-	xmlto -o debian/doc xhtml-nochunks debian/libcrack2.xml
-	xmlto -o debian/doc xhtml-nochunks debian/cracklib-runtime.xml
+	docbook2html -o debian/doc --nochunks debian/libcrack2.xml
+	docbook2html -o debian/doc --nochunks debian/cracklib-runtime.xml
 
 override_dh_auto_test:
 	mkdir $(CURDIR)/debian/tmp
-- 
1.7.10.4

From d321662f94843a851ae3c4c39a9665e340179305 Mon Sep 17 00:00:00 2001
From: Iain Lane <[email protected]>
Date: Mon, 2 Jul 2012 14:07:48 +0100
Subject: [PATCH 3/3] Fix non-SGML characters in cracklib-runtime.xml

---
 debian/changelog            |    1 +
 debian/cracklib-runtime.xml |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index a726b40..a345096 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ cracklib2 (2.8.19-2) UNRELEASED; urgency=low
 
   * Update for multiarch.
   * Use docbook2html instead of xmlto, for determinstic output. 
+  * Fix non-SGML characters in cracklib-runtime.xml 
 
  -- Iain Lane <[email protected]>  Mon, 02 Jul 2012 12:45:00 +0100
 
diff --git a/debian/cracklib-runtime.xml b/debian/cracklib-runtime.xml
index b65d1bc..a8cd5b7 100644
--- a/debian/cracklib-runtime.xml
+++ b/debian/cracklib-runtime.xml
@@ -75,7 +75,7 @@
         <title>cracklib-format</title>
         <para><application>cracklib-format</application> takes a list
         of text files each containing a list of words, one per line,
-        It lowercases all words, removes control charac‐ters, and
+        It lowercases all words, removes control characters, and
         sorts the lists. It outputs the cleaned up list to standard
         output.
         </para>
@@ -119,7 +119,7 @@
       <title><package>cracklib2</package>'s test utility
       <application>cracklib-check.</application></title>
       <para><application>cracklib-check</application> takes a list of
-      passwords from stdin and checks them via libcrack2’s <ulink
+      passwords from stdin and checks them via libcrack2's <ulink
       url="/cgi-bin/man/man2html/FascistCheck+3">FascistCheck</ulink>
       sub routine.</para>
       <para><application>cracklib-check</application> prints each
-- 
1.7.10.4

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: cracklib2
Source-Version: 2.9.0-1

We believe that the bug you reported is fixed in the latest version of
cracklib2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jan Dittberner <[email protected]> (supplier of updated cracklib2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 12 Aug 2013 10:36:09 +0200
Source: cracklib2
Binary: libcrack2 libcrack2-dev cracklib-runtime python-cracklib 
python3-cracklib
Architecture: source amd64
Version: 2.9.0-1
Distribution: unstable
Urgency: low
Maintainer: Jan Dittberner <[email protected]>
Changed-By: Jan Dittberner <[email protected]>
Description: 
 cracklib-runtime - runtime support for password checker library cracklib2
 libcrack2  - pro-active password checker library
 libcrack2-dev - pro-active password checker library - development files
 python-cracklib - Python bindings for password checker library cracklib2
 python3-cracklib - Python3 bindings for password checker library cracklib2
Closes: 679962
Changes: 
 cracklib2 (2.9.0-1) unstable; urgency=low
 .
   * New upstream version
     - refresh debian/patches/libcrack2-error-safer-check-variant.patch
     - add new FascistCheckUser to debian/libcrack2.symbols
     - update library link in debian/libcrack2.links
   * debian/control: use canonical VCS-* URLs
   * Fix "Build for multiarch" (Closes: #679962)
     - add multiarch support contributed by Iain Lane
     - Use docbook2html instead of xmlto, for determinstic output.
     - Fix non-SGML characters in cracklib-runtime.xml
     - remove debian/libcrack2.links
Checksums-Sha1: 
 5414d2be8a3874287694b0c93d9cba8dbefdaf05 2332 cracklib2_2.9.0-1.dsc
 827dcd24b14bf23911c34f4226b4453b24f949a3 626322 cracklib2_2.9.0.orig.tar.gz
 835bc4cc2ca7bcfafee9e0cb0c24e3e8cb10be60 32101 cracklib2_2.9.0-1.debian.tar.gz
 b09b6953c61eb6a0ea4b9e48ec4f254d8cff9158 52360 libcrack2_2.9.0-1_amd64.deb
 f956037a6414790083ccb384bd323c39bc207dea 33894 libcrack2-dev_2.9.0-1_amd64.deb
 1b46d896689681222e00a5fc4b44202bcf1c7c1c 151008 
cracklib-runtime_2.9.0-1_amd64.deb
 4d590d76c100b48c5a9d2be26353a795a1a23ac8 25816 
python-cracklib_2.9.0-1_amd64.deb
 922a3f3cb5bbac26d0d6577a7652b2ae32a17ac8 25370 
python3-cracklib_2.9.0-1_amd64.deb
Checksums-Sha256: 
 0f3798bd6d191aa20117ffd2385cd1b56285f384bef91b1f72910c620f341bf1 2332 
cracklib2_2.9.0-1.dsc
 17fecdfa78c0b9b47afa1533ea99b5351c3cef770bbd9c8c34391827efecbdc0 626322 
cracklib2_2.9.0.orig.tar.gz
 d1be9005edcb1331375e012ba9b1eb228feac2f07c4e120d50b2da0b960c6066 32101 
cracklib2_2.9.0-1.debian.tar.gz
 87f204efd8ffd1081d20ae813a65e5ee9fd75bf1a6d9deaa7e8dfb42010098f3 52360 
libcrack2_2.9.0-1_amd64.deb
 d5f31762990c9254ef3455882aad132de4ec544e4abf6d49c8435a5370dfdf47 33894 
libcrack2-dev_2.9.0-1_amd64.deb
 5ee696edb42b7c4820c7a6a45ba82f570149ba07f043facf10a810e01eb97c01 151008 
cracklib-runtime_2.9.0-1_amd64.deb
 08e3d25d42f7cd46fe4a1c836cf1199e36996b77461364a098f8f8365c9b9ea5 25816 
python-cracklib_2.9.0-1_amd64.deb
 2d7349d52929f23a9b8cafa270cad893559b0cbf048083b0d0be81390430d95f 25370 
python3-cracklib_2.9.0-1_amd64.deb
Files: 
 e591c0611121dcdebb196877bcd602cb 2332 libs optional cracklib2_2.9.0-1.dsc
 e0f94ac2138fd33c7e77b19c1e9a9390 626322 libs optional 
cracklib2_2.9.0.orig.tar.gz
 6c4333689d469afa5bc1c304941138f9 32101 libs optional 
cracklib2_2.9.0-1.debian.tar.gz
 5121a4f1829504f24381eeedb08c6e27 52360 libs optional 
libcrack2_2.9.0-1_amd64.deb
 72433ac66f64b82c7f34a4066fa13692 33894 libdevel extra 
libcrack2-dev_2.9.0-1_amd64.deb
 8f2b284beec5c72d4be500de3e796507 151008 admin optional 
cracklib-runtime_2.9.0-1_amd64.deb
 76c7bfb371d8fa271721c40090a7aeea 25816 python optional 
python-cracklib_2.9.0-1_amd64.deb
 3df06c85b61437d181e7887b30dc0514 25370 python optional 
python3-cracklib_2.9.0-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCgAGBQJSCJ9xAAoJEKc+AFVVj7jdUokP/Ax9RXv3UcPYJ7TEYC9zU0oT
SaDA1FDW+YXfSDfBxFMK1SE0dkxj8MG6Iz9SD5XmAakhvAGHh7FTYAQes7HDmorp
KvcnaHSQoyVqf4YOXCx7lYoNkd5mrf6TQVb46koDaaGQWQnBdFcf5rEBSJn4xMBC
ODo14cMyrIddBe8y+Nm2s+ifoNC7Jl3BkRL+E/qIvlVIYvK/uVxw0pAA67pPZPgD
NYSZf6wm07eYHY5maba+F0W2hxxauPi1EJ9/7pvnD39CjvHDb7i3EnUprSZNne9R
QrAlWWHfhDKnLA6lJpcifrOJtjxAFgWu83NqkJ1pvr5u4SPZccZhZgzhi5oRKlhi
qsPmQF18uYYPMd0tM+IQ8EGga1rjppn0yGrBwtH1I9NOZoMZfYTLnq+4jpC2W0dV
XPhcaRaPA4yl+q8HtAVE84iAnxolep/Zu9v9bOs8fHtr7Ueb7k514Cak3jKAxoVH
Lxom49JmjX46tBH6pQAk1lqT9KUgwse1q37mcVS+aEXqD37q7YEie4ilI24fWTd2
CdpXfYY5Vjv0dsD875QWxHbMDx2drcroMFaYEbGBapLNK+ysL/8xoIvgbWTduooK
NOrc+/5VEsMDOdLl2ZdnwEkXCQuj+s3/c0BtSel/0DexQBGY93wwdhFrTD7IiXOm
XS5A+dL7pHwvcpXep6EV
=ZeA5
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to