Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836206 - app-admin/salt broken because of changes in >=dev-python/jinja-3.1
Summary: app-admin/salt broken because of changes in >=dev-python/jinja-3.1
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
Depends on:
Reported: 2022-03-26 16:51 UTC by Carlos Konstanski
Modified: 2022-03-28 23:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Konstanski 2022-03-26 16:51:24 UTC
A very recent upgrade to dev-python/jinja-3.1.x has caused app-admin/salt to break. The salt team is aware of this issue. Here is a link to the github issue:

Salt will need a version bump as soon as they fix it.

```Traceback (most recent call last):
  File "/usr/bin/salt-call", line 98, in <module>
    exec(data, new_globals)
  File "<string>", line 33, in <module>
  File "/usr/lib/python3.9/site-packages/salt/", line 437, in salt_call
  File "/usr/lib/python3.9/site-packages/salt/cli/", line 6, in <module>
    import salt.cli.caller
  File "/usr/lib/python3.9/site-packages/salt/cli/", line 14, in <module>
    import salt.loader
  File "/usr/lib/python3.9/site-packages/salt/", line 26, in <module>
    import salt.config
  File "/usr/lib/python3.9/site-packages/salt/config/", line 103, in <module>
    _DFLT_IPC_WBUFFER = _gather_buffer_space() * 0.5
  File "/usr/lib/python3.9/site-packages/salt/config/", line 91, in _gather_buffer_space
    import salt.grains.core
  File "/usr/lib/python3.9/site-packages/salt/grains/", line 32, in <module>
    import salt.modules.cmdmod
  File "/usr/lib/python3.9/site-packages/salt/modules/", line 31, in <module>
    import salt.utils.templates
  File "/usr/lib/python3.9/site-packages/salt/utils/", line 20, in <module>
    import salt.utils.jinja
  File "/usr/lib/python3.9/site-packages/salt/utils/", line 28, in <module>
    from jinja2 import BaseLoader, Markup, TemplateNotFound, nodes
ImportError: cannot import name 'Markup' from 'jinja2' (/usr/lib/python3.9/site-packages/jinja2/```

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2022-03-27 01:00:21 UTC
The bug has been referenced in the following commit(s):

commit 79dacb355a17541cc945d0fd8f76ac1c08cc28b8
Author:     Sam James <>
AuthorDate: 2022-03-27 00:58:52 +0000
Commit:     Sam James <>
CommitDate: 2022-03-27 01:00:09 +0000

    app-admin/salt: add patch for newer Jinja
    Signed-off-by: Sam James <>

 app-admin/salt/files/salt-3003.3-jinja.patch | 155 ++++++++++++++++++++
 app-admin/salt/salt-3003.3-r1.ebuild         | 203 +++++++++++++++++++++++++++
 2 files changed, 358 insertions(+)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-27 01:01:16 UTC
I've only patched 3003.3 (in -r1).