From 094c4b78c1f0263651a6451a5057b3e47aa7b476 Mon Sep 17 00:00:00 2001 From: schmonz Date: Wed, 4 Jan 2006 04:25:47 +0000 Subject: 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. --- mk/bsd.pkg.mk | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3