[packages/perl-File-RsyncP] use standard uint64_t type on 32-bit archs

atler atler at pld-linux.org
Thu Jul 31 20:20:36 CEST 2025


commit 7359c0acb4495a5b6bf84c0572722fc65640e4cd
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Jul 31 20:19:42 2025 +0200

    use standard uint64_t type on 32-bit archs

 perl-File-RsyncP.spec |  2 ++
 types.patch           | 19 +++++++++++++++++++
 2 files changed, 21 insertions(+)
---
diff --git a/perl-File-RsyncP.spec b/perl-File-RsyncP.spec
index 47caec0..9ac9217 100644
--- a/perl-File-RsyncP.spec
+++ b/perl-File-RsyncP.spec
@@ -13,6 +13,7 @@ License:	GPL v2+
 Group:		Development/Languages/Perl
 Source0:	http://search.cpan.org/CPAN/authors/id/C/CB/CBARRATT/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	f244372d15a2991b8700f62e73ac51e4
+Patch0:		types.patch
 URL:		http://search.cpan.org/dist/File-RsyncP/
 BuildRequires:	perl-Encode
 BuildRequires:	perl-devel >= 1:5.8.0
@@ -52,6 +53,7 @@ i rsyncd.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -P0 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..3e8823a
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,19 @@
+--- File-RsyncP-0.70/FileList/rsync.h.orig	2010-07-25 22:50:02.000000000 +0200
++++ File-RsyncP-0.70/FileList/rsync.h	2025-07-31 20:14:07.340033113 +0200
+@@ -147,6 +147,7 @@
+ #endif
+ #include <stdio.h>
+ #include <stddef.h>
++#include <stdint.h>
+ 
+ #ifdef HAVE_SYS_PARAM_H
+ #include <sys/param.h>
+@@ -328,7 +329,7 @@
+ #define uint64 unsigned long long
+ #else
+ /* As long as it gets... */
+-#define uint64 unsigned off_t
++#define uint64 uint64_t
+ #endif
+ 
+ /* Starting from protocol version 26, we always use 64-bit
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-File-RsyncP.git/commitdiff/7359c0acb4495a5b6bf84c0572722fc65640e4cd



More information about the pld-cvs-commit mailing list