Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-erlang/idna/files/, dev-erlang/idna/
Date: Tue, 01 Jun 2021 09:36:04
Message-Id: 1622540132.3a7c112932469d726e68fe8f48b234ad7a95d35a.sam@gentoo
1 commit: 3a7c112932469d726e68fe8f48b234ad7a95d35a
2 Author: Florian Schmaus <flo <AT> geekplace <DOT> eu>
3 AuthorDate: Thu Apr 8 17:55:40 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 1 09:35:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a7c1129
7
8 dev-erlang/idna: fix "remove unicode_util_compat" patch
9
10 The existing patch was incomplete, unicode_util_compat had also to be
11 patched out of src/idna.app.src. Otherwise ejabberd would potentially
12 fail with
13
14 Apr 07 21:04:38 example.org ejabberdctl[606236]: 2021-04-07 21:04:38.066241+02:00 [critical] Failed to start ejabberd application: Exception occurred during configuration processing.
15 Apr 07 21:04:38 example.org ejabberdctl[606236]: ** exception error: nif_not_loaded
16 Apr 07 21:04:38 example.org ejabberdctl[606236]: in function erlang:nif_error/1
17 Apr 07 21:04:38 example.org ejabberdctl[606236]: called as erlang:nif_error(nif_not_loaded)
18 Apr 07 21:04:38 example.org ejabberdctl[606236]: in call from jid:string_to_usr/1 (src/jid.erl, line 121)
19 Apr 07 21:04:38 example.org ejabberdctl[606236]: in call from jid:decode/1 (src/jid.erl, line 136)
20 Apr 07 21:04:38 example.org ejabberdctl[606236]: in call from econf:'-domain/0-fun-0-'/1 (src/econf.erl, line 479)
21 Apr 07 21:04:38 example.org ejabberdctl[606236]: in call from yconf:'-list/2-fun-0-'/3 (src/yconf.erl, line 542)
22 Apr 07 21:04:38 example.org ejabberdctl[606236]: in call from lists:mapfoldl/3 (lists.erl, line 1358)
23 Apr 07 21:04:38 example.org ejabberdctl[606236]: in call from yconf:'-list/2-fun-1-'/3 (src/yconf.erl, line 538)
24 Apr 07 21:04:38 example.org ejabberdctl[606236]: in call from yconf:'-non_empty/1-fun-0-'/2 (src/yconf.erl, line 523)
25 Apr 07 21:04:38 example.org systemd[1]: ejabberd.service: Main process exited, code=exited, status=1/FAILURE
26
27 Bug: https://bugs.gentoo.org/766686
28 Signed-off-by: Florian Schmaus <flo <AT> geekplace.eu>
29 Signed-off-by: Sam James <sam <AT> gentoo.org>
30
31 ...Remove-dependency-on-unicode_util_compat.patch} | 55 ++++++++++++++++++++--
32 .../{idna-6.0.0.ebuild => idna-6.0.0-r1.ebuild} | 6 +--
33 2 files changed, 53 insertions(+), 8 deletions(-)
34
35 diff --git a/dev-erlang/idna/files/idna-remove-unicode_util_compat.diff b/dev-erlang/idna/files/0001-Remove-dependency-on-unicode_util_compat.patch
36 similarity index 67%
37 rename from dev-erlang/idna/files/idna-remove-unicode_util_compat.diff
38 rename to dev-erlang/idna/files/0001-Remove-dependency-on-unicode_util_compat.patch
39 index d369cefbf2a..0737b184236 100644
40 --- a/dev-erlang/idna/files/idna-remove-unicode_util_compat.diff
41 +++ b/dev-erlang/idna/files/0001-Remove-dependency-on-unicode_util_compat.patch
42 @@ -1,5 +1,34 @@
43 +From 9c91cd33265f4706e5e614349b879c059ffaeaf9 Mon Sep 17 00:00:00 2001
44 +From: Florian Schmaus <flo@×××××××××.eu>
45 +Date: Thu, 8 Apr 2021 19:43:43 +0200
46 +Subject: [PATCH] Remove dependency on unicode_util_compat
47 +MIME-Version: 1.0
48 +Content-Type: text/plain; charset=UTF-8
49 +Content-Transfer-Encoding: 8bit
50 +
51 +Newer erlang versions, and this includes all dev-lang/erlang version
52 +currently in ::gentoo, do not require unicode_util_compat.
53 +
54 +This is based on
55 +https://github.com/benoitc/erlang-idna/pull/31/. Holger Weiß suggested
56 +to additionaly patch unicode_util_compat out of
57 +src/idna.app.src. Thanks Holger. :)
58 +
59 +Signed-off-by: Florian Schmaus <flo@×××××××××.eu>
60 +Suggested-by: Holger Weiß <holger@×××××××××××××××.de>
61 +---
62 + rebar.config | 2 +-
63 + rebar.config.script | 11 -----------
64 + rebar.lock | 6 ------
65 + src/idna.app.src | 2 +-
66 + src/idna.erl | 10 +++++-----
67 + src/idna_context.erl | 4 ++--
68 + 6 files changed, 9 insertions(+), 26 deletions(-)
69 + delete mode 100644 rebar.config.script
70 + delete mode 100644 rebar.lock
71 +
72 diff --git a/rebar.config b/rebar.config
73 -index 84fd954..cd02013 100644
74 +index 84fd954aea01..cd0201386367 100644
75 --- a/rebar.config
76 +++ b/rebar.config
77 @@ -1,3 +1,3 @@
78 @@ -9,7 +38,7 @@ index 84fd954..cd02013 100644
79 +{deps, []}.
80 diff --git a/rebar.config.script b/rebar.config.script
81 deleted file mode 100644
82 -index d2bce94..0000000
83 +index d2bce945b8b2..000000000000
84 --- a/rebar.config.script
85 +++ /dev/null
86 @@ -1,11 +0,0 @@
87 @@ -26,7 +55,7 @@ index d2bce94..0000000
88 -end.
89 diff --git a/rebar.lock b/rebar.lock
90 deleted file mode 100644
91 -index 15fc8a1..0000000
92 +index 15fc8a117070..000000000000
93 --- a/rebar.lock
94 +++ /dev/null
95 @@ -1,6 +0,0 @@
96 @@ -36,8 +65,21 @@ index 15fc8a1..0000000
97 -{pkg_hash,[
98 - {<<"unicode_util_compat">>, <<"D869E4C68901DD9531385BB0C8C40444EBF624E60B6962D95952775CAC5E90CD">>}]}
99 -].
100 +diff --git a/src/idna.app.src b/src/idna.app.src
101 +index a6a75374351b..d6475067c2ad 100644
102 +--- a/src/idna.app.src
103 ++++ b/src/idna.app.src
104 +@@ -3,7 +3,7 @@
105 + {vsn, "6.0.0"},
106 + {modules, []},
107 + {registered, []},
108 +- {applications, [kernel, stdlib, unicode_util_compat]},
109 ++ {applications, [kernel, stdlib]},
110 +
111 + {maintainers, ["Benoit Chesneau"]},
112 + {licenses, ["BSD"]},
113 diff --git a/src/idna.erl b/src/idna.erl
114 -index 5f010b3..32b1745 100644
115 +index 3436dd995477..24d96b810ceb 100644
116 --- a/src/idna.erl
117 +++ b/src/idna.erl
118 @@ -333,7 +333,7 @@ lowercase_list([], true) ->
119 @@ -80,7 +122,7 @@ index 5f010b3..32b1745 100644
120 [CP|Str] -> [CP|characters_to_nfc_list(Str)];
121 [] -> []
122 diff --git a/src/idna_context.erl b/src/idna_context.erl
123 -index afcb814..a09ff1f 100644
124 +index afcb814956e3..a09ff1f92992 100644
125 --- a/src/idna_context.erl
126 +++ b/src/idna_context.erl
127 @@ -28,7 +28,7 @@ valid_contextj(Label, Pos) ->
128 @@ -101,3 +143,6 @@ index afcb814..a09ff1f 100644
129 #{ ccc := ?virama_combining_class } -> true;
130 _ -> false
131 end;
132 +--
133 +2.30.2
134 +
135
136 diff --git a/dev-erlang/idna/idna-6.0.0.ebuild b/dev-erlang/idna/idna-6.0.0-r1.ebuild
137 similarity index 73%
138 rename from dev-erlang/idna/idna-6.0.0.ebuild
139 rename to dev-erlang/idna/idna-6.0.0-r1.ebuild
140 index 597fc28fad4..853b273e7c8 100644
141 --- a/dev-erlang/idna/idna-6.0.0.ebuild
142 +++ b/dev-erlang/idna/idna-6.0.0-r1.ebuild
143 @@ -1,4 +1,4 @@
144 -# Copyright 1999-2020 Gentoo Authors
145 +# Copyright 1999-2021 Gentoo Authors
146 # Distributed under the terms of the GNU General Public License v2
147
148 EAPI=6
149 @@ -21,5 +21,5 @@ DOCS=( CHANGELOG README.md )
150 S="${WORKDIR}/erlang-idna-${PV}"
151
152 # Removes dependency to workaround for older erlang versions.
153 -# Patch from https://github.com/benoitc/erlang-idna/pull/31
154 -PATCHES=( "${FILESDIR}/idna-remove-unicode_util_compat.diff" )
155 +# Patch based on https://github.com/benoitc/erlang-idna/pull/31
156 +PATCHES=( "${FILESDIR}/0001-Remove-dependency-on-unicode_util_compat.patch" )