[Bug 272663] www/gitea: Startup errors

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 22 Jul 2023 11:37:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272663

            Bug ID: 272663
           Summary: www/gitea: Startup errors
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: laszlo@karolyi.hu
                CC: stb@lassitu.de
                CC: stb@lassitu.de
             Flags: maintainer-feedback?(stb@lassitu.de)

Hello,

two issues:

Firstly, in 1.20.0 the configuration file /usr/local/etc/gitea/conf/app.ini has
to be writeable to the running user, usually git. If not (I haven't made it
writeable for security reasons), gitea will fail to start up.

Secondly — and that is the bigger issue —  there is a template in the package
that doesn't exist in the 1.20.0 tag of gitea, that makes gitea fail to start
up:

/usr/local/share/gitea/templates/admin/process-row.tmpl

The error message for the template is:

=================================

2023/07/22 13:21:21 ...ates/htmlrenderer.go:138:wrapTmplErrMsg() [F] Gitea
can't run with template errors: template error: builtin(s
tatic):admin/process-row:6 : function "DateFmtLong" not defined
----------------------------------------------------------------------
                        <div class="description"><span title="{{DateFmtLong
.Process.Start}}">{{TimeSince .Process.Start .root.local
e}}</span></div>
                                                                ^^^^^^^^^^^
----------------------------------------------------------------------

=================================

This template doesn't exist in the 1.20.0 tag on github:
https://github.com/go-gitea/gitea/tree/v1.20.0/templates/admin

Please fix the port.

-- 
You are receiving this mail because:
You are the assignee for the bug.