Summary: | dev-db/influxdb-1.8.0: fails to install on prefix, PermissionError: [Errno 13] Permission denied: 'circle.yml' | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Guilherme Amadio <amadio> |
Component: | Prefix Support | Assignee: | William Hubbs <williamh> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Guilherme Amadio
2020-07-14 10:32:45 UTC
Some extra information: gentoo ~ $ find /tmp/portage/dev-db/influxdb-1.8.0 -name circle.yml | xargs ls -l -r--r--r-- 1 jenkins jenkins 4055 Jul 14 10:26 /tmp/portage/dev-db/influxdb-1.8.0/homedir/go/pkg/mod/github.com/gopherjs/gopherjs@v0.0.0-20181017120253-0766667cb4d1/circle.yml -r--r--r-- 1 jenkins jenkins 490 Jul 14 10:26 /tmp/portage/dev-db/influxdb-1.8.0/homedir/go/pkg/mod/github.com/influxdata/usage-client@v0.0.0-20160829180054-6d3895376368/circle.yml -r--r--r-- 1 jenkins jenkins 113 Jul 14 10:26 /tmp/portage/dev-db/influxdb-1.8.0/homedir/go/pkg/mod/github.com/klauspost/pgzip@v1.0.2-0.20170402124221-0bf5dcad4ada/circle.yml -r--r--r-- 1 jenkins jenkins 507 Jul 14 10:26 /tmp/portage/dev-db/influxdb-1.8.0/homedir/go/pkg/mod/github.com/paulbellamy/ratecounter@v0.2.0/circle.yml gentoo ~ $ find /tmp/portage/dev-db/influxdb-1.8.0 -name circle.yml | xargs rm rm: cannot remove '/tmp/portage/dev-db/influxdb-1.8.0/homedir/go/pkg/mod/github.com/influxdata/usage-client@v0.0.0-20160829180054-6d3895376368/circle.yml': Permission denied rm: cannot remove '/tmp/portage/dev-db/influxdb-1.8.0/homedir/go/pkg/mod/github.com/paulbellamy/ratecounter@v0.2.0/circle.yml': Permission denied rm: cannot remove '/tmp/portage/dev-db/influxdb-1.8.0/homedir/go/pkg/mod/github.com/gopherjs/gopherjs@v0.0.0-20181017120253-0766667cb4d1/circle.yml': Permission denied rm: cannot remove '/tmp/portage/dev-db/influxdb-1.8.0/homedir/go/pkg/mod/github.com/klauspost/pgzip@v1.0.2-0.20170402124221-0bf5dcad4ada/circle.yml': Permission denied The issue will be fixed when I can add -modcacherw to the GOFLAGS environment variable in go-module.eclass. [1] I'll be able to do this when I can remove go 1.12 and 1.13 from the tree; this will happen when 1.15 comes out next nonth. In the meantime, what do you suggest? I'm thinking about putting some code in pkg_preinst or pkg_postinst in the eclass, but to do this, I need to know the best way to detect prefix. Is it the prefix use flag? The reference from the previous comment: [1] https://golang.org/doc/go1.14 Using the prefix USE flag is ok, you can also check for non-empty $EPREFIX if you prefer. Maybe you can enable the flag when you detect that a version of go that supports it is being used? This probably doesn't have to wait for 1.15. Prefix is unstable by definition, so I'm on 1.14 there. This was fixed some time ago since go is up to version 1.21 and -modcacherw is a default build option. |