Bug 260401 - www/grafana8 v8.2.7 failed to initialize build cache at /nonexistent/.cache/go-build
Summary: www/grafana8 v8.2.7 failed to initialize build cache at /nonexistent/.cache/g...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-13 22:02 UTC by Olli Hauer
Modified: 2021-12-20 00:00 UTC (History)
3 users (show)

See Also:
drtr0jan: maintainer-feedback+


Attachments
grafana8.diff (569 bytes, patch)
2021-12-14 09:26 UTC, Boris Korzun
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olli Hauer freebsd_committer freebsd_triage 2021-12-13 22:02:20 UTC
last grafana8 update seems broken if build with poudriere.

Haven't tested the patch from bug #260358


===>  Configuring for grafana8-8.2.7
===========================================================================
=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===>  Building for grafana8-8.2.7
(cd /wrkdirs/usr/ports/www/grafana8/work/grafana-8.2.7;  echo "===>  Building google/wire";  /usr/bin/env XDG_DATA_HOME=/wrkdirs/usr/ports/www/grafana8/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/www/grafana8/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/www/grafana8/work/.cache  HOME=/wrkdirs/usr/ports/www/grafana8/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/www/grafana8/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/nonexistent/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install
   -m 444" CGO_ENABLED=1  CGO_CFLAGS="-I/usr/local/include"  CGO_LDFLAGS="-L/usr/local/lib"  GOARM= GOPATH="/portdistfiles/go/www_grafana8"  GOBIN="/wrkdirs/usr/ports/www/grafana8/work/bin"  GO111MODULE=on  GOFLAGS=-modcacherw  GOSUMDB=sum.golang.org GO_NO_VENDOR_CHECKS=1 GOPROXY=off /usr/local/bin/go build  -o wire ./vendor/github.com/google/wire/cmd/wire/main.go;  echo "===>  Generating wire_gen.go";  /usr/bin/env CGO_ENABLED=1  CGO_CFLAGS="-I/usr/local/include"  CGO_LDFLAGS="-L/usr/local/lib"  GOARM= GOPATH="/portdistfiles/go/www_grafana8"  GOBIN="/wrkdirs/usr/ports/www/grafana8/work/bin"  GO111MODULE=on  GOFLAGS=-modcacherw  GOSUMDB=sum.golang.org GO_NO_VENDOR_CHECKS=1 ./wire gen -tags "oss" ./pkg/server )
===>  Building google/wire
===>  Generating wire_gen.go
wire: err: exit status 1: stderr: failed to initialize build cache at /nonexistent/.cache/go-build: mkdir /nonexistent: permission denied
	
wire: generate failed
*** Error code 1

Stop.
make: stopped in /usr/ports/www/grafana8
Comment 1 Boris Korzun 2021-12-13 22:07:52 UTC
(In reply to Olli Hauer from comment #0)
Thx for feedback.
I've tested the 8.2.7 by poudriere-testport and build was successful.

I will test it again and report back ASAP.
Comment 2 Boris Korzun 2021-12-14 09:26:38 UTC
Created attachment 230104 [details]
grafana8.diff

(In reply to Olli Hauer from comment #0)

Please try to build with the attached patch.
Comment 3 Olli Hauer freebsd_committer freebsd_triage 2021-12-14 17:51:10 UTC
The patch works for me, Thanks!
Comment 4 Boris Korzun 2021-12-14 20:14:40 UTC
(In reply to Olli Hauer from comment #3)

Okay, it will be fixed at bug #260358.
Comment 5 commit-hook freebsd_committer freebsd_triage 2021-12-18 20:12:46 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=352b384cbd92272646c25e2583296770d8222dca

commit 352b384cbd92272646c25e2583296770d8222dca
Author:     Matthew Seaman <matthew@FreeBSD.org>
AuthorDate: 2021-12-18 20:04:51 +0000
Commit:     Matthew Seaman <matthew@FreeBSD.org>
CommitDate: 2021-12-18 20:11:38 +0000

    www/grafana8: update to 8.3.3

    Update to 8.3.2 with moderate severity security fix (
    https://grafana.com/blog/2021/12/10/grafana-8.3.2-and-7.5.12-released-with-moderate-severity-security-fix/
    )

    ChangeLog:      https://github.com/grafana/grafana/releases/tag/v8.3.2

    Update to 8.3.3

    Changelog:      https://github.com/grafana/grafana/releases/tag/v8.3.3

    PR:             260401, 260358
    Reported by:    Boris Korzun (maintainer), ohauer
    Security:       c2a7de31-5b42-11ec-8398-6c3be5272acd
    Security:       a994ff7d-5b3f-11ec-8398-6c3be5272acd

 www/grafana8/Makefile         |    8 +-
 www/grafana8/Makefile.modules |  141 +++---
 www/grafana8/distinfo         |  230 +++++-----
 www/grafana8/pkg-plist        | 1000 +++++++++++++++++++++++++----------------
 4 files changed, 827 insertions(+), 552 deletions(-)
Comment 6 commit-hook freebsd_committer freebsd_triage 2021-12-18 20:12:47 UTC
A commit in branch main references this bug:

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

commit adfdbdd18320ecb5d02a5480e4bdc84af9093479
Author:     Matthew Seaman <matthew@FreeBSD.org>
AuthorDate: 2021-12-18 14:13:53 +0000
Commit:     Matthew Seaman <matthew@FreeBSD.org>
CommitDate: 2021-12-18 20:11:37 +0000

    security/vuxml: add two grafana security advisories

    Moderate severity directory traversal vulnerabilities for .csv
    (CVE-2021-43815) and .md (CVE-2021-43813) files.

    PR:             260358, 260401

    Reported by:    Boris Kozun (maintainer), ohauer

 security/vuxml/vuln-2021.xml | 68 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)
Comment 7 Matthew Seaman freebsd_committer freebsd_triage 2021-12-18 20:15:36 UTC
I can confirm that this patch does indeed fix the compilation problem.  Curiously it seems that grafana8 will not compile successfully when both
of the following apply:

  * OS is FreeBSD 13
  * Poudriere configured to use ccache

Other combinations work fine.

Any how: committed, thanks!
Comment 8 commit-hook freebsd_committer freebsd_triage 2021-12-20 00:00:15 UTC
A commit in branch 2021Q4 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=36698615c55e8ae0b496febfd34f73b8e22ab079

commit 36698615c55e8ae0b496febfd34f73b8e22ab079
Author:     Matthew Seaman <matthew@FreeBSD.org>
AuthorDate: 2021-12-18 20:04:51 +0000
Commit:     Matthew Seaman <matthew@FreeBSD.org>
CommitDate: 2021-12-19 23:55:51 +0000

    www/grafana8: update to 8.3.3

    Update to 8.3.2 with moderate severity security fix (
    https://grafana.com/blog/2021/12/10/grafana-8.3.2-and-7.5.12-released-with-moderate-severity-security-fix/
    )

    ChangeLog:      https://github.com/grafana/grafana/releases/tag/v8.3.2

    Update to 8.3.3

    Changelog:      https://github.com/grafana/grafana/releases/tag/v8.3.3

    PR:             260401, 260358
    Reported by:    Boris Korzun (maintainer), ohauer
    Security:       c2a7de31-5b42-11ec-8398-6c3be5272acd
    Security:       a994ff7d-5b3f-11ec-8398-6c3be5272acd

    (cherry picked from commit 352b384cbd92272646c25e2583296770d8222dca)

 www/grafana8/Makefile         |    8 +-
 www/grafana8/Makefile.modules |  141 +++---
 www/grafana8/distinfo         |  230 +++++-----
 www/grafana8/pkg-plist        | 1000 +++++++++++++++++++++++++----------------
 4 files changed, 827 insertions(+), 552 deletions(-)