Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/go go-module.mk: fix permission denied as non-roo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fbdad37445fe
branches:  trunk
changeset: 437287:fbdad37445fe
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Thu Aug 20 06:50:49 2020 +0000

description:
go-module.mk: fix permission denied as non-root when running "make clean"

diffstat:

 lang/go/go-module.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r ae803471007b -r fbdad37445fe lang/go/go-module.mk
--- a/lang/go/go-module.mk      Thu Aug 20 05:24:40 2020 +0000
+++ b/lang/go/go-module.mk      Thu Aug 20 06:50:49 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: go-module.mk,v 1.3 2020/07/17 16:23:21 bsiegert Exp $
+# $NetBSD: go-module.mk,v 1.4 2020/08/20 06:50:49 tnn Exp $
 #
 # This file implements common logic for compiling Go programs in pkgsrc.
 #
@@ -71,6 +71,9 @@
        cp ${DISTDIR}/${DIST_SUBDIR}/${i:C/[\/!]/_/g} ${WRKDIR}/.goproxy/${i}
 .endfor
 
+pre-clean:
+       ${RUN} [ -d ${WRKDIR}/.gopath ] && chmod -R +w ${WRKDIR}/.gopath || true
+
 _VARGROUPS+=           go
 _PKG_VARS.go=          GO_BUILD_PATTERN
 _USER_VARS.go=         GO_VERSION_DEFAULT



Home | Main Index | Thread Index | Old Index