phrasendrescher: fix build with gcc15 (#515934)

This commit is contained in:
Bjørn Forsman
2026-05-03 07:14:02 +00:00
committed by GitHub
2 changed files with 36 additions and 0 deletions
@@ -0,0 +1,26 @@
diff --git a/src/rewriter.c b/src/rewriter.c
index f8c72bf..9c95e7e 100644
--- a/src/rewriter.c
+++ b/src/rewriter.c
@@ -64,7 +64,7 @@ int rewriter_get(char *word)
if (word == '\0') {
*original_word = '\0';
- rewriter_reset(rule_set);
+ rewriter_reset();
return 0;
}
diff --git a/src/utils.h b/src/utils.h
index c20ac5c..b8fe00a 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -33,7 +33,7 @@
void prepare_tty();
void reset_tty();
-void handle_user_input();
+void handle_user_input(int worker_num);
void set_verbose();
void verbose_printf(const char *fmt, ...);
@@ -5,6 +5,7 @@
openssl,
libssh2,
gpgme,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -16,6 +17,11 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "18vg6h294219v14x5zqm8ddmq5amxlbz7pw81lcmpz8v678kwyph";
};
patches = [
# gcc15
./fix-prototypes.patch
];
postPatch = ''
substituteInPlace configure \
--replace 'SSL_LIB="ssl"' 'SSL_LIB="crypto"'
@@ -29,6 +35,10 @@ stdenv.mkDerivation (finalAttrs: {
configureFlags = [ "--with-plugins" ];
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "-h";
doInstallCheck = true;
meta = {
description = "Modular and multi processing pass phrase cracking tool";
homepage = "https://leidecker.info/projects/phrasendrescher/index.shtml";