Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-erlang/fast_xml/files/, dev-erlang/fast_xml/
Date: Wed, 28 Mar 2018 19:01:25
Message-Id: 1522263668.4f4da0c56e94e61ea42c79d8a418ccd39099eea6.pacho@gentoo
1 commit: 4f4da0c56e94e61ea42c79d8a418ccd39099eea6
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 28 18:53:53 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 28 19:01:08 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f4da0c5
7
8 dev-erlang/fast_xml: Drop old, to allow removal of vulnerable erlang
9
10 Package-Manager: Portage-2.3.26, Repoman-2.3.7
11
12 dev-erlang/fast_xml/Manifest | 4 -
13 dev-erlang/fast_xml/fast_xml-1.1.14.ebuild | 24 ------
14 dev-erlang/fast_xml/fast_xml-1.1.15.ebuild | 24 ------
15 dev-erlang/fast_xml/fast_xml-1.1.18.ebuild | 26 ------
16 dev-erlang/fast_xml/fast_xml-1.1.3.ebuild | 25 ------
17 .../fast_xml/files/1.1.18-0001-Fix-unittests.patch | 92 ----------------------
18 6 files changed, 195 deletions(-)
19
20 diff --git a/dev-erlang/fast_xml/Manifest b/dev-erlang/fast_xml/Manifest
21 index 90308ea73b6..c0eae9502ea 100644
22 --- a/dev-erlang/fast_xml/Manifest
23 +++ b/dev-erlang/fast_xml/Manifest
24 @@ -1,5 +1 @@
25 -DIST fast_xml-1.1.14.tar.gz 86918 BLAKE2B d95616c8908b66a93b2df01f333b9d9f7ded67bbf462c58b464eddbf9fea164bc1f65a95b69f2cd9512d206e93d2341f773208efb70c9336e798f4eb5d549ae6 SHA512 3475d5cc5ab670cade221b5ffb610d2dbc52d9699e8d32d17eb3b13da1a486d8351776a50284cdd37ee9d4b6606221c60928f836669a325cb1692290a88d5d1e
26 -DIST fast_xml-1.1.15.tar.gz 86948 BLAKE2B 6bd4ac68fd93346d775efe58184cb8c976c27ce994f58ace0855b18f3d68e5211a69a53ef2ef6c0dee0f1609b9a14eb7b38baa0722b1e56962d282a1ba3a393e SHA512 3792ec8aca5ee8c40f53a356badcc9685ed071903500b0405a4d8b3620605eba1b8d1351efb5115497e022811dfca3382522318decc6207df1e4d81db3d0c94a
27 -DIST fast_xml-1.1.18.tar.gz 89244 BLAKE2B 834ae5125e72d909b6a8c4784d9a2a5a4f3664996c200b5e55e0c1c2a272a54a278a952ac542c1eed481c0785f64d6bb855f590223fc0ac7bc8dfb1e8a610bf6 SHA512 5f6867e2f56d8e3d68337d477f215ac52fe01b3f31792605dcca31f3d8dc8b590d5d24798cf245f7af3cb5dc903530e5950d5ea4d8e0d650c091b7d87cf32e0c
28 DIST fast_xml-1.1.22.tar.gz 92408 BLAKE2B efd6c69c4dcfe3c36162c0b47ee8b56561102fde130f8be503c767e40d66c0f698876ed384bd27aea41e18f6530bf712eeeca2ea497c4b1aafc630fe1b016981 SHA512 33c79cf34d6b0093cf98d11c5b68855d4201a6891786cc3caabd7dded81a04118638ce091cda1f1c86729ea8c8765214332cc34a361bbfb3c5958dbc2027a384
29 -DIST fast_xml-1.1.3.tar.gz 84926 BLAKE2B 4aa86452f6c66040920618d728a93430312faee06584199d4f33c4af4dc00b40e398b43b0216fe1ac4bb4673c9c7e71f4483867aec0509598250b042255f5d51 SHA512 644934d6538ddf2b49863883a66255966b47f933594aff10325dca7785802d28d3223f79941fb4cfa33776e5a1a5fa74fe84422b7077241fb33fff1c52bd044a
30
31 diff --git a/dev-erlang/fast_xml/fast_xml-1.1.14.ebuild b/dev-erlang/fast_xml/fast_xml-1.1.14.ebuild
32 deleted file mode 100644
33 index 75a9c8e2828..00000000000
34 --- a/dev-erlang/fast_xml/fast_xml-1.1.14.ebuild
35 +++ /dev/null
36 @@ -1,24 +0,0 @@
37 -# Copyright 1999-2016 Gentoo Foundation
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=6
41 -
42 -inherit rebar
43 -
44 -DESCRIPTION="Fast Expat based Erlang XML parsing library"
45 -HOMEPAGE="https://github.com/processone/fast_xml"
46 -SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
47 - -> ${P}.tar.gz"
48 -
49 -LICENSE="Apache-2.0"
50 -SLOT="0"
51 -KEYWORDS="amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
52 -IUSE="test"
53 -
54 -RDEPEND=">=dev-erlang/p1_utils-1.0.4
55 - >=dev-lang/erlang-17.1
56 - dev-libs/expat"
57 -DEPEND="${RDEPEND}
58 - test? ( >=dev-lang/elixir-1.1 )"
59 -
60 -DOCS=( CHANGELOG.md README.md )
61
62 diff --git a/dev-erlang/fast_xml/fast_xml-1.1.15.ebuild b/dev-erlang/fast_xml/fast_xml-1.1.15.ebuild
63 deleted file mode 100644
64 index b37d24b8cec..00000000000
65 --- a/dev-erlang/fast_xml/fast_xml-1.1.15.ebuild
66 +++ /dev/null
67 @@ -1,24 +0,0 @@
68 -# Copyright 1999-2017 Gentoo Foundation
69 -# Distributed under the terms of the GNU General Public License v2
70 -
71 -EAPI=6
72 -
73 -inherit rebar
74 -
75 -DESCRIPTION="Fast Expat based Erlang XML parsing library"
76 -HOMEPAGE="https://github.com/processone/fast_xml"
77 -SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
78 - -> ${P}.tar.gz"
79 -
80 -LICENSE="Apache-2.0"
81 -SLOT="0"
82 -KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
83 -IUSE="test"
84 -
85 -RDEPEND=">=dev-erlang/p1_utils-1.0.5
86 - >=dev-lang/erlang-17.1
87 - dev-libs/expat"
88 -DEPEND="${RDEPEND}
89 - test? ( >=dev-lang/elixir-1.1 )"
90 -
91 -DOCS=( CHANGELOG.md README.md )
92
93 diff --git a/dev-erlang/fast_xml/fast_xml-1.1.18.ebuild b/dev-erlang/fast_xml/fast_xml-1.1.18.ebuild
94 deleted file mode 100644
95 index 4fb74ffd263..00000000000
96 --- a/dev-erlang/fast_xml/fast_xml-1.1.18.ebuild
97 +++ /dev/null
98 @@ -1,26 +0,0 @@
99 -# Copyright 1999-2017 Gentoo Foundation
100 -# Distributed under the terms of the GNU General Public License v2
101 -
102 -EAPI=6
103 -
104 -inherit rebar
105 -
106 -DESCRIPTION="Fast Expat based Erlang XML parsing library"
107 -HOMEPAGE="https://github.com/processone/fast_xml"
108 -SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
109 - -> ${P}.tar.gz"
110 -
111 -LICENSE="Apache-2.0"
112 -SLOT="0"
113 -KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
114 -IUSE="test"
115 -
116 -RDEPEND=">=dev-erlang/p1_utils-1.0.6
117 - >=dev-lang/erlang-17.1
118 - dev-libs/expat"
119 -DEPEND="${RDEPEND}
120 - test? ( >=dev-lang/elixir-1.1 )"
121 -
122 -DOCS=( CHANGELOG.md README.md )
123 -
124 -PATCHES=( "${FILESDIR}"/${PV}-0001-Fix-unittests.patch )
125
126 diff --git a/dev-erlang/fast_xml/fast_xml-1.1.3.ebuild b/dev-erlang/fast_xml/fast_xml-1.1.3.ebuild
127 deleted file mode 100644
128 index 4c98982c6ed..00000000000
129 --- a/dev-erlang/fast_xml/fast_xml-1.1.3.ebuild
130 +++ /dev/null
131 @@ -1,25 +0,0 @@
132 -# Copyright 1999-2016 Gentoo Foundation
133 -# Distributed under the terms of the GNU General Public License v2
134 -
135 -EAPI=6
136 -
137 -inherit rebar
138 -
139 -DESCRIPTION="Fast Expat based Erlang XML parsing library"
140 -HOMEPAGE="https://github.com/processone/fast_xml"
141 -SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
142 - -> ${P}.tar.gz"
143 -
144 -LICENSE="Apache-2.0"
145 -SLOT="0"
146 -KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
147 -IUSE="test"
148 -
149 -RDEPEND=">=dev-erlang/p1_utils-1.0.0
150 - >=dev-lang/erlang-17.1
151 - <dev-lang/erlang-19
152 - dev-libs/expat"
153 -DEPEND="${RDEPEND}
154 - test? ( >=dev-lang/elixir-1.1 )"
155 -
156 -DOCS=( CHANGELOG.md README.md )
157
158 diff --git a/dev-erlang/fast_xml/files/1.1.18-0001-Fix-unittests.patch b/dev-erlang/fast_xml/files/1.1.18-0001-Fix-unittests.patch
159 deleted file mode 100644
160 index c5113bde70d..00000000000
161 --- a/dev-erlang/fast_xml/files/1.1.18-0001-Fix-unittests.patch
162 +++ /dev/null
163 @@ -1,92 +0,0 @@
164 -From 4b65d1603c9b16cf440e0b434673de9d7bdca6b5 Mon Sep 17 00:00:00 2001
165 -From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= <pchmielowski@×××××××××××.net>
166 -Date: Mon, 2 Jan 2017 10:58:33 +0100
167 -Subject: [PATCH] Load locally build .so file when performing tests
168 -
169 -This should help with issue #19 and #20
170 ----
171 - src/fxml.erl | 5 ++++-
172 - src/fxml_stream.erl | 11 +++++++----
173 - test/fxml_test.erl | 6 ++----
174 - 3 files changed, 13 insertions(+), 9 deletions(-)
175 -
176 -diff --git a/src/fxml.erl b/src/fxml.erl
177 -index 935bf28..ed6e535 100644
178 ---- a/src/fxml.erl
179 -+++ b/src/fxml.erl
180 -@@ -36,7 +36,7 @@
181 - append_subtags/2, get_path_s/2,
182 - replace_tag_attr/3, replace_subtag/2, to_xmlel/1]).
183 -
184 ---export([load_nif/0]).
185 -+-export([load_nif/0, load_nif/1]).
186 -
187 - -include("fxml.hrl").
188 - -export_type([xmlel/0]).
189 -@@ -44,6 +44,9 @@
190 - %% Replace element_to_binary/1 with NIF
191 - load_nif() ->
192 - SOPath = p1_nif_utils:get_so_path(?MODULE, [fast_xml], "fxml"),
193 -+ load_nif(SOPath).
194 -+
195 -+load_nif(SOPath) ->
196 - case catch erlang:load_nif(SOPath, 0) of
197 - ok -> ok;
198 - Err -> error_logger:warning_msg("unable to load fxml NIF: ~p~n", [Err]),
199 -diff --git a/src/fxml_stream.erl b/src/fxml_stream.erl
200 -index a2fcb01..ee1a949 100644
201 ---- a/src/fxml_stream.erl
202 -+++ b/src/fxml_stream.erl
203 -@@ -30,7 +30,7 @@
204 - -export([new/1, new/2, new/3, parse/2, close/1, reset/1,
205 - change_callback_pid/2, parse_element/1]).
206 -
207 ---export([load_nif/0]).
208 -+-export([load_nif/0, load_nif/1]).
209 -
210 - -include("fxml.hrl").
211 -
212 -@@ -54,13 +54,16 @@
213 - -export_type([xml_stream_state/0, xml_stream_el/0]).
214 -
215 - load_nif() ->
216 -- NifFile = p1_nif_utils:get_so_path(?MODULE, [fast_xml], "fxml_stream"),
217 -- case erlang:load_nif(NifFile, 0) of
218 -+ SOPath = p1_nif_utils:get_so_path(?MODULE, [fast_xml], "fxml_stream"),
219 -+ load_nif(SOPath).
220 -+
221 -+load_nif(SOPath) ->
222 -+ case erlang:load_nif(SOPath, 0) of
223 - ok ->
224 - ok;
225 - {error, {Reason, Txt}} ->
226 - error_logger:error_msg("failed to load NIF ~s: ~s",
227 -- [NifFile, Txt]),
228 -+ [SOPath, Txt]),
229 - {error, Reason}
230 - end.
231 -
232 -diff --git a/test/fxml_test.erl b/test/fxml_test.erl
233 -index e41a3dc..0bd2f91 100644
234 ---- a/test/fxml_test.erl
235 -+++ b/test/fxml_test.erl
236 -@@ -39,7 +39,8 @@ close(State) ->
237 - ?assertEqual(true, fxml_stream:close(State)).
238 -
239 - start_test() ->
240 -- ?assertEqual(ok, application:start(fast_xml)).
241 -+ ?assertEqual(ok, fxml:load_nif(p1_nif_utils:get_so_path(fxml, [], "fxml"))),
242 -+ ?assertEqual(ok, fxml_stream:load_nif(p1_nif_utils:get_so_path(fxml_stream, [], "fxml_stream"))).
243 -
244 - tag_test() ->
245 - ?assertEqual(#xmlel{name = <<"root">>},
246 -@@ -877,6 +878,3 @@ rpc_empty_response_test() ->
247 - Result = {response, []},
248 - ?assertEqual({ok, Result}, fxmlrpc:decode(Response)),
249 - ?assertEqual(Response, fxmlrpc:encode(Result)).
250 --
251 --application_stop_test() ->
252 -- ?assertEqual(ok, application:stop(fast_xml)).
253 ---
254 -2.11.0
255 -