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

qboosh qboosh at pld-linux.org
Sun May 8 20:30:35 CEST 2022


commit 920b3d1e6415a073e85a690f36d3103abe00428a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun May 8 20:30:31 2022 +0200

    - added types patch (fixes build on x32)

 libstoragemgmt-types.patch | 11 +++++++++++
 libstoragemgmt.spec        |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/libstoragemgmt.spec b/libstoragemgmt.spec
index ae756e2..51996d3 100644
--- a/libstoragemgmt.spec
+++ b/libstoragemgmt.spec
@@ -14,6 +14,7 @@ Group:		Libraries
 #Source0Download: https://github.com/libstorage/libstoragemgmt/releases
 Source0:	https://github.com/libstorage/libstoragemgmt/releases/download/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	8fa7d545905d0e9d872d6611ab9cd5ec
+Patch0:		%{name}-types.patch
 URL:		https://github.com/libstorage/libstoragemgmt
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -257,6 +258,7 @@ Ten pakiet zawiera wtyczkę do obsługi macierzy targetd.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %{__sed} -i -e '1s,/usr/bin/env python at PY_VERSION@,%{__python3},' \
 	tools/basic_check/local_check.py.in \
diff --git a/libstoragemgmt-types.patch b/libstoragemgmt-types.patch
new file mode 100644
index 0000000..6308e14
--- /dev/null
+++ b/libstoragemgmt-types.patch
@@ -0,0 +1,11 @@
+--- libstoragemgmt-1.9.4/plugin/simc/mgm_ops.c.orig	2022-03-15 23:38:45.000000000 +0100
++++ libstoragemgmt-1.9.4/plugin/simc/mgm_ops.c	2022-05-08 20:14:24.552756902 +0200
+@@ -107,7 +107,7 @@ static const char *time_stamp_str_get(ch
+ 
+     if (clock_gettime(CLOCK_REALTIME, &ts) == 0)
+         snprintf(buff, _BUFF_SIZE, "%ld.%ld", (long)difftime(ts.tv_sec, 0),
+-                 ts.tv_nsec);
++                 (long)ts.tv_nsec);
+ 
+     return buff;
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libstoragemgmt.git/commitdiff/920b3d1e6415a073e85a690f36d3103abe00428a



More information about the pld-cvs-commit mailing list