diff options
author | schmonz <schmonz@pkgsrc.org> | 2006-01-04 04:25:47 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2006-01-04 04:25:47 +0000 |
commit | 0eb053748c5816a9697ebbf27d26853e3ebd4943 (patch) | |
tree | 24eea46eefae58d9c12d107a1be437b4a1e3e311 /mk/bsd.pkg.mk | |
parent | 5480a8c953ef02b00b8b2cc614bd8b4d6d26152e (diff) | |
download | pkgsrc-0eb053748c5816a9697ebbf27d26853e3ebd4943.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.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 12 |
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" |