pkgsrc-Changes archive

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

CVS commit: pkgsrc



Module Name:    pkgsrc
Committed By:   rillig
Date:           Fri Nov 30 18:38:20 UTC 2018

Modified Files:
        pkgsrc/editors/emacs: modules.mk
        pkgsrc/lang/go: go-package.mk
        pkgsrc/mk: bsd.options.mk java-vm.mk license.mk subst.mk
        pkgsrc/mk/build: bsd.build-vars.mk build.mk test.mk
        pkgsrc/mk/configure: configure.mk
        pkgsrc/mk/extract: bsd.extract-vars.mk
        pkgsrc/mk/features: features-vars.mk
        pkgsrc/mk/fetch: bsd.fetch-vars.mk github.mk
        pkgsrc/mk/misc: show.mk
        pkgsrc/mk/pkginstall: bsd.pkginstall.mk
        pkgsrc/mk/pkgtasks: bsd.pkgtasks.mk
        pkgsrc/mk/plist: plist.mk
        pkgsrc/mk/tools: bsd.tools.mk

Log Message:
mk/misc: make configuration for show-all targets more configurable

Up to now, there was a central list of variable name patterns that
defined whether a variable was printed as a sorted list, as a list or as
a single value.

Now each variable group decides on its own which of the variables are
printed in which way, using the usual glob patterns. This is more
flexible since different files sometimes differ in their naming
conventions.

Two variable groups are added: license (for everything related to
LICENSE) and go (for lang/go).


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/editors/emacs/modules.mk
cvs rdiff -u -r1.20 -r1.21 pkgsrc/lang/go/go-package.mk
cvs rdiff -u -r1.73 -r1.74 pkgsrc/mk/bsd.options.mk
cvs rdiff -u -r1.113 -r1.114 pkgsrc/mk/java-vm.mk
cvs rdiff -u -r1.88 -r1.89 pkgsrc/mk/license.mk
cvs rdiff -u -r1.57 -r1.58 pkgsrc/mk/subst.mk
cvs rdiff -u -r1.12 -r1.13 pkgsrc/mk/build/bsd.build-vars.mk
cvs rdiff -u -r1.23 -r1.24 pkgsrc/mk/build/build.mk
cvs rdiff -u -r1.19 -r1.20 pkgsrc/mk/build/test.mk
cvs rdiff -u -r1.25 -r1.26 pkgsrc/mk/configure/configure.mk
cvs rdiff -u -r1.16 -r1.17 pkgsrc/mk/extract/bsd.extract-vars.mk
cvs rdiff -u -r1.23 -r1.24 pkgsrc/mk/features/features-vars.mk
cvs rdiff -u -r1.22 -r1.23 pkgsrc/mk/fetch/bsd.fetch-vars.mk
cvs rdiff -u -r1.11 -r1.12 pkgsrc/mk/fetch/github.mk
cvs rdiff -u -r1.16 -r1.17 pkgsrc/mk/misc/show.mk
cvs rdiff -u -r1.71 -r1.72 pkgsrc/mk/pkginstall/bsd.pkginstall.mk
cvs rdiff -u -r1.8 -r1.9 pkgsrc/mk/pkgtasks/bsd.pkgtasks.mk
cvs rdiff -u -r1.50 -r1.51 pkgsrc/mk/plist/plist.mk
cvs rdiff -u -r1.56 -r1.57 pkgsrc/mk/tools/bsd.tools.mk

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

Modified files:

Index: pkgsrc/editors/emacs/modules.mk
diff -u pkgsrc/editors/emacs/modules.mk:1.24 pkgsrc/editors/emacs/modules.mk:1.25
--- pkgsrc/editors/emacs/modules.mk:1.24        Sun Jun 24 21:19:10 2018
+++ pkgsrc/editors/emacs/modules.mk     Fri Nov 30 18:38:19 2018
@@ -1,4 +1,4 @@
-# $NetBSD: modules.mk,v 1.24 2018/06/24 21:19:10 wiz Exp $
+# $NetBSD: modules.mk,v 1.25 2018/11/30 18:38:19 rillig Exp $
 #
 # This Makefile fragment handles Emacs Lisp Packages (== ELPs).
 #
@@ -214,6 +214,9 @@ _SYS_VARS.emacs=    EMACS_BIN EMACS_ETCPREF
                        EMACS_VERSION_MAJOR EMACS_VERSION_MINOR \
                        EMACS_VERSION_MICRO
 _DEF_VARS.emacs=       _EMACS_TYPE _EMACS_PKGBASE
+_SORTED_VARS.emacs=    *_MODULES
+_LISTED_VARS.emacs=    *VERSIONS*
+
 BUILD_DEFS+=           ${_USER_VARS.emacs}
 BUILD_DEFS_EFFECTS+=   ${_SYS_VARS.emacs}
 

Index: pkgsrc/lang/go/go-package.mk
diff -u pkgsrc/lang/go/go-package.mk:1.20 pkgsrc/lang/go/go-package.mk:1.21
--- pkgsrc/lang/go/go-package.mk:1.20   Fri Oct 26 13:49:23 2018
+++ pkgsrc/lang/go/go-package.mk        Fri Nov 30 18:38:19 2018
@@ -1,4 +1,4 @@
-# $NetBSD: go-package.mk,v 1.20 2018/10/26 13:49:23 leot Exp $
+# $NetBSD: go-package.mk,v 1.21 2018/11/30 18:38:19 rillig Exp $
 #
 # This file implements common logic for compiling Go programs in pkgsrc.
 #
@@ -92,3 +92,15 @@ do-install:
        ${RUN} cd ${WRKDIR}; [ ! -d bin ] || ${PAX} -rw bin ${DESTDIR}${PREFIX}
        ${RUN} cd ${WRKDIR}; [ ! -d pkg ] || ${PAX} -rw src pkg ${DESTDIR}${PREFIX}/gopkg
 .endif
+
+_VARGROUPS+=           go
+_PKG_VARS.go=          GO_SRCPATH GO_DIST_BASE GO_BUILD_PATTERN
+_USER_VARS.go=         GO_VERSION_DEFAULT
+_SYS_VARS.go=          GO GO_VERSION GOVERSSUFFIX GOARCH GOCHAR \
+                       GOOPT GOTOOLDIR GO_PLATFORM
+_DEF_VARS.go=          GO14_VERSION GO19_VERSION GO110_VERSION \
+                       GO111_VERSION INSTALLATION_DIRS MAKE_JOBS_SAFE \
+                       NOT_FOR_PLATFORM ONLY_FOR_PLATFORM SSP_SUPPORTED \
+                       WRKSRC
+_USE_VARS.go=          GO_PACKAGE_DEP
+_SORTED_VARS.go=       INSTALLATION_DIRS *_FOR_PLATFORM

Index: pkgsrc/mk/bsd.options.mk
diff -u pkgsrc/mk/bsd.options.mk:1.73 pkgsrc/mk/bsd.options.mk:1.74
--- pkgsrc/mk/bsd.options.mk:1.73       Thu Dec  1 15:28:57 2016
+++ pkgsrc/mk/bsd.options.mk    Fri Nov 30 18:38:19 2018
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.options.mk,v 1.73 2016/12/01 15:28:57 wiz Exp $
+# $NetBSD: bsd.options.mk,v 1.74 2018/11/30 18:38:19 rillig Exp $
 #
 # This Makefile fragment provides boilerplate code for standard naming
 # conventions for handling per-package build options.
@@ -164,6 +164,7 @@ _PKG_VARS.options=  PKG_SUPPORTED_OPTIONS
        PKG_LEGACY_OPTIONS PKG_OPTIONS_DEPRECATED_WARNINGS
 _PKG_VARS.options+=    PKG_DISABLED_OPTIONS
 _SYS_VARS.options=     PKG_OPTIONS
+_LISTED_VARS.options=  *S *S.*
 
 .include "bsd.prefs.mk"
 

Index: pkgsrc/mk/java-vm.mk
diff -u pkgsrc/mk/java-vm.mk:1.113 pkgsrc/mk/java-vm.mk:1.114
--- pkgsrc/mk/java-vm.mk:1.113  Fri Sep 14 16:01:05 2018
+++ pkgsrc/mk/java-vm.mk        Fri Nov 30 18:38:19 2018
@@ -1,4 +1,4 @@
-# $NetBSD: java-vm.mk,v 1.113 2018/09/14 16:01:05 tnn Exp $
+# $NetBSD: java-vm.mk,v 1.114 2018/11/30 18:38:19 rillig Exp $
 #
 # This Makefile fragment handles Java dependencies and make variables,
 # and is meant to be included by packages that require Java either at
@@ -59,6 +59,7 @@ _VARGROUPS+=          java
 _USER_VARS.java=       PKG_JVM_DEFAULT
 _PKG_VARS.java=                USE_JAVA USE_JAVA2 PKG_JVMS_ACCEPTED
 _SYS_VARS.java=                PKG_JVM PKG_JAVA_HOME JAVA_BINPREFIX
+_SORTED_VARS.java=     PKG_JVMS_ACCEPTED
 
 .include "../../mk/bsd.prefs.mk"
 

Index: pkgsrc/mk/license.mk
diff -u pkgsrc/mk/license.mk:1.88 pkgsrc/mk/license.mk:1.89
--- pkgsrc/mk/license.mk:1.88   Fri Aug 10 19:29:04 2018
+++ pkgsrc/mk/license.mk        Fri Nov 30 18:38:19 2018
@@ -1,4 +1,4 @@
-# $NetBSD: license.mk,v 1.88 2018/08/10 19:29:04 nia Exp $
+# $NetBSD: license.mk,v 1.89 2018/11/30 18:38:19 rillig Exp $
 #
 # This file handles everything about the LICENSE variable. It is
 # included automatically by bsd.pkg.mk.
@@ -265,3 +265,9 @@ guess-license: .PHONY
        | ${AWK} -F ';' '{ print $$2 }' \
        | LC_ALL=C ${SORT} | uniq -c | LC_ALL=C ${SORT} -nr \
        | ${AWK} 'BEGIN { printf("%5s   %s\n", "Files", "License") } { printf("%5d   %s\n", $$1, $$2); }'
+
+_VARGROUPS+=           license
+_USER_VARS.license=    ACCEPTABLE_LICENSES SKIP_LICENSE_CHECK
+_PKG_VARS.license=     LICENSE
+_SYS_VARS.license=     DEFAULT_ACCEPTABLE_LICENSES
+_SORTED_VARS.license=  *_LICENSES SKIP_*

Index: pkgsrc/mk/subst.mk
diff -u pkgsrc/mk/subst.mk:1.57 pkgsrc/mk/subst.mk:1.58
--- pkgsrc/mk/subst.mk:1.57     Mon Oct  8 20:35:00 2018
+++ pkgsrc/mk/subst.mk  Fri Nov 30 18:38:19 2018
@@ -1,4 +1,4 @@
-# $NetBSD: subst.mk,v 1.57 2018/10/08 20:35:00 rillig Exp $
+# $NetBSD: subst.mk,v 1.58 2018/11/30 18:38:19 rillig Exp $
 #
 # This Makefile fragment implements a general text replacement facility.
 # Package makefiles define a ``class'', for each of which a particular
@@ -63,6 +63,8 @@ _PKG_VARS.subst=      SUBST_CLASSES
 _PKG_VARS.subst+=      ${pv}.${c}
 .  endfor
 .endfor
+_SORTED_VARS.subst=    SUBST_CLASSES SUBST_FILES.* SUBST_VARS.*
+_LISTED_VARS.subst=    SUBST_SED.* SUBST_FILTER_CMD.*
 
 ECHO_SUBST_MSG?=       ${STEP_MSG}
 

Index: pkgsrc/mk/build/bsd.build-vars.mk
diff -u pkgsrc/mk/build/bsd.build-vars.mk:1.12 pkgsrc/mk/build/bsd.build-vars.mk:1.13
--- pkgsrc/mk/build/bsd.build-vars.mk:1.12      Mon Aug  7 23:54:09 2017
+++ pkgsrc/mk/build/bsd.build-vars.mk   Fri Nov 30 18:38:19 2018
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.build-vars.mk,v 1.12 2017/08/07 23:54:09 maya Exp $
+# $NetBSD: bsd.build-vars.mk,v 1.13 2018/11/30 18:38:19 rillig Exp $
 #
 # Package-settable variables:
 #
@@ -24,6 +24,8 @@
 _VARGROUPS+=           build-vars
 _USER_VARS.build-vars= # none
 _PKG_VARS.build-vars=  BUILD_DIRS MAKE_ENV MAKE_PROGRAM MAKE_FLAGS MAKE_FILE NO_BUILD
+_LISTED_VARS.build-vars=       BUILD_DIRS
+_SORTED_VARS.build-vars=       MAKE_ENV MAKE_FLAGS
 
 BUILD_DIRS?=   ${CONFIGURE_DIRS}
 MAKE_ENV?=     # empty

Index: pkgsrc/mk/build/build.mk
diff -u pkgsrc/mk/build/build.mk:1.23 pkgsrc/mk/build/build.mk:1.24
--- pkgsrc/mk/build/build.mk:1.23       Wed May 16 21:23:02 2018
+++ pkgsrc/mk/build/build.mk    Fri Nov 30 18:38:19 2018
@@ -1,4 +1,4 @@
-# $NetBSD: build.mk,v 1.23 2018/05/16 21:23:02 rillig Exp $
+# $NetBSD: build.mk,v 1.24 2018/11/30 18:38:19 rillig Exp $
 #
 # This file defines what happens in the build phase, excluding the
 # self-test, which is defined in test.mk.
@@ -41,6 +41,8 @@ _VARGROUPS+=          build
 _USER_VARS.build=      MAKE_JOBS BUILD_ENV_SHELL
 _PKG_VARS.build=       MAKE_ENV MAKE_FLAGS BUILD_MAKE_FLAGS BUILD_TARGET MAKE_JOBS_SAFE
 _SYS_VARS.build=       BUILD_MAKE_CMD
+_SORTED_VARS.build=    *_ENV
+_LISTED_VARS.build=    *_FLAGS *_CMD
 
 BUILD_MAKE_FLAGS?=     # none
 BUILD_TARGET?=         all

Index: pkgsrc/mk/build/test.mk
diff -u pkgsrc/mk/build/test.mk:1.19 pkgsrc/mk/build/test.mk:1.20
--- pkgsrc/mk/build/test.mk:1.19        Sat Jan 13 12:48:56 2018
+++ pkgsrc/mk/build/test.mk     Fri Nov 30 18:38:19 2018
@@ -1,4 +1,4 @@
-# $NetBSD: test.mk,v 1.19 2018/01/13 12:48:56 joerg Exp $
+# $NetBSD: test.mk,v 1.20 2018/11/30 18:38:19 rillig Exp $
 #
 # After the "build" phase, many packages provide some sort of self-test
 # that can be run on the not-yet installed package. To enable these
@@ -41,6 +41,8 @@
 _VARGROUPS+=           test
 _USER_VARS.test=       PKGSRC_RUN_TEST
 _PKG_VARS.test=                TEST_DIRS TEST_ENV TEST_MAKE_FLAGS MAKE_FILE TEST_TARGET
+_SORTED_VARS.test=     *_ENV
+_LISTED_VARS.test=     *_DIRS *_FLAGS
 
 TEST_DIRS?=            ${BUILD_DIRS}
 TEST_ENV+=             ${MAKE_ENV}

Index: pkgsrc/mk/configure/configure.mk
diff -u pkgsrc/mk/configure/configure.mk:1.25 pkgsrc/mk/configure/configure.mk:1.26
--- pkgsrc/mk/configure/configure.mk:1.25       Fri Jun  1 12:52:37 2012
+++ pkgsrc/mk/configure/configure.mk    Fri Nov 30 18:38:19 2018
@@ -1,4 +1,4 @@
-# $NetBSD: configure.mk,v 1.25 2012/06/01 12:52:37 jperkin Exp $
+# $NetBSD: configure.mk,v 1.26 2018/11/30 18:38:19 rillig Exp $
 #
 # = Package-settable variables =
 #
@@ -50,6 +50,8 @@ _PKG_VARS.configure=  CONFIGURE_ENV CONFI
        CONFIGURE_ARGS OVERRIDE_GNU_CONFIG_SCRIPTS HAS_CONFIGURE \
        GNU_CONFIGURE PKGCONFIG_OVERRIDE USE_PKGLOCALEDIR \
        CMAKE_ARGS CMAKE_ARG_PATH
+_SORTED_VARS.configure=        *_ENV *_OVERRIDE
+_LISTED_VARS.configure=        *_ARGS *_SCRIPTS
 
 CONFIGURE_SCRIPT?=     ./configure
 CONFIGURE_ENV+=                ${ALL_ENV}

Index: pkgsrc/mk/extract/bsd.extract-vars.mk
diff -u pkgsrc/mk/extract/bsd.extract-vars.mk:1.16 pkgsrc/mk/extract/bsd.extract-vars.mk:1.17
--- pkgsrc/mk/extract/bsd.extract-vars.mk:1.16  Sat Nov 16 07:45:26 2013
+++ pkgsrc/mk/extract/bsd.extract-vars.mk       Fri Nov 30 18:38:19 2018
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.extract-vars.mk,v 1.16 2013/11/16 07:45:26 shattered Exp $
+# $NetBSD: bsd.extract-vars.mk,v 1.17 2018/11/30 18:38:19 rillig Exp $
 #
 # This Makefile fragment is included separately by bsd.pkg.mk and
 # defines some variables which must be defined earlier than where
@@ -18,6 +18,7 @@ _VARGROUPS+=          extract
 _PKG_VARS.extract=     EXTRACT_DIR EXTRACT_ONLY EXTRACT_SUFX EXTRACT_CMD \
                        EXTRACT_OPTS EXTRACT_USING EXTRACT_ELEMENTS
 _SYS_VARS.extract=     EXTRACT_CMD_DEFAULT
+_LISTED_VARS.extract=  EXTRACT_CMD EXTRACT_CMD_DEFAULT
 
 EXTRACT_ONLY?=         ${DISTFILES}
 EXTRACT_SUFX?=         .tar.gz

Index: pkgsrc/mk/features/features-vars.mk
diff -u pkgsrc/mk/features/features-vars.mk:1.23 pkgsrc/mk/features/features-vars.mk:1.24
--- pkgsrc/mk/features/features-vars.mk:1.23    Thu Jul 17 13:07:14 2014
+++ pkgsrc/mk/features/features-vars.mk Fri Nov 30 18:38:19 2018
@@ -1,4 +1,4 @@
-# $NetBSD: features-vars.mk,v 1.23 2014/07/17 13:07:14 ryoon Exp $
+# $NetBSD: features-vars.mk,v 1.24 2018/11/30 18:38:19 rillig Exp $
 #
 # The platforms that are supported by pkgsrc differ in the amount of
 # functions they provide in the C library (libc). Functions that are
@@ -67,6 +67,7 @@ _VARGROUPS+=          features
 _USER_VARS.features=   # none
 _PKG_VARS.features=    USE_FEATURES
 _SYS_VARS.features=    MISSING_FEATURES
+_SORTED_VARS.features= *S
 
 MISSING_FEATURES=      # empty
 USE_FEATURES?=         # none

Index: pkgsrc/mk/fetch/bsd.fetch-vars.mk
diff -u pkgsrc/mk/fetch/bsd.fetch-vars.mk:1.22 pkgsrc/mk/fetch/bsd.fetch-vars.mk:1.23
--- pkgsrc/mk/fetch/bsd.fetch-vars.mk:1.22      Sun Sep 13 15:03:57 2015
+++ pkgsrc/mk/fetch/bsd.fetch-vars.mk   Fri Nov 30 18:38:20 2018
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.fetch-vars.mk,v 1.22 2015/09/13 15:03:57 joerg Exp $
+# $NetBSD: bsd.fetch-vars.mk,v 1.23 2018/11/30 18:38:20 rillig Exp $
 #
 # This Makefile fragment is included separately by bsd.pkg.mk and
 # defines some variables which must be defined earlier than where
@@ -41,6 +41,7 @@ _VARGROUPS+=          fetch
 _USER_VARS.fetch=      DISTDIR DIST_PATH
 _PKG_VARS.fetch=       MASTER_SITES DIST_SUBDIR DISTFILES
 _SYS_VARS.fetch=       DEFAULT_DISTFILES
+_LISTED_VARS.fetch=    *S
 
 # The default DISTDIR is currently set in bsd.prefs.mk.
 #DISTDIR?=               ${PKGSRCDIR}/distfiles

Index: pkgsrc/mk/fetch/github.mk
diff -u pkgsrc/mk/fetch/github.mk:1.11 pkgsrc/mk/fetch/github.mk:1.12
--- pkgsrc/mk/fetch/github.mk:1.11      Wed Aug  1 18:01:32 2018
+++ pkgsrc/mk/fetch/github.mk   Fri Nov 30 18:38:20 2018
@@ -1,4 +1,4 @@
-# $NetBSD: github.mk,v 1.11 2018/08/01 18:01:32 rillig Exp $
+# $NetBSD: github.mk,v 1.12 2018/11/30 18:38:20 rillig Exp $
 #
 # github.com master site handling
 #
@@ -76,3 +76,4 @@ _VARGROUPS+=          github
 _PKG_VARS.github=      GITHUB_PROJECT GITHUB_TAG GITHUB_TYPE
 _DEF_VARS.github=      _USE_GITHUB _GITHUB_DEFAULT_DISTFILES SITES.${_GITHUB_DEFAULT_DISTFILES}
 _USE_VARS.github=      PKGBASE PKGVERSION_NOREV
+_LISTED_VARS.github=   SITES.*

Index: pkgsrc/mk/misc/show.mk
diff -u pkgsrc/mk/misc/show.mk:1.16 pkgsrc/mk/misc/show.mk:1.17
--- pkgsrc/mk/misc/show.mk:1.16 Sun Nov 11 19:07:12 2018
+++ pkgsrc/mk/misc/show.mk      Fri Nov 30 18:38:20 2018
@@ -1,4 +1,4 @@
-# $NetBSD: show.mk,v 1.16 2018/11/11 19:07:12 rillig Exp $
+# $NetBSD: show.mk,v 1.17 2018/11/30 18:38:20 rillig Exp $
 #
 # This file contains some targets that print information gathered from
 # variables. They do not modify any variables.
@@ -124,6 +124,22 @@ show-build-defs: .PHONY
 #      All variables that are used by this file, whether internal or
 #      not, primary or not.
 #
+# Variables that control the presentation of individual variables:
+#
+# _SORTED_VARS.*
+#      A list of patterns describing the variable names to be shown as
+#      lists, one word per line, sorted alphabetically.
+#
+#      Default: # none
+#      Example: *_ENV *_FILES SUBST_VARS.*
+#
+# _LISTED_VARS.*
+#      A list of patterns describing the variable names to be shown as
+#      lists, one word per line, in the given order.
+#
+#      Default: # none
+#      Example: *_ARGS *_CMD SUBST_SED.*
+#
 _SHOW_ALL_CATEGORIES=  _USER_VARS _PKG_VARS _SYS_VARS _USE_VARS _DEF_VARS
 _LABEL._USER_VARS=     usr
 _LABEL._PKG_VARS=      pkg
@@ -145,13 +161,12 @@ show-all: show-all-${g}
 # doesn't exist.
 
 show-all-${g}: .PHONY
-       @echo "${g}:"
+       @${RUN} printf '%s:\n' ${g:Q}
+
 .  for c in ${_SHOW_ALL_CATEGORIES}
 .    for v in ${${c}.${g}}
-.      if (${v:M*_ENV}                 \
-       || ${v:M*_ENV.*}                \
-       || ${v} == PLIST_SUBST          \
-       || ${v:MSUBST_VARS.*})
+
+.      if ${_SORTED_VARS.${g}:U:@pattern@ ${v:M${pattern}} @:M*}
 
 # multi-valued variables, values are sorted
        ${RUN}                                                          \
@@ -165,17 +180,7 @@ show-all-${g}: .PHONY
          printf '\t\t\t\t# end of %s (sorted)\n' ${v:Q};               \
        fi
 
-.      elif (${v:M*_ARGS}              \
-       || ${v:M*_ARGS.*}               \
-       || ${v:M*_CMD}                  \
-       || ${v:M*_CMD_DEFAULT}          \
-       || ${v:M*_SKIP}                 \
-       || ${v:M*INSTALL_SRC}           \
-       || ${v:MMASTER_SITE*}           \
-       || ${v:MSUBST_FILES.*}          \
-       || ${v:MSUBST_SED.*}            \
-       || ${v:MSUBST_FILTER_CMD.*}     \
-       || ${v:M*_SUBST})
+.      elif ${_LISTED_VARS.${g}:U:@pattern@ ${v:M${pattern}} @:M*}
 
 # multi-valued variables, preserving original order
        ${RUN}                                                          \

Index: pkgsrc/mk/pkginstall/bsd.pkginstall.mk
diff -u pkgsrc/mk/pkginstall/bsd.pkginstall.mk:1.71 pkgsrc/mk/pkginstall/bsd.pkginstall.mk:1.72
--- pkgsrc/mk/pkginstall/bsd.pkginstall.mk:1.71 Wed Jun 14 16:23:09 2017
+++ pkgsrc/mk/pkginstall/bsd.pkginstall.mk      Fri Nov 30 18:38:20 2018
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkginstall.mk,v 1.71 2017/06/14 16:23:09 prlw1 Exp $
+# $NetBSD: bsd.pkginstall.mk,v 1.72 2018/11/30 18:38:20 rillig Exp $
 #
 # This Makefile fragment is included by bsd.pkg.mk and implements the
 # common INSTALL/DEINSTALL scripts framework.  To use the pkginstall
@@ -54,6 +54,8 @@ _SYS_VARS.pkginstall= \
        SHLIB_TYPE \
        LDCONFIG_ADD_CMD \
        LDCONFIG_REMOVE_CMD
+_LISTED_VARS.pkginstall=       *_SRC
+_SORTED_VARS.pkginstall=       *_SUBST
 
 # The Solaris /bin/sh does not know the ${foo#bar} shell substitution.
 # This shell function serves a similar purpose, but is specialized on

Index: pkgsrc/mk/pkgtasks/bsd.pkgtasks.mk
diff -u pkgsrc/mk/pkgtasks/bsd.pkgtasks.mk:1.8 pkgsrc/mk/pkgtasks/bsd.pkgtasks.mk:1.9
--- pkgsrc/mk/pkgtasks/bsd.pkgtasks.mk:1.8      Wed Aug 23 17:53:32 2017
+++ pkgsrc/mk/pkgtasks/bsd.pkgtasks.mk  Fri Nov 30 18:38:20 2018
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkgtasks.mk,v 1.8 2017/08/23 17:53:32 jlam Exp $
+# $NetBSD: bsd.pkgtasks.mk,v 1.9 2018/11/30 18:38:20 rillig Exp $
 #
 # Copyright (c) 2017 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -27,8 +27,6 @@
 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 # POSSIBILITY OF SUCH DAMAGE.
 
-_VARGROUPS+=   pkgtasks
-
 # PKG_CONFIG
 #      User-settable variable for whether the directory- and
 #      file-handling should be performed automatically, or if the
@@ -84,7 +82,12 @@ _VARGROUPS+= pkgtasks
 #      Possible: yes, no (case-insensitive)
 #      Default: yes
 #
-_USER_VARS.pkgtasks+=  PKG_CONFIG PKG_CONFIG_PERMS PKG_INIT_SCRIPTS
+
+_VARGROUPS+=           pkgtasks
+_USER_VARS.pkgtasks=   PKG_CONFIG PKG_CONFIG_PERMS PKG_INIT_SCRIPTS
+_USE_VARS.pkgtasks=    FILES_SUBST
+_SORTED_VARS.pkgtasks= FILES_SUBST
+
 PKG_CONFIG?=           yes
 PKG_CONFIG_PERMS?=     no
 PKG_CREATE_USERGROUP?= yes

Index: pkgsrc/mk/plist/plist.mk
diff -u pkgsrc/mk/plist/plist.mk:1.50 pkgsrc/mk/plist/plist.mk:1.51
--- pkgsrc/mk/plist/plist.mk:1.50       Wed Jun 14 16:23:09 2017
+++ pkgsrc/mk/plist/plist.mk    Fri Nov 30 18:38:20 2018
@@ -1,4 +1,4 @@
-# $NetBSD: plist.mk,v 1.50 2017/06/14 16:23:09 prlw1 Exp $
+# $NetBSD: plist.mk,v 1.51 2018/11/30 18:38:20 rillig Exp $
 #
 # This Makefile fragment handles the creation of PLISTs for use by
 # pkg_create(8).
@@ -45,6 +45,8 @@ _VARGROUPS+=          plist
 _USER_VARS.plist=      # none
 _PKG_VARS.plist=       PLIST_SUBST PLIST_VARS PLIST_SRC GENERATE_PLIST
 _SYS_VARS.plist=       PLIST_TYPE PLIST
+_SORTED_VARS.plist=    *_SUBST *_VARS
+_LISTED_VARS.plist=    *_SRC GENERATE_PLIST
 
 PLIST_VARS?=           # empty
 PLIST_AWK?=            # empty

Index: pkgsrc/mk/tools/bsd.tools.mk
diff -u pkgsrc/mk/tools/bsd.tools.mk:1.56 pkgsrc/mk/tools/bsd.tools.mk:1.57
--- pkgsrc/mk/tools/bsd.tools.mk:1.56   Wed Aug 22 20:48:37 2018
+++ pkgsrc/mk/tools/bsd.tools.mk        Fri Nov 30 18:38:20 2018
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.tools.mk,v 1.56 2018/08/22 20:48:37 maya Exp $
+# $NetBSD: bsd.tools.mk,v 1.57 2018/11/30 18:38:20 rillig Exp $
 #
 # Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -181,3 +181,4 @@ _PKG_VARS.tools=    USE_TOOLS TOOLS_BROKEN 
 _SYS_VARS.tools+=      ${pv}.${t}
 .  endfor
 .endfor
+_SORTED_VARS.tools=    USE_TOOLS TOOLS_CREATE TOOLS_GNU_MISSING



Home | Main Index | Thread Index | Old Index