From d87a646b0ac0f32b04f2468088a63998ea5e30ad Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Thu, 11 Dec 2025 09:51:48 +0100 Subject: [PATCH] gnu: cracklib: Update to 2.10.3. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/password-utils.scm (cracklib): Update to 2.10.3. [source]: Switch to git-fetch. [arguments]<#:phases>: Remove ’install-dict and add ’chdir. [native-inputs]: Add autoconf, automake, libtool and intltool. Change-Id: I1cc877f5d62b594bf7ead4899497420c2d930cb5 --- gnu/packages/password-utils.scm | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index e75aae44abed2840d4611c6274c1d6a7e85f7620..ba713020361f6bf048576012d925166f7b5fdc6f 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -689,25 +689,26 @@ and vice versa.") (define-public cracklib (package (name "cracklib") - (version "2.9.8") + (version "2.10.3") (source (origin - (method url-fetch) - (uri (string-append "https://github.com/cracklib/cracklib/" - "releases/download/v" version "/" - "cracklib-" version ".tar.bz2")) + (method git-fetch) + (uri (git-reference + (url "https://github.com/cracklib/cracklib/") + (commit (string-append "v" version)))) (sha256 - (base32 "11p3f0yqg9d32g3n1qik7jfyl2l14pf8i8vzq3bpram3bqw3978z")))) + (base32 + "037ybxmxap39bjhfajyxnmn8612k638qilfv9r90s6qkxs6lj6ir")) + (file-name (git-file-name name version)))) (build-system gnu-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'install 'install-dict - (lambda* (#:key make-flags #:allow-other-keys) - (begin - (chmod (string-append "util/cracklib-format") #o755) - (apply invoke "make" "dict" make-flags) - #t)))))) + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'bootstrap 'chdir + (lambda _ (chdir "src")))))) + (native-inputs + (list autoconf automake libtool intltool)) (synopsis "Password checking library") (home-page "https://github.com/cracklib/cracklib") (description