summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmonz <schmonz>2006-01-04 04:25:47 +0000
committerschmonz <schmonz>2006-01-04 04:25:47 +0000
commit8543efea40596ece0911a0380fb167faf0966b7f (patch)
tree24eea46eefae58d9c12d107a1be437b4a1e3e311
parent42915e8c9702554012cc5487bc3c167baf54f219 (diff)
downloadpkgsrc-8543efea40596ece0911a0380fb167faf0966b7f.tar.gz
Add a wee bit of infrastructure to improve how we deprecate broken
packages from branch to branch: When a package is considered broken (for whatever reason) at branch time, we'll mark it with BROKEN_IN=name-of-branch. At the next branch, we can easily determine which ones have remained broken and remove them. BROKEN_IN is visible to users iff a build fails, when it appends a warning message to the above effect. With feedback from dillo. Reviewed by jlam.
-rw-r--r--mk/bsd.pkg.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 976316dd232..11243d2c215 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1782 2006/01/03 17:26:56 wiz Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1783 2006/01/04 04:25:47 schmonz Exp $
#
# This file is in the public domain.
#
@@ -2643,6 +2643,11 @@ PKG_ERROR_MSG.configure+= \
" * ${WRKLOG}" \
""
.endif
+.if defined(BROKEN_IN)
+PKG_ERROR_MSG.configure+= \
+ " * This package is broken in ${BROKEN_IN}." \
+ " * It may be removed in the next branch unless fixed."
+.endif
${_CONFIGURE_COOKIE}:
.if ${INTERACTIVE_STAGE:Mconfigure} == "configure" && defined(BATCH)
@${ECHO} "*** The configuration stage of this package requires user interaction"
@@ -2661,6 +2666,11 @@ PKG_ERROR_MSG.build= \
" * log of the build" \
" * ${WRKLOG}" \
""
+.if defined(BROKEN_IN)
+PKG_ERROR_MSG.build+= \
+ " * This package is broken in ${BROKEN_IN}." \
+ " * It may be removed in the next branch unless fixed."
+.endif
${_BUILD_COOKIE}:
.if ${INTERACTIVE_STAGE:Mbuild} == "build" && defined(BATCH)
@${ECHO} "*** The build stage of this package requires user interaction"