[packages/dchub] correct type usage to fix build with gcc 14

atler atler at pld-linux.org
Mon Jul 28 21:29:02 CEST 2025


commit 22caf7ca3232549d6a6b5dd5f21ac31f268274fc
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Jul 28 21:28:30 2025 +0200

    correct type usage to fix build with gcc 14

 dchub.spec  |  2 ++
 types.patch | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/dchub.spec b/dchub.spec
index 8932d7b..c7022b3 100644
--- a/dchub.spec
+++ b/dchub.spec
@@ -15,6 +15,7 @@ Patch4:		am.patch
 Patch5:		format-security.patch
 Patch6:		trampoline.patch
 Patch7:		missing-extern.patch
+Patch8:		types.patch
 URL:		http://ac2i.homelinux.com/dctc/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -50,6 +51,7 @@ dchub jest hubem sieci direct connect służącej do wymiany plików.
 %patch -P5 -p1
 %patch -P6 -p1
 %patch -P7 -p1
+%patch -P8 -p1
 
 %build
 %{__aclocal}
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..93154eb
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,11 @@
+--- dchub-0.5.2/src/he3.c.orig	2003-06-22 08:55:08.000000000 +0200
++++ dchub-0.5.2/src/he3.c	2025-07-28 21:25:11.227344560 +0200
+@@ -622,7 +622,7 @@
+ int main(int argc,char **argv) {
+ 	unsigned char* in;
+ 	GString *out;
+-	int filesize;
++	size_t filesize;
+ 	FILE* foutput=NULL;
+ 	
+ 	progname = base_name (argv[0]);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dchub.git/commitdiff/22caf7ca3232549d6a6b5dd5f21ac31f268274fc



More information about the pld-cvs-commit mailing list