[Bug 246020] www/gitea: Fix repo/wiki/view.tmpl template
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Apr 29 07:35:55 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246020
Bug ID: 246020
Summary: www/gitea: Fix repo/wiki/view.tmpl template
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: ports at skyforge.at
CC: stb at lassitu.de
CC: stb at lassitu.de
Flags: maintainer-feedback?(stb at lassitu.de)
Created attachment 213903
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=213903&action=edit
gitea: Add patch for repo/wiki/view.tmpl
Right now, the version of gitea shipped in ports fails to display wiki pages.
Any wiki page opened results in the following error:
template: repo/wiki/view:48:14: executing "repo/wiki/view" at <(not
$.DisableHTTP) (and (not $.DisableSSH) (or $.IsSigned $.ExposeAnonSSH))>: can't
give argument to non-function not $.DisableHTTP
This is due to extra parentheses in templates/repo/wiki/view.tmpl and has
already been fixed upstream in [1], [2].
I've pulled the single line template fix from upstream and added the patch to
our port. As a workaround, users can also fix the problem by placing the
corrected template in /usr/local/etc/gitea/templates/repo/wiki/view.tmpl.
Port builds and runs fine for me. :)
Cheers,
Sascha
[1] https://github.com/go-gitea/gitea/issues/10552
[2]
https://github.com/zeripath/gitea/commit/1830d0ed5f4a67e3360ecbb55933b5540b6affce
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list