🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #1217

Bug#1126964: cracklib2: diff for NMU version 2.9.6-5.3

#1217
From: Guillem Jover
Date: Sat, 17 Oct 2026 22:50
149 lines
6413 bytes
--x0q/ZUi/Ala0aTlQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi!

On Tue, 2026-06-09 at 19:35:36 +0300, Adrian Bunk wrote:
> Control: tags 1126964 + patch
> Control: tags 1126964 + pending

> I've prepared an NMU for cracklib2 (versioned as 2.9.6-5.3) and uploaded 
> it to DELAYED/12. Please feel free to tell me if I should cancel it.

Unfortunately this change introduced a regression and breaks building
on musl, where the provided patch partially reverts the exiting patch
that fixed this problem.

> diff -Nru cracklib2-2.9.6/debian/patches/gettext0.26.patch cracklib2-2.9.6/debian/patches/gettext0.26.patch
> --- cracklib2-2.9.6/debian/patches/gettext0.26.patch	1970-01-01 02:00:00.000000000 +0200
> +++ cracklib2-2.9.6/debian/patches/gettext0.26.patch	2026-06-06 21:53:24.000000000 +0300
> @@ -0,0 +1,14 @@
> +Description: Fix FTBFS with gettext 0.26
> +Author: Adrian Bunk <bunk@debian.org>
> +Bug-Debian: https://bugs.debian.org/1126964
> +
> +--- cracklib2-2.9.6.orig/configure.ac
> ++++ cracklib2-2.9.6/configure.ac
> +@@ -55,7 +55,6 @@ AC_CHECK_FUNCS(strdup)
> + AC_CHECK_FUNCS(getpwuid_r)
> + 
> + dnl internationalization macros
> +-AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8])
> + AM_GNU_GETTEXT_VERSION([0.19.6])
> + AM_GNU_GETTEXT([external])
> + 
> diff -Nru cracklib2-2.9.6/debian/patches/series cracklib2-2.9.6/debian/patches/series
> --- cracklib2-2.9.6/debian/patches/series	2024-11-20 12:47:40.000000000 +0200
> +++ cracklib2-2.9.6/debian/patches/series	2026-06-06 21:53:24.000000000 +0300
> @@ -6,3 +6,4 @@
>  fix-musl-linux-any-build
>  python3.12-support.patch
>  python3.13-unittest.patch
> +gettext0.26.patch

I looked at this at Helmut request, and came up with the following
minimal fix (attached) which should be the correct fix to make the
package be able to use latest gettext versions. For the more exhaustive
autotools fixes I sent a PR upstream at
<https://github.com/cracklib/cracklib/pull/128>.

Thanks,
Guillem

--x0q/ZUi/Ala0aTlQ
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename=cracklib2-musl-regression.patch

diff --git i/debian/patches/gettext0.26.patch w/debian/patches/gettext0.26.patch
index 8f2e6c1..72b2a51 100644
--- i/debian/patches/gettext0.26.patch
+++ w/debian/patches/gettext0.26.patch
@@ -1,14 +1,63 @@
 Description: Fix FTBFS with gettext 0.26
-Author: Adrian Bunk <bunk@debian.org>
+ Do not use the obsolete ALL_LINGUAS which is no longer supported by newer
+ gettext version, and causes the build process to no longer be able to find
+ the locale files.
+Author: Guillem Jover <guillem@hadrons.org>
 Bug-Debian: https://bugs.debian.org/1126964
+Forwarded: https://github.com/cracklib/cracklib/pull/128
 
---- cracklib2-2.9.6.orig/configure.ac
-+++ cracklib2-2.9.6/configure.ac
-@@ -55,7 +55,6 @@ AC_CHECK_FUNCS(strdup)
- AC_CHECK_FUNCS(getpwuid_r)
- 
- dnl internationalization macros
--AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8])
- AM_GNU_GETTEXT_VERSION([0.19.6])
- AM_GNU_GETTEXT([external])
+---
+ configure.ac |    3 ---
+ po/LINGUAS   |   35 +++++++++++++++++++++++++++++++++++
+ 2 files changed, 35 insertions(+), 3 deletions(-)
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -4,9 +4,6 @@ AM_INIT_AUTOMAKE
+ AC_CONFIG_HEADERS([config.h])
+ AC_CONFIG_MACRO_DIR([m4])
  
+-dnl Set of available languages.
+-ALL_LINGUAS="as bn_IN cs da de el es fi fr gu hi hu it ja kn ko lt nb nl ml mr or pa pl pt_BR pt ru sl_SI sk ta te tr uk zh_CN zh_TW"
+-
+ dnl Checks for programs.
+ AC_PROG_LIBTOOL
+ AC_PROG_CC
+--- /dev/null
++++ b/po/LINGUAS
+@@ -0,0 +1,35 @@
++as
++bn_IN
++cs
++da
++de
++el
++es
++fi
++fr
++gu
++hi
++hu
++it
++ja
++kn
++ko
++lt
++nb
++nl
++ml
++mr
++or
++pa
++pl
++pt_BR
++pt
++ru
++sl_SI
++sk
++ta
++te
++tr
++uk
++zh_CN
++zh_TW
diff --git i/debian/rules w/debian/rules
index 4fea99c..85301fd 100755
--- i/debian/rules
+++ w/debian/rules
@@ -29,7 +29,6 @@ export _PYTHON_HOST_PLATFORM=$(DEB_HOST_ARCH_OS)-$(DEB_HOST_GNU_CPU)
 export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__$(DEB_HOST_ARCH_OS)_$(DEB_HOST_MULTIARCH)
 
 override_dh_auto_configure:
-	aclocal && libtoolize && automake --add-missing && autoreconf
 	mkdir -p $(CURDIR)/debian/buildtmp/base
 	cd $(CURDIR)/debian/buildtmp/base; \
 	$(CURDIR)/configure \

--x0q/ZUi/Ala0aTlQ--
Technical Details
Message-ID: <NPlnX-6dDo-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.in-chemnitz.de!news.szaf.org!news.datentrampelpfad.de!news.imp.ch!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
References: <MkQgy-fJkF-23@gated-at.bofh.it> <N47EB-byXr-1@gated-at.bofh.it> <MkQgy-fJkF-23@gated-at.bofh.it> <N47EB-byXr-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.in-chemnitz.de!news.szaf.org!news.datentrampelpfad.de!news.imp.ch!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Guillem Jover <guillem@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1126964: cracklib2: diff for NMU version 2.9.6-5.3
Date: Sun, 18 Oct 2026 00:50:01 +0200
Message-ID: <NPlnX-6dDo-3@gated-at.bofh.it>
References: <MkQgy-fJkF-23@gated-at.bofh.it> <N47EB-byXr-1@gated-at.bofh.it> <MkQgy-fJkF-23@gated-at.bofh.it> <N47EB-byXr-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sat Oct 17 22:45:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Guillem Jover <guillem@debian.org>, 1126964@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: jandd@debian.org
X-Debian-Pr-Message: followup 1126964
X-Debian-Pr-Package: src:cracklib2
X-Debian-Pr-Keywords: patch forky sid experimental ftbfs
X-Debian-Pr-Source: cracklib2
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="x0q/ZUi/Ala0aTlQ"
Content-Disposition: inline
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997321
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 149
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Helmut Grohne <helmut@subdivi.de>
X-Original-Date: Sun, 18 Oct 2026 00:43:13 +0200
X-Original-Message-ID: <atP6Aev0NsDe4LKz@thunder.hadrons.org>
X-Original-References: <E1vni2B-007Tfo-0s@paradis.debian.org> <aihA2MUYxxLRPOO0@localhost> <E1vni2B-007Tfo-0s@paradis.debian.org> <aihA2MUYxxLRPOO0@localhost>