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:   leot
Date:           Tue Jun  5 15:42:20 UTC 2018

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

Log Message:
go/go-package.mk: Avoid to print (all) entries in print-PLIST unconditionally

Previously all lines (matching or not /${GO_PLATFORM}/) were printed
unconditionally and could interfere with other PRINT_PLIST_AWKs used by always
printing every line in `print-PLIST' phase.

Avoid that by limiting the pattern of PRINT_PLIST_AWK in go-package.mk.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/lang/go/go-package.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-package.mk
diff -u pkgsrc/lang/go/go-package.mk:1.11 pkgsrc/lang/go/go-package.mk:1.12
--- pkgsrc/lang/go/go-package.mk:1.11   Sat Jan 27 15:49:30 2018
+++ pkgsrc/lang/go/go-package.mk        Tue Jun  5 15:42:20 2018
@@ -1,4 +1,4 @@
-# $NetBSD: go-package.mk,v 1.11 2018/01/27 15:49:30 rillig Exp $
+# $NetBSD: go-package.mk,v 1.12 2018/06/05 15:42:20 leot Exp $
 #
 # This file implements common logic for compiling Go programs in pkgsrc.
 #
@@ -66,7 +66,7 @@ USE_TOOLS+=           pax
 GO_PLATFORM=           ${LOWER_OPSYS}_${GOARCH}
 GOTOOLDIR=             ${PREFIX}/go/pkg/tool/${GO_PLATFORM}
 
-PRINT_PLIST_AWK+=      { gsub(/${GO_PLATFORM}/, \
+PRINT_PLIST_AWK+=      /${GO_PLATFORM}/ { gsub(/${GO_PLATFORM}/, \
                        "$${GO_PLATFORM}"); \
                        print; next; }
 



Home | Main Index | Thread Index | Old Index