Skip to content

Commit 4663685

Browse files
committed
mk: fix bug in BUILD_INFO file
Below ${FILESDIR}, checksums were generated for all files, including files/CVS/*. Skip */CVS/* files (since they might be in subdirs). Update comment while here.
1 parent ce78745 commit 4663685

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

mk/pkgformat/pkg/metadata.mk

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: metadata.mk,v 1.36 2023/10/24 10:30:53 jperkin Exp $
1+
# $NetBSD: metadata.mk,v 1.37 2026/02/11 22:54:14 wiz Exp $
22

33
######################################################################
44
### The targets below are all PRIVATE.
@@ -136,7 +136,7 @@ ${_BUILD_INFO_FILE}: ${_PLIST_NOKEYWORDS}
136136
###
137137
### +BUILD_VERSION - Package build files versioning information
138138
###
139-
### We extract the ident strings from all of the important pkgsrc files
139+
### We compute checksums for all of the important pkgsrc files
140140
### involved in building the package, i.e. Makefile and patches.
141141
###
142142
_BUILD_VERSION_FILE= ${PKG_DB_TMPDIR}/+BUILD_VERSION
@@ -148,7 +148,10 @@ ${_BUILD_VERSION_FILE}:
148148
{ \
149149
${FIND} ${FILESDIR} -type f 2>/dev/null | \
150150
while read f; do \
151-
[ -f "$$f" ] && ${ECHO} "$$f"; \
151+
case "$$f" in \
152+
*/CVS/*) ;; \
153+
*) [ -f "$$f" ] && ${ECHO} "$$f";; \
154+
esac; \
152155
done; \
153156
for f in ${.CURDIR}/Makefile ${PKGDIR}/*; do \
154157
[ -f "$$f" ] && ${ECHO} "$$f"; \

0 commit comments

Comments
 (0)