ports/172355: [PATCH] ports-mgmt/portconf: allow dash and plus symbols in variable names
Manuel
manuel-freebsd at mausz.at
Fri Oct 5 13:30:17 UTC 2012
>Number: 172355
>Category: ports
>Synopsis: [PATCH] ports-mgmt/portconf: allow dash and plus symbols in variable names
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Oct 05 13:30:14 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Manuel
>Release:
>Organization:
>Environment:
>Description:
Please add dash (-) and plus (+) symbols to allowed characters in variable names:
Dash symbols are required when using OptionsNG and $UNIQUENAME_SET/UNSET. e.g. apache22-event-mpm_SET=...
Plus symbols can be used to extend existing variables. e.g. OPTIONS_SET+=...
>How-To-Repeat:
>Fix:
--- /usr/local/libexec/portconf.orig 2012-10-05 14:47:42.000000000 +0200
+++ /usr/local/libexec/portconf 2012-10-05 15:14:08.000000000 +0200
@@ -36,7 +36,7 @@
sed '/^#/d;/^[[:space:]]*$/d' "${_conf}" | while read _line; do
for _port in ${_line%%:*}; do
if [ "${_pwd%%${_port}}" != "${_pwd}" ]; then
- echo ${_line#*:} | sed -E 's/([A-Za-z0-9_]+)(=([^|]+))?/\1=\3/g;s/!([A-Za-z0-9_]+)=([^|]+)?/.undef \1/g;s/ *\| */|/g;s/ /%/g'
+ echo ${_line#*:} | sed -E 's/([A-Za-z0-9_\-]+\+?)(=([^|]+))?/\1=\3/g;s/!([A-Za-z0-9_]+)=([^|]+)?/.undef \1/g;s/ *\| */|/g;s/ /%/g'
fi
done
done
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list