Bug 258942 - www/trac-devel: Incompatible with Jinja2 >= 3.0.0
Summary: www/trac-devel: Incompatible with Jinja2 >= 3.0.0
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Oleksii Samorukov
URL: https://trac.edgewall.org/ticket/13404
Keywords: regression
: 259910 (view as bug list)
Depends on:
Reported: 2021-10-05 10:31 UTC by Lapo Luchini
Modified: 2021-11-26 08:30 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (samm)
koobs: maintainer-feedback? (nivit)
koobs: merge-quarterly?


Note You need to log in before you can comment on or make changes to this bug.
Description Lapo Luchini 2021-10-05 10:31:12 UTC
% sudo service tracd start
ImportError: cannot import name 'soft_unicode' from 'jinja2.utils' (/usr/local/lib/python3.8/site-packages/jinja2/utils.py)

Known upstream as issue 13404, with no work-around so far (the one in the ticket is regarding a different error):
Comment 1 Lapo Luchini 2021-10-05 10:47:45 UTC
Oh, I didn't notice the solution was already in the question:

DeprecationWarning: 'jinja2.utils.soft_unicode' will be removed in version 3.0. Use 'markupsafe.soft_unicode' instead.
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2021-10-06 00:09:16 UTC
^Triage: Broken by ports 04ca9b0f4970d8d47accc9e31ef0c91b1a9d01f0 request feedback from committer

Upstream commit addressing issue: https://trac.edgewall.org/changeset/17543

Does trace have a test suite shipped with their distribution files that we can add as a port test target to improve future QA?
Comment 3 Oleksii Samorukov freebsd_committer 2021-11-24 19:58:10 UTC
I will update trac now and integrate upstream patch
Comment 4 commit-hook freebsd_committer 2021-11-24 20:27:08 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=29c0aa77578b766ac518e948c76834869e9813e5

commit 29c0aa77578b766ac518e948c76834869e9813e5
Author:     Oleksii Samorukov <samm@FreeBSD.org>
AuthorDate: 2021-11-24 20:22:39 +0000
Commit:     Oleksii Samorukov <samm@FreeBSD.org>
CommitDate: 2021-11-24 20:22:39 +0000

    www/trac-devel: Upgrade to 1.5.3 and unbreak

    PR:             258942
    Reported by:    lapo@lapo.it

 www/trac-devel/Makefile                            |  4 +--
 www/trac-devel/distinfo                            |  6 ++---
 ...h-trac_ticket_templates_report__view.html (new) | 10 +++++++
 www/trac-devel/files/patch-trac_util_html.py (new) | 11 ++++++++
 .../files/patch-trac_util_presentation.py (new)    | 19 +++++++++++++
 www/trac-devel/files/patch-trac_util_text.py (new) | 31 ++++++++++++++++++++++
 6 files changed, 75 insertions(+), 6 deletions(-)
Comment 5 Oleksii Samorukov freebsd_committer 2021-11-24 20:31:08 UTC
*** Bug 259910 has been marked as a duplicate of this bug. ***
Comment 6 Kubilay Kocak freebsd_committer freebsd_triage 2021-11-25 23:42:07 UTC
(In reply to commit-hook from comment #4)

Is quarterly also broken Oleksii? If so, could you please merge the minimum necessary changeset to resolve in quarterly.
Comment 7 Oleksii Samorukov freebsd_committer 2021-11-26 08:30:07 UTC
Merging to quarterly