public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Peter Lemenkov <lemenkov@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/erlang-certifi] rawhide: certifi ver. 2.19.0
Date: Thu, 12 Nov 2026 22:22:06 GMT	[thread overview]
Message-ID: <179452212632.1.3785524632503184074.rpms-erlang-certifi-dc422a20f61a@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/erlang-certifi
            Branch : rawhide
            Commit : dc422a20f61ab08f60594c517a3b76bfbb7337a7
            Author : Peter Lemenkov <lemenkov@gmail.com>
            Date   : 2026-11-12T23:21:51+01:00
            Stats  : +23/-42 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/erlang-certifi/c/dc422a20f61ab08f60594c517a3b76bfbb7337a7?branch=rawhide

            Log:
            certifi ver. 2.19.0

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

---
diff --git a/erlang-certifi-0001-Enforce-Fedora-CA-bundle.patch b/erlang-certifi-0001-Enforce-Fedora-CA-bundle.patch
index 29ecb20..df58417 100644
--- a/erlang-certifi-0001-Enforce-Fedora-CA-bundle.patch
+++ b/erlang-certifi-0001-Enforce-Fedora-CA-bundle.patch
@@ -5,52 +5,29 @@ Subject: [PATCH] Enforce Fedora CA bundle
 
 
 diff --git a/src/certifi.erl b/src/certifi.erl
-index 431b941..2c6c944 100644
+index e96f3f2..e57bf13 100644
 --- a/src/certifi.erl
 +++ b/src/certifi.erl
-@@ -14,16 +14,7 @@
+@@ -19,7 +19,7 @@
  -spec cacertfile() -> Result when
  	Result :: file:filename_all().
  cacertfile() ->
--  PrivDir = case code:priv_dir(certifi) of
--    {error, _} ->
--      %% try to get relative priv dir. useful for tests.
--      AppDir = filename:dirname(
--                 filename:dirname(code:which(?MODULE))
--                ),
--      filename:join(AppDir, "priv");
--    Dir -> Dir
--  end,
--  filename:join(PrivDir, "cacerts.pem").
+-  filename:join(priv_dir(), "cacerts.pem").
 +  "/etc/ssl/certs/ca-bundle.crt".
  
  %% @doc CACerts builds an X.509 certificate list containing the Mozilla CA
  %% Certificate.
 diff --git a/src/certifi_pt.erl b/src/certifi_pt.erl
-index 3566ecf..d39a4e3 100644
+index acb5eae..ae04031 100644
 --- a/src/certifi_pt.erl
 +++ b/src/certifi_pt.erl
-@@ -5,7 +5,7 @@ parse_transform(Forms, _Opts) ->
-   [replace_cacerts(Form) || Form <- Forms].
+@@ -11,7 +11,8 @@ parse_transform(Forms, Opts) ->
  
- replace_cacerts({function, Ann, cacerts, 0, [_]}) ->
--  {ok, Binary} = file:read_file(cert_file() ),
-+  {ok, Binary} = file:read_file("/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem"),
-   Pems = public_key:pem_decode(Binary),
-   Cacerts = [Der || {'Certificate', Der, _} <- Pems],
-   Body = lists:foldl(fun(Cert, Acc) ->
-@@ -15,14 +15,6 @@ replace_cacerts({function, Ann, cacerts, 0, [_]}) ->
- replace_cacerts(Other) ->
-   Other.
- 
---spec cert_file() -> Result when
--	Result :: file:filename_all().
--cert_file() ->
--  AppDir = filename:dirname(
--             filename:dirname(code:which(?MODULE))
--            ),
--  filename:join([AppDir, "priv", "cacerts.pem"]).
--
- -spec cert_to_bin_ast(Cert) -> Result when
- 	Cert :: binary(),
- 	Result :: {bin, 0, [{bin_element, 0, {string, 0, list()}, default, default}]}.
+ replace({function, Ann, cacerts, 0, [_]} = Form, Embed) ->
+   case lists:member(mozilla, Embed) of
+-    true -> embed(Ann, cacerts, "cacerts.pem");
++    %% The system CA bundle; cert_file/1 uses an absolute path as is
++    true -> embed(Ann, cacerts, "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem");
+     false -> Form
+   end;
+ replace({function, Ann, eu_cacerts, 0, [_]} = Form, Embed) ->

diff --git a/erlang-certifi-0002-Adapt-tests-to-the-system-CA-bundle.patch b/erlang-certifi-0002-Adapt-tests-to-the-system-CA-bundle.patch
index 9898f14..2a684c5 100644
--- a/erlang-certifi-0002-Adapt-tests-to-the-system-CA-bundle.patch
+++ b/erlang-certifi-0002-Adapt-tests-to-the-system-CA-bundle.patch
@@ -13,10 +13,10 @@ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
 Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
 
 diff --git a/test/certifi_tests.erl b/test/certifi_tests.erl
-index 2f089fd..f78aebd 100644
+index 31b3c80..50509d9 100644
 --- a/test/certifi_tests.erl
 +++ b/test/certifi_tests.erl
-@@ -8,30 +8,16 @@ reproducible_module_test() ->
+@@ -9,13 +9,13 @@ reproducible_module_test() ->
      ?assertMatch([{version,[_|_]}], certifi:module_info(compile)).
  -endif.
  
@@ -36,10 +36,10 @@ index 2f089fd..f78aebd 100644
      ].
  
  cacertfile_matches_embedded_bundle_test() ->
-     {ok, Pem} = file:read_file(certifi:cacertfile()),
+@@ -23,20 +23,6 @@ cacertfile_matches_embedded_bundle_test() ->
      Certs = [Der || {'Certificate', Der, _} <- public_key:pem_decode(Pem)],
      ?assertEqual(lists:sort(Certs), lists:sort(certifi:cacerts())).
--
+ 
 -distrusted_emsign_roots_test_() ->
 -    Fingerprints = [crypto:hash(sha256, Cert) || Cert <- certifi:cacerts()],
 -    %% Removed by Mozilla NSS in October 2026 (bugs 2083709 and 2084101).
@@ -53,3 +53,7 @@ index 2f089fd..f78aebd 100644
 -    ],
 -    [{Name, ?_assertNot(lists:member(Fingerprint, Fingerprints))}
 -     || {Name, Fingerprint} <- Distrusted].
+-
+ eu_cacertfile_matches_eu_cacerts_test() ->
+     {ok, Pem} = file:read_file(certifi:eu_cacertfile()),
+     Certs = [Der || {'Certificate', Der, _} <- public_key:pem_decode(Pem)],

diff --git a/erlang-certifi.spec b/erlang-certifi.spec
index 6b56380..34f262b 100644
--- a/erlang-certifi.spec
+++ b/erlang-certifi.spec
@@ -1,7 +1,7 @@
 %global realname certifi
 
 Name:     erlang-%{realname}
-Version:  2.18.0
+Version:  2.19.0
 Release:  %autorelease
 BuildArch:noarch
 Summary:  Dummy certifi (certificate bundle) package for erlang

diff --git a/sources b/sources
index bd868c7..66e2c58 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (certifi-2.18.0.tar.gz) = cb0b895f537649588bdb98d8dc949c69eba0f2d14e54efb6fd9287459771f36be2c2bbe09796e57ed676dad165b1fdc6a58848ff46552de677cbf7d1d065abf8
+SHA512 (certifi-2.19.0.tar.gz) = 24c03282ef999494950751a09596529eb689acc9641e8b117fd974bcdd321475eb36070c48c531bc00baa826a1cbc1270aa465cbec14f80192dd3206454a4ac5

                 reply	other threads:[~2026-11-12 22:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=179452212632.1.3785524632503184074.rpms-erlang-certifi-dc422a20f61a@fedoraproject.org \
    --to=lemenkov@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox