PORTS: Escape Plus Signal in make search
Ricardo Alves dos Reis
ricardo_bsd at yahoo.com.br
Fri Sep 2 04:47:42 PDT 2005
Hi all,
I discover one bug in make search target, variable name not escape +
/usr/ports# make search name="apache+mod_ssl-1.3.33+2.8.22_1"
/usr/ports#
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); \
-----------------------------------------
With the patch
/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/
Ricardo A. Reis
UNIFESP - SENAI
_______________________________________________________
Yahoo! Messenger com voz: PROMOÇÃO VOCÊ PODE LEVAR UMA VIAGEM NA CONVERSA. Participe! www.yahoo.com.br/messenger/promocao
More information about the freebsd-stable
mailing list