From c3cecf09fa2186bce9aeb9a8846d45e06d34df2e Mon Sep 17 00:00:00 2001 From: Flakebi Date: Tue, 21 Jun 2022 22:50:17 +0200 Subject: [PATCH] salt: 3004.1 -> 3004.2 --- .../admin/salt/0001-Fix-Jinja2-3.1.0.patch | 38 ------------------- pkgs/tools/admin/salt/default.nix | 7 +--- 2 files changed, 2 insertions(+), 43 deletions(-) delete mode 100644 pkgs/tools/admin/salt/0001-Fix-Jinja2-3.1.0.patch diff --git a/pkgs/tools/admin/salt/0001-Fix-Jinja2-3.1.0.patch b/pkgs/tools/admin/salt/0001-Fix-Jinja2-3.1.0.patch deleted file mode 100644 index bdcc82c708df..000000000000 --- a/pkgs/tools/admin/salt/0001-Fix-Jinja2-3.1.0.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 0a763a13ef55964395dff60283ececc16f957792 Mon Sep 17 00:00:00 2001 -From: Derek Kulinski -Date: Sun, 8 May 2022 01:30:39 -0700 -Subject: [PATCH] Fix Jinja2 3.1.0 - ---- - salt/utils/jinja.py | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/salt/utils/jinja.py b/salt/utils/jinja.py -index 0cb70bf64a..322c2f7f46 100644 ---- a/salt/utils/jinja.py -+++ b/salt/utils/jinja.py -@@ -25,10 +25,11 @@ import salt.utils.json - import salt.utils.stringutils - import salt.utils.url - import salt.utils.yaml --from jinja2 import BaseLoader, Markup, TemplateNotFound, nodes -+from jinja2 import BaseLoader, TemplateNotFound, nodes - from jinja2.environment import TemplateModule - from jinja2.exceptions import TemplateRuntimeError - from jinja2.ext import Extension -+from markupsafe import Markup - from salt.exceptions import TemplateError - from salt.utils.decorators.jinja import jinja_filter, jinja_global, jinja_test - from salt.utils.odict import OrderedDict -@@ -706,7 +707,7 @@ def method_call(obj, f_name, *f_args, **f_kwargs): - return getattr(obj, f_name, lambda *args, **kwargs: None)(*f_args, **f_kwargs) - - --@jinja2.contextfunction -+@jinja2.pass_context - def show_full_context(ctx): - return salt.utils.data.simple_types_filter( - {key: value for key, value in ctx.items()} --- -2.35.1 - diff --git a/pkgs/tools/admin/salt/default.nix b/pkgs/tools/admin/salt/default.nix index b59bc46e9c2b..bac3bca4cc6b 100644 --- a/pkgs/tools/admin/salt/default.nix +++ b/pkgs/tools/admin/salt/default.nix @@ -8,11 +8,11 @@ python3.pkgs.buildPythonApplication rec { pname = "salt"; - version = "3004.1"; + version = "3004.2"; src = python3.pkgs.fetchPypi { inherit pname version; - hash = "sha256-fzRKJDJkik8HjapazMaNzf/hCVzqE+wh5QQTVg8Ewpg="; + hash = "sha256-L6ZE9iANTja1WEbLNytuZ7bKD77AaX8djXPncbZl7XA="; }; propagatedBuildInputs = with python3.pkgs; [ @@ -29,9 +29,6 @@ python3.pkgs.buildPythonApplication rec { patches = [ ./fix-libcrypto-loading.patch - - # Bug in 3004.1: https://github.com/saltstack/salt/pull/61856 - ./0001-Fix-Jinja2-3.1.0.patch ]; postPatch = ''