public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Adam Williamson <awilliam@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/medusa] epel10: Fix build with GCC 15, disable afp support
Date: Wed, 14 Oct 2026 10:21:54 GMT	[thread overview]
Message-ID: <179197331449.1.7812512025823219210.rpms-medusa-759e073e32b4@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-10-14 10:21 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=179197331449.1.7812512025823219210.rpms-medusa-759e073e32b4@fedoraproject.org \
    --to=awilliam@redhat.com \
    --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