All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Johan Oudinet <johan.oudinet@gmail.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 01/20] package/erlang-idna: remove unicode_util_compat library
Date: Mon, 16 May 2022 23:32:02 +0200	[thread overview]
Message-ID: <20220516213202.GJ1597494@scaer> (raw)
In-Reply-To: <20220516131334.1910858-2-johan.oudinet@gmail.com>

Johan, All,

On 2022-05-16 15:13 +0200, Johan Oudinet spake thusly:
> This library is not needed for the erlang version packaged in
> Buildroot. Since it has been recently removed from erlang-idna
> upstream repository but not included in any release yet, backport this
> commit as a patch to this version.

We're still on elran-idna 6.0.0.

But as there's been no new release sine 2020-12-05, and no new commit
since about the same day, and since the patch you are adding is the only
commit since 6.1.1., maybe we should just bump to the latest commit in
the repository?

Regards,
Yann E. MORIN.

> Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
> ---
>  ...1-remove-unicode_util_compat_library.patch | 92 +++++++++++++++++++
>  1 file changed, 92 insertions(+)
>  create mode 100644 package/erlang-idna/0001-remove-unicode_util_compat_library.patch
> 
> diff --git a/package/erlang-idna/0001-remove-unicode_util_compat_library.patch b/package/erlang-idna/0001-remove-unicode_util_compat_library.patch
> new file mode 100644
> index 0000000000..788e633879
> --- /dev/null
> +++ b/package/erlang-idna/0001-remove-unicode_util_compat_library.patch
> @@ -0,0 +1,92 @@
> +From 230a9175a5edb1b1a47fb09af2f4341eab93b1b0 Mon Sep 17 00:00:00 2001
> +From: Benoit Chesneau <bchesneau@gmail.com>
> +Date: Sat, 5 Dec 2020 11:31:24 +0100
> +Subject: [PATCH] remove unicode_util_compat library
> +
> +remove unicode_util_compat library and support only Erlang >= 20. This
> +change simplify the stack and prepare future change to support specific
> +features of Erlang 23 and sup.
> +---
> + src/idna.app.src     |  2 +-
> + src/idna.erl         | 10 +++++-----
> + src/idna_context.erl |  4 ++--
> + 3 files changed, 8 insertions(+), 8 deletions(-)
> +
> +diff --git a/src/idna.app.src b/src/idna.app.src
> +index a6a7537..d647506 100644
> +--- a/src/idna.app.src
> ++++ b/src/idna.app.src
> +@@ -3,7 +3,7 @@
> +   {vsn, "6.0.0"},
> +   {modules, []},
> +   {registered, []},
> +-  {applications, [kernel, stdlib, unicode_util_compat]},
> ++  {applications, [kernel, stdlib]},
> + 
> +   {maintainers, ["Benoit Chesneau"]},
> +   {licenses, ["BSD"]},
> +diff --git a/src/idna.erl b/src/idna.erl
> +index 3436dd9..24d96b8 100644
> +--- a/src/idna.erl
> ++++ b/src/idna.erl
> +@@ -333,7 +333,7 @@ lowercase_list([], true) ->
> + lowercase_list([], false) ->
> +   throw(unchanged);
> + lowercase_list(CPs0, Changed) ->
> +-  case unicode_util_compat:lowercase(CPs0) of
> ++  case unicode_util:lowercase(CPs0) of
> +     [Char|CPs] when Char =:= hd(CPs0) -> [Char|lowercase_list(CPs, Changed)];
> +     [Char|CPs] -> append(Char,lowercase_list(CPs, true));
> +     [] -> lowercase_list([], Changed)
> +@@ -346,9 +346,9 @@ lowercase_bin(CP1, <<CP2/utf8, Bin/binary>>, Changed)
> +   when CP1 < 128, CP2 < 256 ->
> +   [CP1|lowercase_bin(CP2, Bin, Changed)];
> + lowercase_bin(CP1, Bin, Changed) ->
> +-  case unicode_util_compat:lowercase([CP1|Bin]) of
> ++  case unicode_util:lowercase([CP1|Bin]) of
> +     [CP1|CPs] ->
> +-      case unicode_util_compat:cp(CPs) of
> ++      case unicode_util:cp(CPs) of
> +         [Next|Rest] ->
> +           [CP1|lowercase_bin(Next, Rest, Changed)];
> +         [] when Changed ->
> +@@ -357,7 +357,7 @@ lowercase_bin(CP1, Bin, Changed) ->
> +           throw(unchanged)
> +       end;
> +     [Char|CPs] ->
> +-      case unicode_util_compat:cp(CPs) of
> ++      case unicode_util:cp(CPs) of
> +         [Next|Rest] ->
> +           [Char|lowercase_bin(Next, Rest, true)];
> +         [] ->
> +@@ -374,7 +374,7 @@ append(GC, Str) when is_list(GC) -> GC ++ Str.
> + 
> + 
> + characters_to_nfc_list(CD) ->
> +-  case unicode_util_compat:nfc(CD) of
> ++  case unicode_util:nfc(CD) of
> +     [CPs|Str] when is_list(CPs) -> CPs ++ characters_to_nfc_list(Str);
> +     [CP|Str] -> [CP|characters_to_nfc_list(Str)];
> +     [] -> []
> +diff --git a/src/idna_context.erl b/src/idna_context.erl
> +index afcb814..a09ff1f 100644
> +--- a/src/idna_context.erl
> ++++ b/src/idna_context.erl
> +@@ -28,7 +28,7 @@ valid_contextj(Label, Pos) ->
> + valid_contextj(16#200c, Label, Pos) ->
> +   if
> +      Pos > 0 ->
> +-       case unicode_util_compat:lookup(lists:nth(Pos, Label)) of
> ++       case unicode_util:lookup(lists:nth(Pos, Label)) of
> +          #{ ccc := ?virama_combining_class } -> true;
> +          _ ->
> +            valid_contextj_1(Label, Pos)
> +@@ -38,7 +38,7 @@ valid_contextj(16#200c, Label, Pos) ->
> +   end;
> + 
> + valid_contextj(16#200d, Label, Pos) when Pos > 0 ->
> +-  case unicode_util_compat:lookup(lists:nth(Pos, Label)) of
> ++  case unicode_util:lookup(lists:nth(Pos, Label)) of
> +     #{ ccc := ?virama_combining_class } -> true;
> +     _ -> false
> +   end;
> -- 
> 2.34.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2022-05-16 21:32 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-16 13:13 [Buildroot] [PATCH 00/20] Update Ejabberd and its dependencies Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 01/20] package/erlang-idna: remove unicode_util_compat library Johan Oudinet
2022-05-16 21:32   ` Yann E. MORIN [this message]
2022-05-19 13:41     ` Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 02/20] package/erlang-lager: bump version to 3.9.1 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 03/20] package/erlang-p1-utils: bump version to 1.0.23 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 04/20] package/erlang-p1-cache-tab: bump version to 1.0.29 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 05/20] package/erlang-p1-tls: bump version to 1.1.13 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 06/20] package/erlang-p1-stringprep: bump version to 1.0.27 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 07/20] package/erlang-p1-xml: bump version to 1.1.49 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 08/20] package/erlang-p1-xmpp: bump version to 1.5.6 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 09/20] package/erlang-p1-yaml: bump version to 1.0.32 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 10/20] package/erlang-p1-yconf: bump version to 1.0.12 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 11/20] package/erlang-p1-oauth2: bump version to 0.6.10 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 12/20] package/erlang-p1-pkix: bump version to 1.0.8 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 13/20] package/erlang-eimp: bump version to 1.0.21 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 14/20] package/erlang-p1-mqtree: bump version to 1.0.14 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 15/20] package/erlang-jose: bump version to 1.11.1 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 16/20] package/erlang-p1-acme: bump version to 1.0.16 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 17/20] package/erlang-p1-stun: bump version to 1.0.47 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 18/20] package/erlang-p1-sip: " Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 19/20] package/erlang-p1-zlib: bump version to 1.0.10 Johan Oudinet
2022-05-16 13:13 ` [Buildroot] [PATCH 20/20] package/ejabberd: bump version to 21.12 Johan Oudinet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220516213202.GJ1597494@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=johan.oudinet@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.