commit:     b4bb0742c7f93f6cf4bfe3ef97bcf6dabccd7dc6
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Tue Apr 22 21:58:12 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 24 18:11:23 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4bb0742

net-fs/wdfs: fix build with gcc 15

Closes: https://bugs.gentoo.org/943933
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/41706
Closes: https://github.com/gentoo/gentoo/pull/41706
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-fs/wdfs/files/wdfs-1.4.2-gcc15.patch | 40 ++++++++++++++++++++++++++++++++
 net-fs/wdfs/wdfs-1.4.2-r4.ebuild         | 24 +++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/net-fs/wdfs/files/wdfs-1.4.2-gcc15.patch 
b/net-fs/wdfs/files/wdfs-1.4.2-gcc15.patch
new file mode 100644
index 000000000000..54ff51fb0f67
--- /dev/null
+++ b/net-fs/wdfs/files/wdfs-1.4.2-gcc15.patch
@@ -0,0 +1,40 @@
+https://bugs.gentoo.org/943933
+
+--- a/src/wdfs-main.c
++++ b/src/wdfs-main.c
+@@ -1227,7 +1227,7 @@ static int wdfs_statfs(const char *localpath, struct 
statvfs *buf)
+ 
+ /* author jens, 04.08.2005 17:41:12, location: goettingen
+  * this method is called, when the filesystems is unmounted. time to clean 
up! */
+-static void wdfs_destroy()
++static void wdfs_destroy(void* a)
+ {
+       if (wdfs.debug == true)
+               fprintf(stderr, ">> freeing globaly used memory\n");
+--- a/src/wdfs-main.h
++++ b/src/wdfs-main.h
+@@ -29,10 +29,8 @@
+       esac
+ */
+ 
+-typedef enum {
+-      true    = 1,
+-      false   = 0
+-} bool_t;
++#include <stdbool.h>
++typedef bool bool_t;
+ 
+ /* used as mode for unify_path() */
+ enum {
+--- a/src/webdav.h
++++ b/src/webdav.h
+@@ -3,7 +3,8 @@
+ 
+ extern ne_session *session;
+ 
+-int setup_webdav_session();
++int setup_webdav_session(
++      const char *uri_string, const char *username, const char *password);
+ 
+ int lockfile(const char *remotepath, const int timeout);
+ int unlockfile(const char *remotepath);

diff --git a/net-fs/wdfs/wdfs-1.4.2-r4.ebuild b/net-fs/wdfs/wdfs-1.4.2-r4.ebuild
new file mode 100644
index 000000000000..7f3fe6b95d6b
--- /dev/null
+++ b/net-fs/wdfs/wdfs-1.4.2-r4.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="WebDAV filesystem with special features for accessing subversion 
repositories"
+HOMEPAGE="http://noedler.de/projekte/wdfs/";
+SRC_URI="http://noedler.de/projekte/${PN}/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+RDEPEND="
+       dev-libs/glib:2
+       >=net-libs/neon-0.24.7:=
+       >=sys-fs/fuse-2.5:0
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/${P}-fix-Waddress.patch"
+       "${FILESDIR}/${P}-gcc15.patch"
+)

Reply via email to