public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Remi Collet <remi@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/hydra] epel10: rebuild with libbson and libmongc v2
Date: Fri, 06 Nov 2026 15:26:09 GMT [thread overview]
Message-ID: <179397876943.1.5393425428822851114.rpms-hydra-8fd427ac4c54@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/hydra
Branch : epel10
Commit : 8fd427ac4c5405ac30c3caa648d613b4008e6746
Author : Remi Collet <remi@fedoraproject.org>
Date : 2026-02-26T10:09:34+01:00
Stats : +378/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/hydra/c/8fd427ac4c5405ac30c3caa648d613b4008e6746?branch=epel10
Log:
rebuild with libbson and libmongc v2
add upstream patch to fix FTBFS #2440913
---
diff --git a/hydra.spec b/hydra.spec
index dee82be..a9fb7ce 100644
--- a/hydra.spec
+++ b/hydra.spec
@@ -1,7 +1,7 @@
Summary: Very fast network log-on cracker
Name: hydra
Version: 9.6
-Release: 2%{?dist}
+Release: 3%{?dist}
License: AGPL-3.0-only
URL: https://github.com/vanhauser-thc/thc-hydra
VCS: git:https://github.com/vanhauser-thc/thc-hydra
@@ -16,6 +16,8 @@ Patch1: hydra-fix-dpl4hydra-dir.patch
Patch100: 0000-port-xhydra-gtk3.patch
Patch101: 0000-more-hydra-gtk.patch
Patch102: 0000-hydra-gtk-last.patch
+# Upstream Fix for libbson2/libmongc2
+Patch103: libmongoc2.patch
BuildRequires: afpfs-ng-devel
BuildRequires: apr-devel
@@ -97,6 +99,10 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/xhydra.desktop
%{_mandir}/man1/xhydra.1*
%changelog
+* Thu Feb 26 2026 Remi Collet <remi@fedoraproject.org> - 9.6-3
+- rebuild with libbson and libmongc v2
+- add upstream patch to fix FTBFS #2440913
+
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 9.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
diff --git a/libmongoc2.patch b/libmongoc2.patch
new file mode 100644
index 0000000..4bb1c2e
--- /dev/null
+++ b/libmongoc2.patch
@@ -0,0 +1,371 @@
+From e5729446de04b5e65f3c673f0e0fbe5995976573 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Juli=C3=A1n=20Moreno=20Pati=C3=B1o?= <julian@debian.org>
+Date: Mon, 10 Nov 2025 10:56:10 -0500
+Subject: [PATCH] support mongo-c-driver version 2
+
+---
+ configure | 207 +++++++++++++++++++++++++++++++++++++-----------
+ hydra-mongodb.c | 5 +-
+ hydra.c | 8 +-
+ 3 files changed, 170 insertions(+), 50 deletions(-)
+
+diff --git a/configure b/configure
+index dc86adb7..ffe82d89 100755
+--- a/configure
++++ b/configure
+@@ -53,6 +53,10 @@ MYSQL_PATH=""
+ MYSQL_IPATH=""
+ MCACHED_PATH=""
+ MCACHED_IPATH=""
++MONGODB2_PATH=""
++MONGODB2_IPATH=""
++BSON2_PATH=""
++BSON2_IPATH=""
+ MONGODB_PATH=""
+ MONGODB_IPATH=""
+ BSON_PATH=""
+@@ -1191,96 +1195,192 @@ echo "Checking for Freerdp3 (libfreerdp3/freerdp.h/libwinpr3/winpr.h) ..."
+ fi
+ fi
+
+-echo "Checking for Mongodb (libmongoc-1.0/mongoc.h/libbson-1.0/bson.h) ..."
++echo "Checking for Mongodb2 (mongoc-2.x.x/mongoc/mongoc.h/bson-2.x.x/bson/bson.h) ..."
+
+ for i in $LIBDIRS ; do
+- if [ "X" = "X$MONGODB_PATH" ]; then
+- if [ -f "$i/libmongoc-1.0.so" -o -f "$i/libmongoc-1.0.dylib" -o -f "$i/libmongoc-1.0.a" ]; then
+- MONGODB_PATH="$i"
++ if [ "X" = "X$MONGODB2_PATH" ]; then
++ if [ -f "$i/libmongoc2.so" -o -f "$i/libmongoc2.dylib" -o -f "$i/libmongoc2.a" ]; then
++ MONGODB2_PATH="$i"
+ fi
+ fi
+- if [ "X" = "X$MONGODB_PATH" ]; then
+- TMP_LIB=`/bin/ls $i/libmongoc-*.so* 2> /dev/null | grep mongoc`
++ if [ "X" = "X$MONGODB2_PATH" ]; then
++ TMP_LIB=`/bin/ls $i/libmongoc2.so* 2> /dev/null | grep mongoc`
+ if [ -n "$TMP_LIB" ]; then
+- MONGODB_PATH="$i"
++ MONGODB2_PATH="$i"
+ fi
+ fi
+- if [ "X" = "X$MONGODB_PATH" ]; then
+- TMP_LIB=`/bin/ls $i/libmongoc.dll* 2> /dev/null | grep mongoc`
++ if [ "X" = "X$MONGODB2_PATH" ]; then
++ TMP_LIB=`/bin/ls $i/libmongoc2.dll* 2> /dev/null | grep mongoc`
+ if [ -n "$TMP_LIB" ]; then
+- MONGODB_PATH="$i"
++ MONGODB2_PATH="$i"
+ fi
+ fi
+ done
+
+- MONGODB_IPATH=
++ MONGODB2_IPATH=
+ for i in $INCDIRS ; do
+- if [ "X" = "X$MONGODB_IPATH" ]; then
++ if [ "X" = "X$MONGODB2_IPATH" ]; then
+ if [ -f "$i/mongoc.h" ]; then
+- MONGODB_IPATH="$i"
++ MONGODB2_IPATH="$i"
+ fi
+- if [ -f "$i/libmongoc/mongoc.h" ]; then
+- MONGODB_IPATH="$i/libmongoc"
+- fi
+- if [ -f "$i/libmongoc-1.0/mongoc.h" ]; then
+- MONGODB_IPATH="$i/libmongoc-1.0"
++ if [ -f "$i/mongoc/mongoc.h" ]; then
++ MONGODB2_IPATH="$i/libmongoc"
+ fi
++ for ii in `ls -1d $i/mongoc-2.*`; do
++ if [ -f "${ii}/mongoc/mongoc.h" ]; then
++ MONGODB2_IPATH="$ii"
++ fi
++ done
+ fi
+ done
+
+ for i in $LIBDIRS ; do
+- if [ "X" = "X$BSON_PATH" ]; then
+- if [ -f "$i/libbson-1.0.so" -o -f "$i/libbson-1.0.dylib" -o -f "$i/libbson-1.0.a" ]; then
+- BSON_PATH="$i"
++ if [ "X" = "X$BSON2_PATH" ]; then
++ if [ -f "$i/libbson2.so" -o -f "$i/libbson2.dylib" -o -f "$i/libbson2.a" ]; then
++ BSON2_PATH="$i"
+ fi
+ fi
+- if [ "X" = "X$BSON_PATH" ]; then
+- TMP_LIB=`/bin/ls $i/libbson-*.so* 2> /dev/null | grep mongoc`
++ if [ "X" = "X$BSON2_PATH" ]; then
++ TMP_LIB=`/bin/ls $i/libbson2*.so* 2> /dev/null | grep mongoc`
+ if [ -n "$TMP_LIB" ]; then
+- BSON_PATH="$i"
++ BSON2_PATH="$i"
+ fi
+ fi
+- if [ "X" = "X$BSON_PATH" ]; then
+- TMP_LIB=`/bin/ls $i/libbson.dll* 2> /dev/null | grep mongoc`
++ if [ "X" = "X$BSON2_PATH" ]; then
++ TMP_LIB=`/bin/ls $i/libbson2.dll* 2> /dev/null | grep mongoc`
+ if [ -n "$TMP_LIB" ]; then
+- BSON_PATH="$i"
++ BSON2_PATH="$i"
+ fi
+ fi
+ done
+
+- BSON_IPATH=
++ BSON2_IPATH=
+ for i in $INCDIRS ; do
+- if [ "X" = "X$BSON_IPATH" ]; then
++ if [ "X" = "X$BSON2_IPATH" ]; then
+ if [ -f "$i/bson.h" ]; then
+- BSON_IPATH="$i"
++ BSON2_IPATH="$i"
+ fi
+ if [ -f "$i/libbson/bson.h" ]; then
+- BSON_IPATH="$i/libbson"
+- fi
+- if [ -f "$i/libbson-1.0/bson.h" ]; then
+- BSON_IPATH="$i/libbson-1.0"
++ BSON2_IPATH="$i/libbson"
+ fi
++ for ii in `ls -1d $i/bson-2.*`; do
++ if [ -f "${ii}/bson/bson.h" ]; then
++ BSON2_IPATH="$ii"
++ fi
++ done
+ fi
+ done
+
+ if [ "X" != "X$DEBUG" ]; then
+- echo DEBUG: MONGODB_PATH=$MONGODB_PATH/libmongoc
+- echo DEBUG: MONGODB_IPATH=$MONGODB_IPATH/libmongoc.h
+- echo DEBUG: BSON_PATH=$BSON_PATH/libbson
+- echo DEBUG: BSON_IPATH=$BSON_IPATH/libbson.h
++ echo DEBUG: MONGODB2_PATH=$MONGODB2_PATH
++ echo DEBUG: MONGODB2_IPATH=$MONGODB2_IPATH
++ echo DEBUG: BSON2_PATH=$BSON2_PATH
++ echo DEBUG: BSON2_IPATH=$BSON2_IPATH
+ fi
+
+- if [ -n "$MONGODB_PATH" -a -n "$MONGODB_IPATH" -a -n "$BSON_PATH" -a -n "$BSON_IPATH" ]; then
++ if [ -n "$MONGODB2_PATH" -a -n "$MONGODB2_IPATH" -a -n "$BSON2_PATH" -a -n "$BSON2_IPATH" ]; then
+ echo " ... found"
+ fi
+- if [ "X" = "X$MONGODB_PATH" -o "X" = "X$MONGODB_IPATH" -o "X" = "X$BSON_PATH" -o "X" = "X$BSON_IPATH" ]; then
+- echo " ... NOT found, module mongodb disabled"
+- MONGODB_PATH=""
+- MONGODB_IPATH=""
+- BSON_PATH=""
+- BSON_IPATH=""
++ if [ "X" = "X$MONGODB2_PATH" -o "X" = "X$MONGODB2_IPATH" -o "X" = "X$BSON2_PATH" -o "X" = "X$BSON2_IPATH" ]; then
++ echo " ... NOT found, module mongodb2 disabled"
++ MONGODB2_PATH=""
++ MONGODB2_IPATH=""
++ BSON2_PATH=""
++ BSON2_IPATH=""
+ fi
+
++if [ "X" = "X$MONGODB2_PATH" -o "X" = "X$MONGODB2_IPATH" -o "X" = "X$BSON2_PATH" -o "X" = "X$BSON2_IPATH" ]; then
++ echo "Checking for Mongodb (libmongoc-1.0/mongoc.h/libbson-1.0/bson.h) ..."
++
++ for i in $LIBDIRS ; do
++ if [ "X" = "X$MONGODB_PATH" ]; then
++ if [ -f "$i/libmongoc-1.0.so" -o -f "$i/libmongoc-1.0.dylib" -o -f "$i/libmongoc-1.0.a" ]; then
++ MONGODB_PATH="$i"
++ fi
++ fi
++ if [ "X" = "X$MONGODB_PATH" ]; then
++ TMP_LIB=`/bin/ls $i/libmongoc-*.so* 2> /dev/null | grep mongoc`
++ if [ -n "$TMP_LIB" ]; then
++ MONGODB_PATH="$i"
++ fi
++ fi
++ if [ "X" = "X$MONGODB_PATH" ]; then
++ TMP_LIB=`/bin/ls $i/libmongoc.dll* 2> /dev/null | grep mongoc`
++ if [ -n "$TMP_LIB" ]; then
++ MONGODB_PATH="$i"
++ fi
++ fi
++ done
++
++ MONGODB_IPATH=
++ for i in $INCDIRS ; do
++ if [ "X" = "X$MONGODB_IPATH" ]; then
++ if [ -f "$i/mongoc.h" ]; then
++ MONGODB_IPATH="$i"
++ fi
++ if [ -f "$i/libmongoc/mongoc.h" ]; then
++ MONGODB_IPATH="$i/libmongoc"
++ fi
++ if [ -f "$i/libmongoc-1.0/mongoc.h" ]; then
++ MONGODB_IPATH="$i/libmongoc-1.0"
++ fi
++ fi
++ done
++
++ for i in $LIBDIRS ; do
++ if [ "X" = "X$BSON_PATH" ]; then
++ if [ -f "$i/libbson-1.0.so" -o -f "$i/libbson-1.0.dylib" -o -f "$i/libbson-1.0.a" ]; then
++ BSON_PATH="$i"
++ fi
++ fi
++ if [ "X" = "X$BSON_PATH" ]; then
++ TMP_LIB=`/bin/ls $i/libbson-*.so* 2> /dev/null | grep mongoc`
++ if [ -n "$TMP_LIB" ]; then
++ BSON_PATH="$i"
++ fi
++ fi
++ if [ "X" = "X$BSON_PATH" ]; then
++ TMP_LIB=`/bin/ls $i/libbson.dll* 2> /dev/null | grep mongoc`
++ if [ -n "$TMP_LIB" ]; then
++ BSON_PATH="$i"
++ fi
++ fi
++ done
++
++ BSON_IPATH=
++ for i in $INCDIRS ; do
++ if [ "X" = "X$BSON_IPATH" ]; then
++ if [ -f "$i/bson.h" ]; then
++ BSON_IPATH="$i"
++ fi
++ if [ -f "$i/libbson/bson.h" ]; then
++ BSON_IPATH="$i/libbson"
++ fi
++ if [ -f "$i/libbson-1.0/bson.h" ]; then
++ BSON_IPATH="$i/libbson-1.0"
++ fi
++ fi
++ done
++
++ if [ "X" != "X$DEBUG" ]; then
++ echo DEBUG: MONGODB_PATH=$MONGODB_PATH/libmongoc
++ echo DEBUG: MONGODB_IPATH=$MONGODB_IPATH/libmongoc.h
++ echo DEBUG: BSON_PATH=$BSON_PATH/libbson
++ echo DEBUG: BSON_IPATH=$BSON_IPATH/libbson.h
++ fi
++
++ if [ -n "$MONGODB_PATH" -a -n "$MONGODB_IPATH" -a -n "$BSON_PATH" -a -n "$BSON_IPATH" ]; then
++ echo " ... found"
++ fi
++ if [ "X" = "X$MONGODB_PATH" -o "X" = "X$MONGODB_IPATH" -o "X" = "X$BSON_PATH" -o "X" = "X$BSON_IPATH" ]; then
++ echo " ... NOT found, module mongodb disabled"
++ MONGODB_PATH=""
++ MONGODB_IPATH=""
++ BSON_PATH=""
++ BSON_IPATH=""
++ fi
++fi
++
+ echo "Checking for smbclient (libsmbclient/libsmbclient.h) ..."
+
+ for i in $LIBDIRS ; do
+@@ -1537,6 +1637,12 @@ fi
+ if [ -n "$MCACHED_PATH" ]; then
+ XDEFINES="$XDEFINES -DLIBMCACHED"
+ fi
++if [ -n "$MONGODB2_PATH" ]; then
++ XDEFINES="$XDEFINES -DLIBMONGODB2"
++fi
++if [ -n "$BSON2_PATH" ]; then
++ XDEFINES="$XDEFINES -DLIBBSON2"
++fi
+ if [ -n "$MONGODB_PATH" ]; then
+ XDEFINES="$XDEFINES -DLIBMONGODB"
+ fi
+@@ -1579,6 +1685,8 @@ for i in $SSL_PATH \
+ $AFP_PATH \
+ $MYSQL_PATH \
+ $MCACHED_PATH \
++ $MONGODB2_PATH \
++ $BSON2_PATH \
+ $MONGODB_PATH \
+ $BSON_PATH \
+ $FREERDP2_PATH \
+@@ -1641,6 +1749,9 @@ fi
+ if [ -n "$MCACHED_IPATH" ]; then
+ XIPATHS="$XIPATHS -I$MCACHED_IPATH"
+ fi
++if [ -n "$MONGODB2_IPATH" ]; then
++ XIPATHS="$XIPATHS -I$MONGODB2_IPATH -I$BSON2_IPATH"
++fi
+ if [ -n "$MONGODB_IPATH" ]; then
+ XIPATHS="$XIPATHS -I$MONGODB_IPATH -I$BSON_IPATH"
+ fi
+@@ -1725,6 +1836,12 @@ fi
+ if [ -n "$MCACHED_PATH" ]; then
+ XLIBS="$XLIBS -lmemcached"
+ fi
++if [ -n "$MONGODB2_PATH" ]; then
++ XLIBS="$XLIBS -lmongoc2"
++fi
++if [ -n "$BSON2_PATH" ]; then
++ XLIBS="$XLIBS -lbson2"
++fi
+ if [ -n "$MONGODB_PATH" ]; then
+ XLIBS="$XLIBS -lmongoc-1.0"
+ fi
+diff --git a/hydra-mongodb.c b/hydra-mongodb.c
+index 66269be3..49a799c4 100644
+--- a/hydra-mongodb.c
++++ b/hydra-mongodb.c
+@@ -2,13 +2,16 @@
+ // Tested on mongodb-server 1:3.6.3-0ubuntu1
+ // MONGODB-CR is been deprecated
+
++#ifdef LIBMONGODB2
++#include <mongoc/mongoc.h>
++#endif
+ #ifdef LIBMONGODB
+ #include <mongoc.h>
+ #endif
+
+ #include "hydra-mod.h"
+
+-#ifndef LIBMONGODB
++#if !defined(LIBMONGODB2) && !defined(LIBMONGODB)
+ void dummy_mongodb() { printf("\n"); }
+ #else
+
+diff --git a/hydra.c b/hydra.c
+index a50989a5..4e194c0a 100644
+--- a/hydra.c
++++ b/hydra.c
+@@ -161,7 +161,7 @@ extern int32_t service_radmin2_init(char *ip, int32_t sp, unsigned char options,
+ extern void service_mcached(char *ip, int32_t sp, unsigned char options, char *miscptr, FILE *fp, int32_t port, char *hostname);
+ extern int32_t service_mcached_init(char *ip, int32_t sp, unsigned char options, char *miscptr, FILE *fp, int32_t port, char *hostname);
+ #endif
+-#ifdef LIBMONGODB
++#if defined(LIBMONGODB2) || defined(LIBMONGODB)
+ extern void service_mongodb(char *ip, int32_t sp, unsigned char options, char *miscptr, FILE *fp, int32_t port, char *hostname);
+ extern int32_t service_mongodb_init(char *ip, int32_t sp, unsigned char options, char *miscptr, FILE *fp, int32_t port, char *hostname);
+ #endif
+@@ -411,7 +411,7 @@ static const struct {
+ #endif
+ SERVICE(mssql),
+ SERVICE(cobaltstrike),
+-#ifdef LIBMONGODB
++#if defined(LIBMONGODB2) || defined(LIBMONGODB)
+ SERVICE3("mongodb", mongodb),
+ #endif
+ #ifdef HAVE_MATH_H
+@@ -2275,7 +2275,7 @@ int main(int argc, char *argv[]) {
+ SERVICES = hydra_string_replace(SERVICES, "memcached ", "");
+ strcat(unsupported, "memcached ");
+ #endif
+-#ifndef LIBMONGODB
++#if !defined(LIBMONGODB2) && !defined(LIBMONGODB)
+ SERVICES = hydra_string_replace(SERVICES, "mongodb ", "");
+ strcat(unsupported, "mongodb ");
+ #endif
+@@ -2874,7 +2874,7 @@ int main(int argc, char *argv[]) {
+ #endif
+
+ if (strcmp(hydra_options.service, "mongodb") == 0)
+-#ifdef LIBMONGODB
++#if defined(LIBMONGODB2) || defined(LIBMONGODB)
+ {
+ i = 1;
+ if (hydra_options.miscptr == NULL || (strlen(hydra_options.miscptr) == 0))
reply other threads:[~2026-11-06 15:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179397876943.1.5393425428822851114.rpms-hydra-8fd427ac4c54@fedoraproject.org \
--to=remi@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox