Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/plist mk/plist: Add EARLY_PRINT_PLIST_AWK



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ca0b05419da1
branches:  trunk
changeset: 434067:ca0b05419da1
user:      leot <leot%pkgsrc.org@localhost>
date:      Wed Jun 10 16:06:09 2020 +0000

description:
mk/plist: Add EARLY_PRINT_PLIST_AWK

EARLY_PRINT_PLIST_AWK is like PRINT_PLIST_AWK but operates before the
file/directory lists are sorted.

Discussed on tech-pkg@ mainly to address `print-PLIST' order problems for
Python 3 packages:

 <https://mail-index.NetBSD.org/tech-pkg/2020/05/27/msg023249.html>

diffstat:

 mk/plist/plist.mk       |  7 ++++---
 mk/plist/print-plist.mk |  8 +++++++-
 2 files changed, 11 insertions(+), 4 deletions(-)

diffs (50 lines):

diff -r 095f4a7c4c36 -r ca0b05419da1 mk/plist/plist.mk
--- a/mk/plist/plist.mk Wed Jun 10 15:35:02 2020 +0000
+++ b/mk/plist/plist.mk Wed Jun 10 16:06:09 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: plist.mk,v 1.54 2020/03/30 22:54:24 rillig Exp $
+# $NetBSD: plist.mk,v 1.55 2020/06/10 16:06:09 leot Exp $
 #
 # This Makefile fragment handles the creation of PLISTs for use by
 # pkg_create(8).
@@ -147,8 +147,9 @@
 # with the package version excluding the "nb13" extension.
 #
 # The other direction of generating the package's PLIST file from the list
-# of actually installed files is covered by PRINT_PLIST_AWK. This is only
-# needed when developing the package itself, for example after an update.
+# of actually installed files is covered by EARLY_PRINT_PLIST_AWK and
+# PRINT_PLIST_AWK. This is only needed when developing the package itself,
+# for example after an update.
 #
 PLIST_SUBST+=  OPSYS=${OPSYS:Q}                                        \
                OS_VERSION=${OS_VERSION:Q}                              \
diff -r 095f4a7c4c36 -r ca0b05419da1 mk/plist/print-plist.mk
--- a/mk/plist/print-plist.mk   Wed Jun 10 15:35:02 2020 +0000
+++ b/mk/plist/print-plist.mk   Wed Jun 10 16:06:09 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: print-plist.mk,v 1.35 2020/04/18 10:54:21 rillig Exp $
+# $NetBSD: print-plist.mk,v 1.36 2020/06/10 16:06:09 leot Exp $
 #
 # Automatic PLIST generation
 #  - files & symlinks first
@@ -94,6 +94,9 @@
        *)              genlinks=0 ;;                                   \
        esac;                                                           \
        ${_PRINT_PLIST_FILES_CMD}                                       \
+        | ${AWK} '                                                     \
+               ${EARLY_PRINT_PLIST_AWK}                                \
+               { print $$0; }'                                         \
         | ${_PRINT_PLIST_LIBTOOLIZE_FILTER}                            \
         | ${SORT}                                                      \
         | ${AWK} '                                                     \
@@ -124,6 +127,9 @@
                { print $$0; }'
        ${RUN}\
        for i in `${_PRINT_PLIST_DIRS_CMD}                              \
+                       | ${AWK} '                                      \
+                               ${EARLY_PRINT_PLIST_AWK}                \
+                               { print $$0; }'                         \
                        | ${SORT} -r                                    \
                        | ${AWK} '                                      \
                                /emul\/linux\/proc/ { next; }           \



Home | Main Index | Thread Index | Old Index