public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/erlang-riak_client] rawhide: Fix FTBFS with Erlang 27
@ 2026-08-07 12:30 Peter Lemenkov
  0 siblings, 0 replies; only message in thread
From: Peter Lemenkov @ 2026-08-07 12:30 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/erlang-riak_client
            Branch : rawhide
            Commit : d1073edb3e287c5f8eb386bcd1b67e85b285bcf8
            Author : Peter Lemenkov <lemenkov@gmail.com>
            Date   : 2026-08-07T14:23:34+02:00
            Stats  : +40/-1 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/erlang-riak_client/c/d1073edb3e287c5f8eb386bcd1b67e85b285bcf8?branch=rawhide

            Log:
            Fix FTBFS with Erlang 27

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

---
diff --git a/erlang-riak_client-0001-Allow-more-Erlang-versions.patch b/erlang-riak_client-0001-Allow-more-Erlang-versions.patch
index d566df6..27071e9 100644
--- a/erlang-riak_client-0001-Allow-more-Erlang-versions.patch
+++ b/erlang-riak_client-0001-Allow-more-Erlang-versions.patch
@@ -1,3 +1,4 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
 From: Peter Lemenkov <lemenkov@gmail.com>
 Date: Thu, 6 Sep 2018 14:17:52 +0300
 Subject: [PATCH] Allow more Erlang versions

diff --git a/erlang-riak_client-0002-Add-deprecation-for-Erlang-20-as-well.patch b/erlang-riak_client-0002-Add-deprecation-for-Erlang-20-as-well.patch
index 076ea15..9d47dff 100644
--- a/erlang-riak_client-0002-Add-deprecation-for-Erlang-20-as-well.patch
+++ b/erlang-riak_client-0002-Add-deprecation-for-Erlang-20-as-well.patch
@@ -1,3 +1,4 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
 From: Peter Lemenkov <lemenkov@gmail.com>
 Date: Thu, 6 Sep 2018 14:42:05 +0300
 Subject: [PATCH] Add deprecation for Erlang 20+ as well

diff --git a/erlang-riak_client-0003-Fix-edoc-generation.patch b/erlang-riak_client-0003-Fix-edoc-generation.patch
index 6799c01..a0c1c5b 100644
--- a/erlang-riak_client-0003-Fix-edoc-generation.patch
+++ b/erlang-riak_client-0003-Fix-edoc-generation.patch
@@ -1,3 +1,4 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
 From: Peter Lemenkov <lemenkov@gmail.com>
 Date: Fri, 13 Feb 2026 10:36:14 +0100
 Subject: [PATCH] Fix edoc generation

diff --git a/erlang-riak_client-0004-Do-not-use-wors-reserved-in-OTP-27.patch b/erlang-riak_client-0004-Do-not-use-wors-reserved-in-OTP-27.patch
new file mode 100644
index 0000000..4dd0e29
--- /dev/null
+++ b/erlang-riak_client-0004-Do-not-use-wors-reserved-in-OTP-27.patch
@@ -0,0 +1,35 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Peter Lemenkov <lemenkov@gmail.com>
+Date: Fri, 7 Aug 2026 14:19:53 +0200
+Subject: [PATCH] Do not use wors reserved in OTP 27
+
+Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
+
+diff --git a/src/riakc_datatype.erl b/src/riakc_datatype.erl
+index 6223f55..cf6be99 100644
+--- a/src/riakc_datatype.erl
++++ b/src/riakc_datatype.erl
+@@ -45,11 +45,11 @@
+ 
+ -export_type([datatype/0, update/1, context/0]).
+ 
+--type maybe(T) :: T | undefined.
++-type optional(T) :: T | undefined.
+ -type datatype() :: term().
+ -type typename() :: atom().
+--type context() :: maybe(binary()).
+--type update(T) :: maybe({typename(), T, context()}).
++-type context() :: optional(binary()).
++-type update(T) :: optional({typename(), T, context()}).
+ 
+ %% Constructs a new, empty container for the type. Use this when
+ %% creating a new key.
+@@ -95,7 +95,7 @@ module_for_type(map)      -> riakc_map.
+ 
+ %% @doc Returns the appropriate container module for the given term,
+ %% if possible.
+--spec module_for_term(datatype()) -> maybe(module()).
++-spec module_for_term(datatype()) -> optional(module()).
+ module_for_term(T) ->
+     lists:foldl(fun(Mod, undefined) ->
+                         case Mod:is_type(T) of

diff --git a/erlang-riak_client.spec b/erlang-riak_client.spec
index 0dae198..705de9d 100644
--- a/erlang-riak_client.spec
+++ b/erlang-riak_client.spec
@@ -8,10 +8,11 @@ Summary:	Erlang client for Riak
 License:	Apache-2.0
 URL:		https://github.com/basho/riak-erlang-client
 VCS:		git:%{url}.git
-Source0:	%{url}/archive/%{version}/riak_client-%{version}.tar.gz
+Source:		%{url}/archive/%{version}/riak_client-%{version}.tar.gz
 Patch:		erlang-riak_client-0001-Allow-more-Erlang-versions.patch
 Patch:		erlang-riak_client-0002-Add-deprecation-for-Erlang-20-as-well.patch
 Patch:		erlang-riak_client-0003-Fix-edoc-generation.patch
+Patch:		erlang-riak_client-0004-Do-not-use-wors-reserved-in-OTP-27.patch
 BuildRequires:	erlang-rebar3
 BuildRequires:	erlang-riak_pb
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-07 12:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 12:30 [rpms/erlang-riak_client] rawhide: Fix FTBFS with Erlang 27 Peter Lemenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox