Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] `./xbps-src zap` permission error after compiling with golang
@ 2021-12-13  4:21 b-l-a-i-n-e
  2021-12-13  4:37 ` b-l-a-i-n-e
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: b-l-a-i-n-e @ 2021-12-13  4:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 992 bytes --]

New issue by b-l-a-i-n-e on void-packages repository

https://github.com/void-linux/void-packages/issues/34505

Description:
After compiling a program with golang, a masterdir/tmp/go directory is created with files in it that can only only be removed as root.

``./xpbs-src zap`` then complains about permissions like below

```
rm: cannot remove '/home/b/void-packages/masterdir/tmp/go/pkg/mod/golang.org/x/net@v0.0.0-20190328230028-74de082e2cca/dns/dnsmessage/example_test.go': Permission denied
rm: cannot remove '/home/b/void-packages/masterdir/tmp/go/pkg/mod/golang.org/x/net@v0.0.0-20190328230028-74de082e2cca/dns/dnsmessage/message_test.go': Permission denied
rm: cannot remove '/home/b/void-packages/masterdir/tmp/go/pkg/mod/golang.org/x/net@v0.0.0-20190328230028-74de082e2cca/dns/dnsmessage/message.go': Permission denied
rm: cannot remove '/home/b/void-packages/masterdir/tmp/go/pkg/mod/golang.org/x/net@v0.0.0-20190328230028-74de082e2cca/PATENTS': Permission denied
```


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: `./xbps-src zap` permission error after compiling with golang
  2021-12-13  4:21 [ISSUE] `./xbps-src zap` permission error after compiling with golang b-l-a-i-n-e
@ 2021-12-13  4:37 ` b-l-a-i-n-e
  2021-12-13  4:45 ` b-l-a-i-n-e
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: b-l-a-i-n-e @ 2021-12-13  4:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 299 bytes --]

New comment by b-l-a-i-n-e on void-packages repository

https://github.com/void-linux/void-packages/issues/34505#issuecomment-992104893

Comment:
`sudo rm -rf masterdir/tmp` fixes it, but to avoid sudo permissions we may need to do something like

`chmod -R 777 masterdir/tmp` in the zap command 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: `./xbps-src zap` permission error after compiling with golang
  2021-12-13  4:21 [ISSUE] `./xbps-src zap` permission error after compiling with golang b-l-a-i-n-e
  2021-12-13  4:37 ` b-l-a-i-n-e
@ 2021-12-13  4:45 ` b-l-a-i-n-e
  2021-12-13  9:49 ` paper42
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: b-l-a-i-n-e @ 2021-12-13  4:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 222 bytes --]

New comment by b-l-a-i-n-e on void-packages repository

https://github.com/void-linux/void-packages/issues/34505#issuecomment-992107456

Comment:
Potential fix here:
https://github.com/void-linux/void-packages/pull/34506

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: `./xbps-src zap` permission error after compiling with golang
  2021-12-13  4:21 [ISSUE] `./xbps-src zap` permission error after compiling with golang b-l-a-i-n-e
  2021-12-13  4:37 ` b-l-a-i-n-e
  2021-12-13  4:45 ` b-l-a-i-n-e
@ 2021-12-13  9:49 ` paper42
  2021-12-13 17:31 ` b-l-a-i-n-e
  2022-02-13 18:03 ` [ISSUE] [CLOSED] " b-l-a-i-n-e
  4 siblings, 0 replies; 6+ messages in thread
From: paper42 @ 2021-12-13  9:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/issues/34505#issuecomment-992287680

Comment:
That is a solution, but a much cleaner approach would be to add `-modcacherw` to the go build style to make the files writeable

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: `./xbps-src zap` permission error after compiling with golang
  2021-12-13  4:21 [ISSUE] `./xbps-src zap` permission error after compiling with golang b-l-a-i-n-e
                   ` (2 preceding siblings ...)
  2021-12-13  9:49 ` paper42
@ 2021-12-13 17:31 ` b-l-a-i-n-e
  2022-02-13 18:03 ` [ISSUE] [CLOSED] " b-l-a-i-n-e
  4 siblings, 0 replies; 6+ messages in thread
From: b-l-a-i-n-e @ 2021-12-13 17:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

New comment by b-l-a-i-n-e on void-packages repository

https://github.com/void-linux/void-packages/issues/34505#issuecomment-992707638

Comment:
@paper42 do you mean adding the GOFLAGS check in the actual build_style (common/build-style/go.sh) or adding the flag to the specific package that was causing the issue?

For my particular issue I was not using the go build-style because the package I want to install is not in the normal go package format, I need to run a script to start the go compilation

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ISSUE] [CLOSED] `./xbps-src zap` permission error after compiling with golang
  2021-12-13  4:21 [ISSUE] `./xbps-src zap` permission error after compiling with golang b-l-a-i-n-e
                   ` (3 preceding siblings ...)
  2021-12-13 17:31 ` b-l-a-i-n-e
@ 2022-02-13 18:03 ` b-l-a-i-n-e
  4 siblings, 0 replies; 6+ messages in thread
From: b-l-a-i-n-e @ 2022-02-13 18:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 995 bytes --]

Closed issue by b-l-a-i-n-e on void-packages repository

https://github.com/void-linux/void-packages/issues/34505

Description:
After compiling a program with golang, a masterdir/tmp/go directory is created with files in it that can only only be removed as root.

``./xpbs-src zap`` then complains about permissions like below

```
rm: cannot remove '/home/b/void-packages/masterdir/tmp/go/pkg/mod/golang.org/x/net@v0.0.0-20190328230028-74de082e2cca/dns/dnsmessage/example_test.go': Permission denied
rm: cannot remove '/home/b/void-packages/masterdir/tmp/go/pkg/mod/golang.org/x/net@v0.0.0-20190328230028-74de082e2cca/dns/dnsmessage/message_test.go': Permission denied
rm: cannot remove '/home/b/void-packages/masterdir/tmp/go/pkg/mod/golang.org/x/net@v0.0.0-20190328230028-74de082e2cca/dns/dnsmessage/message.go': Permission denied
rm: cannot remove '/home/b/void-packages/masterdir/tmp/go/pkg/mod/golang.org/x/net@v0.0.0-20190328230028-74de082e2cca/PATENTS': Permission denied
```


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-02-13 18:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13  4:21 [ISSUE] `./xbps-src zap` permission error after compiling with golang b-l-a-i-n-e
2021-12-13  4:37 ` b-l-a-i-n-e
2021-12-13  4:45 ` b-l-a-i-n-e
2021-12-13  9:49 ` paper42
2021-12-13 17:31 ` b-l-a-i-n-e
2022-02-13 18:03 ` [ISSUE] [CLOSED] " b-l-a-i-n-e

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).