]> git.pld-linux.org Git - packages/libstoragemgmt.git/commitdiff
- added types patch (fixes build on x32)
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 8 May 2022 18:30:31 +0000 (20:30 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 8 May 2022 18:30:31 +0000 (20:30 +0200)
libstoragemgmt-types.patch [new file with mode: 0644]
libstoragemgmt.spec

diff --git a/libstoragemgmt-types.patch b/libstoragemgmt-types.patch
new file mode 100644 (file)
index 0000000..6308e14
--- /dev/null
@@ -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;
+ }
index ae756e2ce2ebb17d6a3ccc121a24258c47fd542d..51996d3fae77c46129349fb892299ddd6ba6bd8b 100644 (file)
@@ -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@PY_VERSION@,%{__python3},' \
        tools/basic_check/local_check.py.in \
This page took 0.128839 seconds and 4 git commands to generate.