pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/go



Module Name:    pkgsrc
Committed By:   tnn
Date:           Thu Aug 20 06:50:49 UTC 2020

Modified Files:
        pkgsrc/lang/go: go-module.mk

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


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/go/go-module.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/go/go-module.mk
diff -u pkgsrc/lang/go/go-module.mk:1.3 pkgsrc/lang/go/go-module.mk:1.4
--- pkgsrc/lang/go/go-module.mk:1.3     Fri Jul 17 16:23:21 2020
+++ pkgsrc/lang/go/go-module.mk Thu Aug 20 06:50:49 2020
@@ -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 @@ post-extract:
        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