[Bug 241925] net-mgmt/prometheus2: Frontend files missing in 2.14.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 12 22:16:27 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241925

Ryan Steinmetz <zi at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zi at FreeBSD.org

--- Comment #1 from Ryan Steinmetz <zi at FreeBSD.org> ---
This was caused by two things:

1. We don't pass all the correct build flags.  We need to add this to the
Makefile:

GO_BUILDFLAGS+=-mod=vendor -a -tags netgo,builtinassets

2. Which causes the build to expect two new go source files which must be
provided or build.  In their Makefile, they expect that 'gmake assets' gets
called before the build starts, which runs yarn, compiles/downloads a bunch of
stuff and creates two required go files for the above to work:
web/ui/ui.go
web/ui/assets_vfsdata.go

assets_vfsdata.go is ~14M and has all of the HTML from the templates/ dir
embedded in it.

We probably don't want to run `gmake assets` as we do not want to reach out to
the Internet during the port build phase.  So, as a workaround, I'd suggest
hosting the above two files somewhere.  Then, open a PR with the prometheus
developers to request that they build/embed these files in their release
tarballs moving forward.

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


More information about the freebsd-ports-bugs mailing list