From 6a53d41a22c833387b5ef4f7823f4ece318d06e5 Mon Sep 17 00:00:00 2001 From: Ade Lovett Date: Sat, 19 Nov 2005 22:04:25 +0000 Subject: [PATCH] Add a pre-everything:: target that will print out appropriate warnings if a port is still using the old autotools Makefile constructs. For example: *** AUTOTOOLS WARNING for x11/electricsheep This port is using old autotools constructs which wil be disappearing on 1st January 2006 In most cases, this warning can be fixed by removing all the old constructs and replacing them with: USE_AUTOTOOLS= libtool:13 The first line should be easily parseable by portbuild and tinderbox clusters to flag such ports. I'll be doing a few more sweeps of the ports tree to pick up on any such ports over the coming weeks, before turning off the old system and marking the port BROKEN in such cases. --- Mk/bsd.autotools.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Mk/bsd.autotools.mk b/Mk/bsd.autotools.mk index eed382d3197a..abb0ea113005 100644 --- a/Mk/bsd.autotools.mk +++ b/Mk/bsd.autotools.mk @@ -79,6 +79,16 @@ USE_AUTOTOOLS_COMPAT+= libtool:${WANT_LIBTOOL_VER}:env BROKEN+= "Mix and match of old and new autotools system prohibited" . else USE_AUTOTOOLS= ${USE_AUTOTOOLS_COMPAT} +_AUTOTOOLS_PN= ${.CURDIR:C/${PORTSDIR}\///} +pre-everything:: + @${ECHO} "*** AUTOTOOLS WARNING for ${_AUTOTOOLS_PN}" + @${ECHO} This port is using old autotools constructs which wil be" + @${ECHO} "disappearing on 1st January 2006" + @${ECHO} "" + @${ECHO} "In most cases, this warning can be fixed by removing" + @${ECHO} "all the old constructs and replacing them with:" + @${ECHO} " USE_AUTOTOOLS= ${USE_AUTOTOOLS_COMPAT}" + @${ECHO} "" . endif .endif