[packages/gfs2-utils] - added types patch (fixes build on x32)

qboosh qboosh at pld-linux.org
Tue Sep 10 21:20:22 CEST 2024


commit 6e6b5ef155fc5f9082a3e9ff301ab0438485f552
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Sep 10 21:12:48 2024 +0200

    - added types patch (fixes build on x32)

 gfs2-utils-types.patch | 11 +++++++++++
 gfs2-utils.spec        |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/gfs2-utils.spec b/gfs2-utils.spec
index ccc7156..ff9b592 100644
--- a/gfs2-utils.spec
+++ b/gfs2-utils.spec
@@ -8,6 +8,7 @@ License:	LGPL v2.1+ (libraries), GPL v2+ (applications)
 Group:		Applications/System
 Source0:	https://releases.pagure.org/gfs2-utils/%{name}-%{version}.tar.xz
 # Source0-md5:	b96b0eed06546da2ee73c3f373135ebf
+Patch0:		%{name}-types.patch
 URL:		https://pagure.io/gfs2-utils
 BuildRequires:	autoconf >= 2.69
 BuildRequires:	automake >= 1:1.11
@@ -53,6 +54,7 @@ na wszystkich innych maszynach w klastrze.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %{__sed} -i -e 's, po/Makefile.in$,,' configure.ac
 %{__sed} -i -e '1s,/usr/bin/python,%{__python3},' gfs2/scripts/gfs2_lockcapture
diff --git a/gfs2-utils-types.patch b/gfs2-utils-types.patch
new file mode 100644
index 0000000..69e3f12
--- /dev/null
+++ b/gfs2-utils-types.patch
@@ -0,0 +1,11 @@
+--- gfs2-utils-3.5.1/gfs2/libgfs2/crc32c.c.orig	2023-04-11 18:28:23.000000000 +0200
++++ gfs2-utils-3.5.1/gfs2/libgfs2/crc32c.c	2024-09-10 20:53:03.241907871 +0200
+@@ -57,7 +57,7 @@ static uint32_t crc32c_intel_le_hw_byte(
+  * Steps through buffer one byte at at time, calculates reflected 
+  * crc using table.
+  */
+-static uint32_t crc32c_intel(uint32_t crc, unsigned char const *data, unsigned long length)
++static uint32_t crc32c_intel(uint32_t crc, unsigned char const *data, size_t length)
+ {
+ 	unsigned int iquotient = length / SCALE_F;
+ 	unsigned int iremainder = length % SCALE_F;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gfs2-utils.git/commitdiff/6e6b5ef155fc5f9082a3e9ff301ab0438485f552



More information about the pld-cvs-commit mailing list