File shards-0.6.0-23.patch of Package shards

diff -Ndurp shards-0.6.0/src/shards_dist.erl shards-0.6.0-23/src/shards_dist.erl
--- shards-0.6.0/src/shards_dist.erl	2018-09-02 04:10:24.000000000 +0300
+++ shards-0.6.0-23/src/shards_dist.erl	2020-05-19 23:37:39.361803536 +0300
@@ -101,6 +101,13 @@
 %% Macro to check if the given Filename has the right type
 -define(is_filename(FN_), is_list(FN_); is_binary(FN_); is_atom(FN_)).
 
+-ifdef(OTP_RELEASE).
+-if(?OTP_RELEASE =:= 23).
+-compile({nowarn_deprecated_function,
+          [{pg2, create, 1}, {pg2, delete, 1}, {pg2, get_members, 1}, {pg2, join, 2}, {pg2, leave, 2}]}).
+-endif.
+-endif.
+
 %%%===================================================================
 %%% Extended API
 %%%===================================================================
diff -Ndurp shards-0.6.0/src/shards_owner_sup.erl shards-0.6.0-23/src/shards_owner_sup.erl
--- shards-0.6.0/src/shards_owner_sup.erl	2018-09-02 04:10:24.000000000 +0300
+++ shards-0.6.0-23/src/shards_owner_sup.erl	2020-05-19 23:37:50.338530941 +0300
@@ -29,6 +29,12 @@
 %% Macro to check if option is table type
 -define(is_ets_type(T_), T_ == set; T_ == ordered_set; T_ == bag; T_ == duplicate_bag).
 
+-ifdef(OTP_RELEASE).
+-if(?OTP_RELEASE =:= 23).
+-compile({nowarn_deprecated_function, [{pg2, create, 1}, {pg2, join, 2}]}).
+-endif.
+-endif.
+
 %%%===================================================================
 %%% API functions
 %%%===================================================================
diff -Ndurp shards-0.6.0/test/shards_dist_SUITE.erl shards-0.6.0-23/test/shards_dist_SUITE.erl
--- shards-0.6.0/test/shards_dist_SUITE.erl	2018-09-02 04:10:24.000000000 +0300
+++ shards-0.6.0-23/test/shards_dist_SUITE.erl	2020-05-19 23:37:32.817966047 +0300
@@ -45,6 +45,12 @@
   'f@127.0.0.1'
 ]).
 
+-ifdef(OTP_RELEASE).
+-if(?OTP_RELEASE =:= 23).
+-compile({nowarn_deprecated_function, {pg2, get_members, 1}}).
+-endif.
+-endif.
+
 %%%===================================================================
 %%% Common Test
 %%%===================================================================
openSUSE Build Service is sponsored by