[packages/libstorj] Rel 5
arekm
arekm at pld-linux.org
Sun Mar 15 17:00:40 CET 2026
commit 4648c8d365fdf9f15e38f74a2405055a65f38dcf
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Mar 15 17:00:33 2026 +0100
Rel 5
libstorj-api-updates.patch | 81 ++++++++++++++++++++++++++++++++++++++++++++++
libstorj.spec | 4 ++-
2 files changed, 84 insertions(+), 1 deletion(-)
---
diff --git a/libstorj.spec b/libstorj.spec
index 42002e1..908fda4 100644
--- a/libstorj.spec
+++ b/libstorj.spec
@@ -6,12 +6,13 @@ Summary: Library and CLI for the Storj protocol
Summary(pl.UTF-8): Biblioteka i narzędzie linii poleceń do protokołu Storj
Name: libstorj
Version: 1.0.3
-Release: 4
+Release: 5
License: LGPL v2.1
Group: Libraries
#Source0Download: https://github.com/storj/libstorj/releases
Source0: https://github.com/storj/libstorj/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: e00b4938b375e935b19161ece3d10d56
+Patch0: libstorj-api-updates.patch
URL: https://github.com/storj/libstorj
BuildRequires: autoconf >= 2.50
BuildRequires: automake
@@ -69,6 +70,7 @@ Statyczna biblioteka Storj.
%prep
%setup -q
+%patch -P0 -p1
%build
%{__libtoolize}
diff --git a/libstorj-api-updates.patch b/libstorj-api-updates.patch
new file mode 100644
index 0000000..af616ae
--- /dev/null
+++ b/libstorj-api-updates.patch
@@ -0,0 +1,81 @@
+diff -urN libstorj-1.0.3.orig/src/crypto.c libstorj-1.0.3/src/crypto.c
+--- libstorj-1.0.3.orig/src/crypto.c 2018-05-10 20:45:47.000000000 +0200
++++ libstorj-1.0.3/src/crypto.c 2026-03-15 16:11:16.819850644 +0100
+@@ -217,11 +217,11 @@
+ }
+
+ void pbkdf2_hmac_sha512 (
+- unsigned key_length,
++ size_t key_length,
+ const uint8_t *key,
+ unsigned iterations,
+- unsigned salt_length, const uint8_t *salt,
+- unsigned length, uint8_t *dst)
++ size_t salt_length, const uint8_t *salt,
++ size_t length, uint8_t *dst)
+ {
+ struct hmac_sha512_ctx sha512ctx;
+
+diff -urN libstorj-1.0.3.orig/src/crypto.h libstorj-1.0.3/src/crypto.h
+--- libstorj-1.0.3.orig/src/crypto.h 2018-05-10 20:45:47.000000000 +0200
++++ libstorj-1.0.3/src/crypto.h 2026-03-15 16:11:11.635995987 +0100
+@@ -40,11 +40,11 @@
+ int double_ripemd160sha256_as_string(uint8_t *data, uint64_t data_size,
+ char **digest);
+
+-void pbkdf2_hmac_sha512(unsigned key_length,
++void pbkdf2_hmac_sha512(size_t key_length,
+ const uint8_t *key,
+ unsigned iterations,
+- unsigned salt_length, const uint8_t *salt,
+- unsigned length, uint8_t *dst);
++ size_t salt_length, const uint8_t *salt,
++ size_t length, uint8_t *dst);
+
+ /**
+ * @brief Generate a bucket's key
+diff -urN libstorj-1.0.3.orig/test/mockbridge.c libstorj-1.0.3/test/mockbridge.c
+--- libstorj-1.0.3.orig/test/mockbridge.c 2018-05-10 20:45:47.000000000 +0200
++++ libstorj-1.0.3/test/mockbridge.c 2026-03-15 16:12:59.517247616 +0100
+@@ -44,7 +44,7 @@
+ return 0;
+ }
+
+-int mock_bridge_server(void *cls,
++enum MHD_Result mock_bridge_server(void *cls,
+ struct MHD_Connection *connection,
+ const char *url,
+ const char *method,
+diff -urN libstorj-1.0.3.orig/test/mockfarmer.c libstorj-1.0.3/test/mockfarmer.c
+--- libstorj-1.0.3.orig/test/mockfarmer.c 2018-05-10 20:45:47.000000000 +0200
++++ libstorj-1.0.3/test/mockfarmer.c 2026-03-15 16:12:59.517500007 +0100
+@@ -84,7 +84,7 @@
+ *con_cls = NULL;
+ }
+
+-int mock_farmer_shard_server(void *cls,
++enum MHD_Result mock_farmer_shard_server(void *cls,
+ struct MHD_Connection *connection,
+ const char *url,
+ const char *method,
+diff -urN libstorj-1.0.3.orig/test/storjtests.h libstorj-1.0.3/test/storjtests.h
+--- libstorj-1.0.3.orig/test/storjtests.h 2018-05-10 20:45:47.000000000 +0200
++++ libstorj-1.0.3/test/storjtests.h 2026-03-15 16:12:59.517006516 +0100
+@@ -17,7 +17,7 @@
+ #define PASS "dce18e67025a8fd68cab186e196a9f8bcca6c9e4a7ad0be8a6f5e48f3abd1b04"
+ #define PASSHASH "83c2db176985cb39d2885b15dc3d2afc020bd886ffee10e954a5848429c03c6d"
+
+-int mock_bridge_server(void *cls,
++enum MHD_Result mock_bridge_server(void *cls,
+ struct MHD_Connection *connection,
+ const char *url,
+ const char *method,
+@@ -26,7 +26,7 @@
+ size_t *upload_data_size,
+ void **ptr);
+
+-int mock_farmer_shard_server(void *cls,
++enum MHD_Result mock_farmer_shard_server(void *cls,
+ struct MHD_Connection *connection,
+ const char *url,
+ const char *method,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libstorj.git/commitdiff/4648c8d365fdf9f15e38f74a2405055a65f38dcf
More information about the pld-cvs-commit
mailing list