pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk fix bug in legacy vars handling for option names co...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6d0df1b6d9ab
branches: trunk
changeset: 494975:6d0df1b6d9ab
user: dillo <dillo%pkgsrc.org@localhost>
date: Wed Jun 01 13:40:14 2005 +0000
description:
fix bug in legacy vars handling for option names containing `-',
found by jmmv.
diffstat:
mk/bsd.options.mk | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r c162ff18073b -r 6d0df1b6d9ab mk/bsd.options.mk
--- a/mk/bsd.options.mk Wed Jun 01 13:07:42 2005 +0000
+++ b/mk/bsd.options.mk Wed Jun 01 13:40:14 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.options.mk,v 1.30 2005/05/31 18:25:37 jmmv Exp $
+# $NetBSD: bsd.options.mk,v 1.31 2005/06/01 13:40:14 dillo Exp $
#
# This Makefile fragment provides boilerplate code for standard naming
# conventions for handling per-package build options.
@@ -106,7 +106,7 @@
.for _m_ in ${PKG_OPTIONS_LEGACY_VARS}
_var_:= ${_m_:C/:.*//}
_opt_:= ${_m_:C/.*://}
-_popt_:=${_opt_:C/-//}
+_popt_:=${_opt_:C/^-//}
. if !empty(PKG_SUPPORTED_OPTIONS:M${_popt_})
. if defined(${_var_})
_DEPRECATED_WARNING:=${_DEPRECATED_WARNING} "Deprecated variable "${_var_:Q}" used, use PKG_DEFAULT_OPTIONS+="${_popt_:Q}" instead."
Home |
Main Index |
Thread Index |
Old Index