ports/85669: Ports not escape plus signal in make search
Ricardo Alves dos Reis
ricardo_bsd at yahoo.com.br
Fri Sep 2 19:50:19 UTC 2005
>Number: 85669
>Category: ports
>Synopsis: Ports not escape plus signal in make search
>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 Sep 02 19:50:18 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Ricardo Alves dos Reis
>Release: FreeBSD 5.4-STABLE
>Organization:
UNIFESP
>Environment:
FreeBSD xxxxxxxx.xx.xx 5.4-STABLE FreeBSD 5.4-STABLE #6: Tue May 10 09:09:19 BRT 2005 root at pintassilgo:/usr/obj/usr/src/sys/SMP i386
>Description:
Ports not escape plus signal in make search.
>How-To-Repeat:
cd /usr/ports ; make search name="apache+mod_ssl-1.3.33+2.8.22_1"
>Fix:
cd /usr/ports ; make search name="apache\\+mod_ssl-1.3.33\\+2.8.22_1"
or
This small path add gsub + per \+,
---------------------------------------
*** bsd.port.subdir.mk Mon Feb 28 18:09:04 2005
--- bsd.port.subdir.mk.diff Fri Sep 2 08:37:36 2005
***************
*** 365,370 ****
--- 365,371 ----
-v xkeylim="$${xkeylim:-${PORTSEARCH_XKEYLIM}}" \
-v display="$${display:-${PORTSEARCH_DISPLAY_FIELDS}}" \
'BEGIN { \
+ gsub(/\+/,"\\+",name);\
if (substr(there, 1, length(top)) == top) \
there = "${PORTSDIR}" substr(there, 1 + length(top)); \
therelen = length(there); \
-----------------------------------------
/usr/ports# make search name="apache+mod_ssl-1.3.33+2.8.22_1"
Port: apache+mod_ssl-1.3.33+2.8.22_1
Path: /usr/ports/www/apache13-modssl
Info: The Apache 1.3 webserver with SSL/TLS functionality
Maint: dinoex at FreeBSD.org
B-deps: expat-1.95.8_3 mm-1.3.1 perl-5.8.7
R-deps: expat-1.95.8_3 mm-1.3.1
WWW: http://www.apache.org/
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list