From b3fd8913742b3574a4a72c7509eb6619ba35cb3a Mon Sep 17 00:00:00 2001 From: stsp Date: Fri, 23 Dec 2011 10:34:36 +0000 Subject: [PATCH] Add a maintainer_mode flavour which displays file and line-number information for errors thrown from Subversion. This doesn't need to be built by default. It can provide some leads when debugging Subversion problems on OpenBSD. --- devel/subversion/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/devel/subversion/Makefile b/devel/subversion/Makefile index 9806f277ea9..48955fc9251 100644 --- a/devel/subversion/Makefile +++ b/devel/subversion/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.102 2011/12/07 16:47:37 stsp Exp $ +# $OpenBSD: Makefile,v 1.103 2011/12/23 10:34:36 stsp Exp $ COMMENT-main= subversion revision control system COMMENT-perl= perl interface to subversion @@ -42,7 +42,7 @@ MASTER_SITES= ${MASTER_SITE_APACHE:=subversion/} EXTRACT_SUFX= .tar.bz2 PSEUDO_FLAVORS= no_bindings no_ap2 no_perl no_python no_ruby -FLAVORS= gnome_keyring +FLAVORS= gnome_keyring maintainer_mode FLAVOR?= .if ${FLAVOR:Mno_bindings} FLAVOR += no_perl no_python no_ruby @@ -151,6 +151,13 @@ CONFIGURE_ARGS+=${CONFIGURE_SHARED} \ --without-jdk \ --with-libmagic=${LOCALBASE} +# Maintainer mode shows files and line numbers for every error raised +# by Subversion. It is useful for debugging problems with Subversion +# but is not required for normal operation. +.if ${FLAVOR:Mmaintainer_mode} +CONFIGURE_ARGS+=--enable-maintainer-mode +.endif + .include .if ${BUILD_PACKAGES:M-ruby} || ${BUILD_PACKAGES:M-perl} || ${BUILD_PACKAGES:M-python}