public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/medusa] epel10: Fix build with GCC 15, disable afp support
@ 2026-10-14 10:21 Adam Williamson
0 siblings, 0 replies; only message in thread
From: Adam Williamson @ 2026-10-14 10:21 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/medusa
Branch : epel10
Commit : 759e073e32b4bfc6e4c4e1a383973336c1f16279
Author : Adam Williamson <awilliam@redhat.com>
Date : 2025-01-30T14:28:28-08:00
Stats : +58/-4 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/medusa/c/759e073e32b4bfc6e4c4e1a383973336c1f16279?branch=epel10
Log:
Fix build with GCC 15, disable afp support
---
diff --git a/0001-Fix-build-with-GCC-15-by-simplifying-libssh-callback.patch b/0001-Fix-build-with-GCC-15-by-simplifying-libssh-callback.patch
new file mode 100644
index 0000000..4c16323
--- /dev/null
+++ b/0001-Fix-build-with-GCC-15-by-simplifying-libssh-callback.patch
@@ -0,0 +1,49 @@
+From 136178c645e58e3266f1c86f7e3ac6bb9b54b3c3 Mon Sep 17 00:00:00 2001
+From: Adam Williamson <awilliam@redhat.com>
+Date: Thu, 30 Jan 2025 14:20:07 -0800
+Subject: [PATCH] Fix build with GCC 15 by simplifying libssh callback handling
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The current code failed to build with GCC 15 in Fedora's mass
+rebuild with "error: assignment to ‘void (*)(void)’ from
+incompatible pointer type". I'm not a C coder, I just play one
+on TV, but looking at other projects that use
+libssh2_userauth_keyboard_interactive , it seems like we don't
+need to declare a variable like this at all, we can just pass a
+pointer to the callback function directly, which should avoid
+the problem.
+
+Signed-off-by: Adam Williamson <awilliam@redhat.com>
+---
+ src/modsrc/ssh.c | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/src/modsrc/ssh.c b/src/modsrc/ssh.c
+index 313a00d..23b5f35 100644
+--- a/src/modsrc/ssh.c
++++ b/src/modsrc/ssh.c
+@@ -436,10 +436,8 @@ int tryLogin(_SSH2_DATA* _psSessionData, LIBSSH2_SESSION *session, sLogin** psLo
+ {
+ char *pErrorMsg = NULL;
+ int iErrorMsg, iAuthMode, iRet;
+- void (*pResponseCallback) ();
+ char *strtok_ptr = NULL;
+ char *pAuth = NULL;
+- pResponseCallback = response_callback;
+
+ /*
+ Password authentication failure delay: 2
+@@ -492,7 +490,7 @@ int tryLogin(_SSH2_DATA* _psSessionData, LIBSSH2_SESSION *session, sLogin** psLo
+ switch (iAuthMode)
+ {
+ case SSH_AUTH_KBDINT:
+- if (libssh2_userauth_keyboard_interactive(session, szLogin, pResponseCallback) )
++ if (libssh2_userauth_keyboard_interactive(session, szLogin, &response_callback) )
+ {
+ writeError(ERR_DEBUG_MODULE, "Keyboard-Interactive authentication failed: Host: %s User: %s Pass: %s", (*psLogin)->psServer->pHostIP, szLogin, szPassword);
+ (*psLogin)->iResult = LOGIN_RESULT_FAIL;
+--
+2.47.1
+
diff --git a/medusa.spec b/medusa.spec
index cc0bb85..eedc173 100644
--- a/medusa.spec
+++ b/medusa.spec
@@ -12,7 +12,11 @@ URL: http://www.foofus.net/jmk/medusa/medusa.html
Source0: https://github.com/jmk-foofus/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
-BuildRequires: afpfs-ng-devel
+# https://github.com/jmk-foofus/medusa/pull/72
+# https://bugzilla.redhat.com/show_bug.cgi?id=2340838
+# Fix build with GCC 15
+Patch: 0001-Fix-build-with-GCC-15-by-simplifying-libssh-callback.patch
+
BuildRequires: apr-devel
BuildRequires: autoconf
BuildRequires: automake
@@ -47,7 +51,7 @@ services. Some of the key features of Medusa are:
%build
autoreconf -vif
%configure \
- --enable-module-afp=yes \
+ --enable-module-afp=no \
--with-default-mod-path=%{_libdir}/medusa/modules
%make_build
@@ -62,8 +66,9 @@ autoreconf -vif
%{_libdir}/%{name}
%changelog
-* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-4.20240130git4e9be7e
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
+* Thu Jan 30 2025 Adam Williamson <awilliam@redhat.com> - 2.3-4.20240130git4e9be7e
+- Backport PR #72 to fix build with GCC 15
+- Disable afpfs support as afpfs-ng has been retired
* Mon Jul 29 2024 Miroslav Suchý <msuchy@redhat.com> - 2.3-3.20240130git4e9be7e
- convert license to SPDX
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-14 10:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-14 10:21 [rpms/medusa] epel10: Fix build with GCC 15, disable afp support Adam Williamson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox