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: Wed Jan 15 20:03:10 UTC 2020
Modified Files:
pkgsrc/mk/pkgformat/pkg: metadata.mk
pkgsrc/regress/plus_build_version/files: expected
Log Message:
mk/pkgformat: include only relevant ident strings in +BUILD_VERSION
Before, not only files containing an RCS Id were recorded in the
+BUILD_VERSION file but also files containing text that looked similar to
an RCS Id were recorded, even though these didn't contain any valuable
version information.
The effect was that before this change, pkgtools/pkglint was built over
and over again by the bulk builds since pbulk uses a different regular
expression for detecting modified files.
The regular expression for unexpanded RCS Ids is added to record files
that have never been checked in to CVS, just to have them recorded and to
distinguish them from the final committed version.
See https://mail-index.netbsd.org/tech-pkg/2020/01/11/msg022489.html.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/mk/pkgformat/pkg/metadata.mk
cvs rdiff -u -r1.3 -r1.4 pkgsrc/regress/plus_build_version/files/expected
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/pkgformat/pkg/metadata.mk
diff -u pkgsrc/mk/pkgformat/pkg/metadata.mk:1.20 pkgsrc/mk/pkgformat/pkg/metadata.mk:1.21
--- pkgsrc/mk/pkgformat/pkg/metadata.mk:1.20 Mon Jan 13 06:52:57 2020
+++ pkgsrc/mk/pkgformat/pkg/metadata.mk Wed Jan 15 20:03:10 2020
@@ -1,4 +1,4 @@
-# $NetBSD: metadata.mk,v 1.20 2020/01/13 06:52:57 taca Exp $
+# $NetBSD: metadata.mk,v 1.21 2020/01/15 20:03:10 rillig Exp $
######################################################################
### The targets below are all PRIVATE.
@@ -200,7 +200,10 @@ ${_BUILD_VERSION_FILE}:
${AWK} '{ t=$$0; sub("^${PKGSRCDIR}/", ""); \
printf "%s %s\n", t, $$0 }' | \
while read file relfile; do \
- ${GREP} '\$$NetBSD' $$file 2>/dev/null | \
+ ${GREP} \
+ -e '\$$NetBSD: metadata.mk,v 1.21 2020/01/15 20:03:10 rillig Exp $$]*[$$]' \
+ -e '\$$NetBSD\$$' \
+ $$file 2>/dev/null | \
${SED} -e "s|^|$$file:|;q"; \
done | \
${AWK} '{ sub("^${PKGSRCDIR}/", ""); \
Index: pkgsrc/regress/plus_build_version/files/expected
diff -u pkgsrc/regress/plus_build_version/files/expected:1.3 pkgsrc/regress/plus_build_version/files/expected:1.4
--- pkgsrc/regress/plus_build_version/files/expected:1.3 Wed Jan 15 19:37:24 2020
+++ pkgsrc/regress/plus_build_version/files/expected Wed Jan 15 20:03:10 2020
@@ -1,5 +1,2 @@
regress/plus_build_version/files/010-only-first-line: *NetBSD: 010-only-first-line,v 1.1 2020/01/11 12:24:32 rillig Exp *
-regress/plus_build_version/files/021-long-name: *NetBSDFoundation*
-regress/plus_build_version/files/030-missing-colon-or-dollar: *
-regress/plus_build_version/files/040-missing-dollar-after-colon: *
regress/plus_build_version/spec: *NetBSD: spec,v 1.2 2020/01/11 13:04:21 rillig Exp *
Home |
Main Index |
Thread Index |
Old Index